Forum Discussion

DAPurcey's avatar
DAPurcey
New Contributor
4 years ago

testrunner.bat command to disable a particular TestCase from a TestSuite

Hello when using testrunner with the following batch command lines CD C:\Users\UserName\AppData\Local\SmartBear\ReadyAPI-3.5.0\bin call testrunner.bat "-sTestSuite 1" "C:\GPS-API\TestScripts\REST-G...
  • nathan_wright's avatar
    4 years ago

    Event scripting may be a good fit but does require enabling/disabling testcases, which in the case of an error or more granular runs could cause unexpected results.

     

    An alternative could be to use the TestCase tags that can be configured at a TestSuite level. These can be set within the TestSuite Editor and you could either tag the 'must run' cases, or 'optional' ones. Using testrunner.bat, one or many of these tags can be specified at run time using the -T argument along with operators for more complex conditionals. This will avoid enabling/disabling a testcase on the fly but should provide the flexibility required on what to run.

     

    These can also be used at a project level to tag specific testsuites that should share groupings.