FRAMEWORK » ROBOT

Command

Usage

shell
robot OPTIONS PATHS
OptionDescription
-t --testSelect tests by name.
-s --suiteSelect suites by name.
-i --includeSelect tests by tag.
-e --excludeSelect tests not to run by tag.
-R --rerunfailedSelect failed tests from an earlier output file.
-v --variableSet variables in the test data.
-d --outputdirWhere to create output files.

Return code (full list here):

CodeDescription
0All tests passed.
1-249Number of tests failed.
250250 or more failures.

Examples

Set a variable and run all tests:

shell
robot -v HEADLESS:True .

Select suite and test:

shell
robot -s 'suite.regression' -t 'Login Page' .