Ask a Question

How to Run two tags together in SOAPUI pro??

NidhiGarg
Occasional Contributor

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 4
Nastya_Khovrina
Moderator

Re: How to Run two tags together in SOAPUI pro??

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?



Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
NidhiGarg
Occasional Contributor

Re: How to Run two tags together in SOAPUI pro??

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
Moderator

Re: How to Run two tags together in SOAPUI pro??

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. 



Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
Olga_T
Moderator

Re: How to Run two tags together in SOAPUI pro??

Hi all,

 

@NidhiGarg, have you had a chance to try the suggestion that Nastya provided? Does this work for you?

 

Many thanks for your assistance, @Nastya_KhovrinaHeart

 


Olga Terentieva
SmartBear Assistant Community Manager

cancel
Showing results for 
Search instead for 
Did you mean: