Ask a Question

How to find a test step is enabled or disabled?

Manimaran
Occasional Contributor

How to find a test step is enabled or disabled?

Hi,
i want to know in a test case, if any test step is disabled. if so how can i find a particular test step or test case is enabled or disabled?
4 REPLIES 4
SiKing
Community Expert

Re: How to find a test step is enabled or disabled?

The way I solved this problem is to use Composite Project http://www.soapui.org/Working-with-Proj ... pport.html and then grep through the entire thing for the word "disabled".
I also filed an enhancement request with SmartBear to be able to search for exactly this kind of information, but I am pretty sure it gets a pretty low priority.

Re: How to find a test step is enabled or disabled?

You could just run this Groovy code:

log.info testRunner.testCase.getTestStepByName("Test Step Name").disabled

Thanks,
Michael Giller
SmartBear Software


Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
SiKing
Community Expert

Re: How to find a test step is enabled or disabled?

project.testSuiteList.each {
it.testCaseList.each {
if (it.disabled) log.info "Disabled testCase: ${it.name}"
it.testStepList.each {
if (it.disabled) log.info "Disabled testStep: ${it.name}"
}
}
}
Manimaran
Occasional Contributor

Re: How to find a test step is enabled or disabled?

Thank you. I am able to use the above code and get what i need.
cancel
Showing results for 
Search instead for 
Did you mean: