3.8.3.Executing Tests in Batch Mode
You can run tests using MarathonITE batch mode. The
-batch option informs Marathon that no UI is needed.
For running all tests from the project use the following command:
marathonite -batch [path-to-the-project-folder]
If no TestCase is given on command line, Marathon runs all the tests from the project directory. If you want to run all tests
from a subfolder of TestCases directory you need to append AllTests to the folder name.
marathonite -batch [path-to-the-project-folder] [subfolder_name].AllTests
MarathonITE creates a
marathon-reports folder in which the results of the tests are written.
You can select only some tests to execute using various options of marathonite command.
|Name of the test case(s). Usage: testname1 testname2.|
|+||Charatcter '+' followed by name of the test suite. Usage: +suite_name|
|@||Charcter '@' followed by name of the Feature. Usage: @feature_name|
|#||Character '#' followed by name of the Story. Usage: @story_name|
|!||Character '!' followed by name of the Issue. Usage: !issue_name|
|~||Character '~' followed by name of the saved run. Usage: ~savedrunname|
Some of the other commands available in batch mode.
|-help||Gives you the list of commands available.|
|-reportdir||Path to report directory where test run report goes. Usage: -reportdir |
|-capture||Capture's screen when error occurs.|
|-delay||Delays after each statement execution Usage: -delay |
|-demo||Runs AUT in demo mode. In this mode you can pause, delay or speed-up test(s) exceution.|
Running AUT in DEMO mode
You can use Marathon to execute your test application in DEMO mode using
-demo command line switch. MarathonITE displays a window. Using the controls in this window, you can change the delay time between statements, pause the execution etc.