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:

  1. Set directly in test script prior to call to gint.initialize. Example: stopOnFail = true.
  2. Specified as a command parameter. Example: -DstopOnFail=true or -DstopOnFail.
  3. Set in user specific gint.properties file in user home directory. Example: stopOnFail = true.
  4. Set in gint.properties in the current directory of the run.
  5. Set in gint.properties in the project's target directory.
  6. Set in gint.properties in the project's resource directory.
  7. Set in a profile. However, normally profiles should only be used for test specific properties and data.
  8. 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