mrdwprice
6 years agoContributor
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...
- 6 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)