Forum Discussion
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?
- NidhiGarg7 years agoOccasional 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_Khovrina7 years ago
Alumni
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.
- Olga_T7 years ago
Alumni
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_Khovrina! :heart: