alpha123
5 years agoOccasional Contributor
Disable reststep via groovy
Trying to disable rest test step via groovy. but keep getting below error.
ERROR:Exception happened: groovy.lang.MissingMethodException: No signature of method: com.eviware.soapui.impl.wsdl.teststeps.RestTestRequestStep.isDisabled() is applicable for argument types: (java.lang.Boolean) values: [true]
Possible solutions: isDisabled(), setDisabled(boolean)
Solutions tried:
testRunner.testCase.getTestStepByName("mystep").setDisabled(true)
testRunner.testCase.testSteps["mystep"].disabled = true
def testStep = testRunner.testCase.getTestStepByName( "mystep" )
if( testStep.disabled ){
testStep.disabled = false
}
testRunner.testCase.getTestStepByName( "mystep" ).setDisabled(true)
but, same error every time. is it different for rest step type?