Enable & Disable test steps
Hi,
I am looking for a help. Would you please assist me. I need to disable and enable test steps.
Below code is not disabling particular steps from Test Steps.
My requirement i want to disable first all the Test steps under test cases then based on scenarios then i need to do enable specific test step. I tried below code as well. But it is not enable/disable specific test steps.
http://saurabhguptaqe.blogspot.com/2013/05/enable-and-disable-test-steps-in-soapui.html
1) Create a Suite and Test case and test steps then trying to disable all the stpes that i have created. Wants to disable particular test steps.
def testStep = testRunner.testCase.getTestStepByName( "getDataInputsFromExcel" )
if( testStep.disabled ){
log.info "Disabled"
testRunner.testCase.getTestStepByName( "getDataInputsFromExcel" ).setDisabled(false)
}
else
{ log.info "UnDisabled"
testRunner.testCase.getTestStepByName( "getDataInputsFromExcel" ).setDisabled(true)
}
Thanks,
Amy
- amysoap, check below thread to see if that helps:
https://github.com/nmrao/soapUIGroovyScripts/blob/ed7398271673b57a89935e1fba98c813b387de56/groovy/DisableTestSteps.groovy