Tags
Tags at test case level
Second Tag Test [Tags] Smoke Sanity Setup Tests Teardown Tests
->
Able to run tests filtering with the tags.
robot -i {tagname} {testsuite}
Default Tags
*** Settings *** Library SeleniumLibrary Default Tags DEFAULT // here
Forced Tags
Apply to all test cases
*** Settings *** Library SeleniumLibrary Default Tags DEFAULT Force Tags FORCED_TESTS // here
Execute with tags
- -i (include) {tagname}AND/OR/NOT{tagname}
- -e (exclude)
- -t particular test case
- -s particular test suite
Set Output Directory
robot -r reports/report.html -o reports/output.xml -l reports/log.html testcases/tags/tagtests.robot
then you can see like this
============================================================================== Tagtests ============================================================================== First Tag Test | PASS | ------------------------------------------------------------------------------ Second Tag Test | PASS | ------------------------------------------------------------------------------ Default Tag Test | PASS | ------------------------------------------------------------------------------ Tagtests | PASS | 3 tests, 3 passed, 0 failed ============================================================================== Output: /Users/woohyeok.kim/Desktop/study/robotframework-basic/reports/output.xml Log: /Users/woohyeok.kim/Desktop/study/robotframework-basic/reports/log.html Report: /Users/woohyeok.kim/Desktop/study/robotframework-basic/reports/report.html