robot path/to/folder
Runs all *.robot test suite files inside a given folder and its subdirectories. This command will recursively execute all .robot files within the specified folder. The test results are saved in log.html, report.html, and output.xml in the same directory unless otherwise specified.
robot tests/
Executes all .robot files inside the tests/ directory.
robot path/to/test_suite.robot
To specify a single test suite file to execute. Runs only the specified .robot test suite file. Other test suites in the directory are ignored.
robot tests/login_tests.robot
Executes only the login_tests.robot file.
robot --test "Test Case Name" path/to/test_suite.robot
Robot Framework allows running specific test cases within a test suite. The --test (or -t) option runs only the specified test case(s). You can use multiple --test arguments to run multiple test cases.
robot --test "Valid Login" tests/login_tests.robot
Runs only the Valid Login test case from login_tests.robot.
robot --test "Valid Login" --test "Invalid Login" tests/login_tests.robot
Runs both Valid Login and Invalid Login test cases.
robot --test "Test Case Name" path/to/folder
To run test cases from multiple test suite files.
robot --test "Valid Login" --test "User Registration" tests/
Runs test cases "Valid Login" and "User Registration" from any test suite inside tests/.
robot --include tagname path/to/folder
Tags help filter test execution based on categories.
robot --include smoke tests/
Runs only test cases tagged with smoke in any test suite inside tests/.
To run tests with multiple tags:
robot --include regression --include critical tests/
Runs test cases tagged regression or critical.
To exclude tests with a specific tag:
robot --exclude slow tests/
Runs all tests except those tagged slow.
-d path/to/output Change output directory robot -d results/ tests/
-L DEBUG Set log level robot -L DEBUG tests/
--dryrun Check syntax without executing tests robot --dryrun tests/
--variable VAR:value Pass a variable to tests robot --variable ENV:staging tests/
--rerunfailed output.xml Rerun failed tests from previous execution robot --rerunfailed output.xml
Run all tests in a folder: robot tests/
Run a specific test suite: robot tests/login_tests.robot
Run a specific test case: robot --test "Valid Login" tests/login_tests.robot
Run multiple test cases: robot --test "Valid Login" --test "User Registration" tests/
Run test cases by tag: robot --include smoke tests/
Change output directory: robot -d results/ tests/
python -m robot -d ./Results/current_run -o ./output -l ./log -r ./report -b ./debug C:/Projects/robotframework-xmlvalidator/test/integration