Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

All tests of a suite are run, if include tag not available in data file #92

Open
philipp2023 opened this issue Nov 23, 2023 · 0 comments

Comments

@philipp2023
Copy link

Test:

*** Settings ***
Library           String
Library           DataDriver

Test Template     Verify Pwd Length
Default Tags         RegressionTest    SmokeTest    foo   noTestShallBeRun


*** Test Cases ***
Login with user '${username}' and password '${password}'    Default    UserData


*** Keywords ***
Verify Pwd Length
    [Arguments]    ${username}   ${password}

    ${pwdLength} =    Get Length    ${password}
    Should Be True    ${pwdLength} > 5

Data file:

*** Test Cases ***;${username};${password};[Tags];[Documentation]
Right user empty pass;demo;${EMPTY};1;This is a test case documentation of the first one.
Right user wrong pass;demo;FooBar;2,3,foo;This test case has the Tags 2,3 and foo
;${EMPTY};mode;1,2,3,4;This test case has a generated name based on template name.
;${EMPTY};${EMPTY};;
;${EMPTY};FooBar;;
;FooBar;mode;foo,1;
;FooBar;${EMPTY};foo;
Should Pass (SmokeTest);FooBar;FooBar;SmokeTest,anotherTag;

If tag exists in data file, --include works

Img1

If tag does not exist in data file, all tests are run

Img2

Expected

No tests are run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant