Tag in ReadyApi
Can any one please explain how the tags work in readyApi, when you run from commandline, testrunner.bat. I can not use what is written in the documentation https://support.smartbear.com/readyapi/docs/soapui/running/automating/cli.html#_ga=2.197920108.2145816237.1553073610-857303722.1547120448.
I have testSuites and testCases, some of them taget and some not. Let us say testSuite1 has tag 'regressionTest', testSuite2 has tag 'unitTest' and testSuite3 has tag 'smokeTest'. How should I write on the commandline if I only want to run the testSuite tagged with 'regressionTest'. I have tried
>testrunner.bat -f"%WORKSPACE%\output1" -FPDF -j "%WORKSPACE%\my_project" -T"TestSuite regressionTest"
but I still get the whole project run. I appreciate your answer.
And what does this mean?
The specified tags must be assigned to the test cases and test suites that you specify by using the -s and -c arguments. Otherwise, there will be no tests to execute. |
Do I need to write every testsuite with -s and every testcase with -c before I can use the Tag? Please any noe can explain?
Yeah, I spotted the inconsistency in the documentation as well, I took it to mean that either was is OK.
Did you try using the TestRunner GUI to generate the command line?
Hi Radford
Finally it worked by using TestRunner GUI to generate the command line. Then I copied the generated cmdline to the cmdline and it worked with "-TTestCase regressionTest". Thank you very much for the idea :)
Regards
Ranj