Contributions
Re: How to set "store locally" to default = true (or how to set it via groovy script)
Hi, I was also struggling with this but your post has put me on the right track. This works for me: def Suite = '<TestSuitename>' def tSuite = testRunner.testCase.testSuite.project.getTestSuiteByName(Suite) tSuite.testCaseList.each { Case -> for (prop in Case.getPropertyList()) { prop.setUserSpecific(true) } }3 years agoPlace ReadyAPI QuestionsReadyAPI Questions929Views2likes1CommentSimple script to batch edit multiple groovy scripts
Question How to batch edit multiple groovy scripts? Here is my solution. Answer import com.eviware.soapui.impl.wsdl.teststeps.WsdlGroovyScriptTestStep def testSuite = 'testsuitename' String textToSearch = """text""" def replacementText = """text""" def tSuite = context.testCase.testSuite.project.testSuites[testSuite] def testcases = tSuite.testCaseList.toArray() testcases.each() {Case -> for( testSteps in Case.testStepList ) { if( testSteps instanceof WsdlGroovyScriptTestStep && testSteps.getScript().contains(textToSearch)) { log.info(Case.getName().toString() + " - " + testSteps.getScript().toString()) String newString = testSteps.getScript().toString().replace(textToSearch, replacementText) testSteps.setScript(newString) } } }557Views3likes0CommentsSmart assertion: ONLY populate FAILED assertion from received data
It would be very helpful to have the option to ONLY populate FAILED assertions from received data in the Smart Assertion. Now it's only possible to populate all data, which results in losing, for example, valid values asserted by property data.785Views4likes0Comments