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.
|<TestCase>||Name of the test case(s). Usage: testname1 testname2.|
|+<TestSuite>||Charatcter '+' followed by name of the test suite. Usage: +suite_name|
|@<Feature>||Charcter '@' followed by name of the Feature. Usage: @feature_name|
|#<Story>||Character '#' followed by name of the Story. Usage: @story_name|
|!<Issue>||Character '!' followed by name of the Issue. Usage: !issue_name|
|~<SavedRun>||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 <pathtorepor_dirt>|
|-capture||Capture's screen when error occurs.|
|-delay<slowdelayInMS>||Delays after each statement execution Usage: -delay <delyatimein_ms>|
|-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.