DescriptionGINT provides Excerpt |
---|
automatic running of testcases in parallel |
. This can significantly reduce run time for tests making it possible to run more tests more often. This performance advantage can introduce a level of complexity in test scripts. GINT provides capabilities to minimize and manage this potential complexity. GINT also supports simple serial running of testcases by a simple parameter setting. The performance benefits of parallel running vary greatly depending on the testing situation.
If your testcases are totally independent of each other, parallelism will not add any complexity! While this is good in principle and more easy to accomplish in unit testing, it is simply is not practical in many integration test scenarios. The key is to manage dependencies easily. UsingThe following Parameters and Functions control parallelism for a test run: - maxParallel - defaults to 8. Controls the maximum number of concurrent testcases.
- maxThreads - defaults to maxParallel. Controls the maximum number of inline testcases that can be run concurrently.
The following Testcase parameters are involved in managing a parallel run environment: - depends - a list of testcase names that must run before this testcase. This is useful even in a serial run environment to document testcase dependencies. In a parallel run environment, it ensures that testcases are not run before dependent testcases are complete.
- end - a list of testcase names that must be ended before this testcase runs. There is a subtle difference with depends in that a testcase on the end list will not be started, only ended if it is currently running. The most common usage of end is to specify end: true to end all started testcase before starting this testcase.
|