Forum Discussion

DAPurcey's avatar
DAPurcey
New Contributor
4 years ago
Solved

command line argument to Skip, Ignore or Disable particular TestCase(s)

I know they can be manually set to disabled however...

Is there a ReadyAPI testrunner.bat command line argument that can...

Skip, Ignor or Disable one or more particular TestCase(s) in an TestSuite

 

Thanks

DAPurcey

  • Hey DAPurcey,

    Have a look at the link below....it lists all testRunner command line switches.

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


    I think the switches you might want to have a look at are the following switches:

    -s allows you to specify which testsuites are executed

    -c allows you to specify which testcases are executed

    -T allows you to specify which tags are executed. I think this is closest to what you need. You can use a logical NOT so you can tag up your tests and then specify using -T which tags should NOT be executed...this appears to match what you want.

    Specify NOT tags in your command line could be huge if youre executing the whole project and take a while to build and setup. Also you'll have to keep updating the tags i expect. If you disable the tests/suites in the GUI and then execute via testRunner, doesnt testRunner ignore the disabled tests? This sounds like the easier option considering your list of disabled tests could change quite often (depending on your delivery/executiom schedule).

    Ta

    Rich



1 Reply

  • richie's avatar
    richie
    Community Hero
    Hey DAPurcey,

    Have a look at the link below....it lists all testRunner command line switches.

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


    I think the switches you might want to have a look at are the following switches:

    -s allows you to specify which testsuites are executed

    -c allows you to specify which testcases are executed

    -T allows you to specify which tags are executed. I think this is closest to what you need. You can use a logical NOT so you can tag up your tests and then specify using -T which tags should NOT be executed...this appears to match what you want.

    Specify NOT tags in your command line could be huge if youre executing the whole project and take a while to build and setup. Also you'll have to keep updating the tags i expect. If you disable the tests/suites in the GUI and then execute via testRunner, doesnt testRunner ignore the disabled tests? This sounds like the easier option considering your list of disabled tests could change quite often (depending on your delivery/executiom schedule).

    Ta

    Rich