Forum Discussion

mrdwprice's avatar
5 years ago

Disabling specific test case using project Setup Script

I have the below script to disable a TestSuite using the project Setup Script.   //get the environment name def env = runner.project.getActiveEnvironment().name //def testsuite name def ts = run...
  • Radford's avatar
    5 years ago

    The WsdlTestCase class has the setDisabled method so from a Project start up script which provides you with the variable "project" you can use the following:


    project.getTestSuiteByName("TestSuite 1").getTestCaseByName("TestCase 2").setDisabled(true)