Minorbug Logo

Form Locking Testing - Key Test Cases for Preventing Concurrent Edits in Web Applications

Form locking mechanisms prevent data conflicts in multi-user environments. This guide covers test cases for form locking functionality, including lock acquisition, release, timeout handling, and concurrent user scenarios.

NrTest Idea
1Check if opening the form adds lock with correct data (lock time, locked by, etc)
2Check if opening component directly by URL adds the lock
3Check if another user can open the form while you have an active lock (maybe it should be possible but fields should be disabled)
4Check how locking works if you open the same page in another tab
5Check how page refresh affects the lock
6Check if leaving to other pages at you system removes the lock
7Check if closing the tab removes the lock
8Check if closing the browser removes the lock
9Check if there is a need for automatic lock removing after some time
10Check if locking is added when opening form from all the possible places in the application
11Check if only users can acquire lock or system can/should also acquire the lock (background jobs that work with same data)
12Check if system lock blocks users and if user lock blocks system