ServiceNow, Inc.
Database record locking for test parallelization
Last updated:
Abstract:
A system includes software and a computing device configured to test the software in parallel. The computing device may obtain a first test case from a plurality of test cases. The first test case may be configured to cause the software to access a subset of data entries in a database. A plurality of locks facilitates exclusive access to the plurality of data entries. The computing device may further attempt to acquire a subset of the locks that correspond to the subset of the data entries. The computing device may further determine when to execute the first test case. Doing so involves either: (i) failing to acquire all of the subset of the locks and delaying execution of the first test case, or (ii) successfully acquiring all of the subset of the locks and executing the first test case in parallel with the second test case.
Utility
2 May 2019
25 Jan 2022