Failure Sharing

Bootup your energy with sharing failure.

Learning Robot Framework : Tags and Control Execution using Tags

Tags

Tags at test case level

Second Tag Test
    [Tags]  Smoke  Sanity
    Setup Tests
    Teardown Tests

->

f:id:woosyume:20210616223926p:plain

Able to run tests filtering with the tags.

robot -i {tagname} {testsuite}

github.com

Default Tags

*** Settings ***
Library  SeleniumLibrary
Default Tags  DEFAULT // here

f:id:woosyume:20210616224735p:plain

Forced Tags

Apply to all test cases

*** Settings ***
Library  SeleniumLibrary
Default Tags  DEFAULT
Force Tags  FORCED_TESTS // here

f:id:woosyume:20210616225105p:plain

Execute with tags

  • -i (include) {tagname}AND/OR/NOT{tagname}
  • -e (exclude)
  • -t particular test case
  • -s particular test suite

github.com

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