how to fetch all the TC name and test step names that have db query?
In a soapu ui project suite, I want to fetch the TC name and test step names containing the db scipts.
I am using the code below, getting an issue at the line i.e underlined , tried few things but nothing worked.
If someone can help.
testRunner.testCase.testSuite.project.getTestSuiteList().each {
if(it.name.equalsIgnoreCase("bank")){
it.getTestCaseList().each {
for (testSteps in it.testStepList){
if(testSteps instanceof WsdlGroovyScriptTestStep ){
log.info testSteps.name
log.info testSteps.getContent() or testSteps.contains("db query")
}
}
}
}
}
Please find if the below script resolves the issue and follow in-line comments.
https://github.com/nmrao/soapUIGroovyScripts/blob/master/groovy/MatchingScriptFinder.groovy