Forum Discussion

NidhiGarg's avatar
NidhiGarg
Occasional Contributor
6 years ago

How to Run two tags together in SOAPUI pro??

I tried adding two tags like "-TTestCase WTR,WTRSS" in jenkins console , but it shows testcase are disabled?

how to add two tags in jenkins??

4 Replies

  • Nastya_Khovrina's avatar
    Nastya_Khovrina
    SmartBear Alumni (Retired)

    Hi Nidhi,


    From https://support.smartbear.com/readyapi/docs/soapui/running/automating/cli.html

    -T: Specifies test suites or test cases to be executed by their tags.

    Usage: -T"TestCase tag1[, tag2 ...]"

    If you specify one or several tags, the test runner will run only those test suites or test cases that have all the tags you have specified. For example, if you specify -T"TestCase tag1, tag2", it will not run test cases that have tag1 or tag2, but it will run test cases that have both tag1 and tag2.

     

    Do your TestCases have both tags?

    • NidhiGarg's avatar
      NidhiGarg
      Occasional Contributor

      Yes, All my test-cases are segregated by Sanity ,Regression 

      So i want to run Sanity & Regression both tags scenarios what should be written to execute those.

      because if i add  "-TTestCase Smoke,Regression" this is an AND condition for OR condition what can be done??

       

      • Nastya_Khovrina's avatar
        Nastya_Khovrina
        SmartBear Alumni (Retired)

        Hi,

         

        Try the following:
        create a Project Setup script -

        - which checks the values of the TestCaseTags and TestSuiteTags Global Properties (they are passed as command-line arguments and their format is "tag1,tag2,tagN");

        - and which disables the corresponding items, which don't contain any of the listed tags.