Parameters and Functions
Controlling the running of test scripts. GINT supports a variety of methods to control the behavior of running tests with GINT. Command line parameters, property files, and GINT methods can be used. The precedence order is:
- Set directly in test script prior to call to gint.initialize. Example: stopOnFail = true.
- Specified as a command parameter. Example: -DstopOnFail=true or -DstopOnFail.
- Set in user specific gint.properties file in user home directory. Example: stopOnFail = true.
- Set in gint.properties in the current directory of the run.
- Set in gint.properties in the project's target directory.
- Set in gint.properties in the project's resource directory.
- Set in a profile. However, normally profiles should only be used for test specific properties and data.
- Set dynamically in the test script using methods (see Functions column). Example: gint.setStopOnFail(true). There may be some timing restrictions on whether the function call will have affect.
- Before initialize - must proceed gint.initialize is test script
- Before run - must be in the test script and has no affect after testcases start running
- Blank - the function can change the setting anytime including dynamically during the test run. This means it can be used in a testcase resultClosure, successClosure, finalClosure, or inline code.
© 2005 -2024 gint.org