Forum Discussion

accident113's avatar
accident113
New Contributor
7 years ago

Skip Tests without Tag on Jenkins

Hello,

 

   I seem to run into the issue where I am executing: 

/usr/local/ReadyAPI-2.0.0/bin/testrunner.sh -r -a -A -j -Duser.name=jenkins -Dsoapui.scripting.library=${WORKSPACE}/groovy-lib -E$2 -PSystemUnderTest=$2 -f $3/reports/$1/${userstory} "$f" -T"TestCase Framework Regression"
where It should only run the tags with Framework Regression. After running this Jenkins is returning the suite as a failure due to the skipped tests are returning: 
21:11:50,014 ERROR [SoapUIProTestCaseRunner] java.lang.Exception: The tag "Framework Regression" was not found.
21:11:50,014 ERROR [SoapUI] An error occurred [The tag "Framework Regression" was not found.], see error log for details
21:11:50,014 ERROR [errorlog] java.lang.Exception: The tag "Framework Regression" was not found.

Is there anyway to skip all other tests or make it pass via running through command line?

 

1 Reply

  • Nastya_Khovrina's avatar
    Nastya_Khovrina
    SmartBear Alumni (Retired)

    Hi,

     

    Thank you for your post. If a specific tag isn't specified in a project, the command line where you try to filter TestCases in this project by this tag is considered as invalid (the filtering condition is invalid). In order to avoid this error, you need to add all tags you use, to all projects.