Contributions
Re: Setting properties at test case level from request
This doesn't have your file path names because i don't know how many you will have but this will create testSuite level properties based on how long the loop runs for(i=0; i<10;i++){ def temp = "cloud" + i.toString() testRunner.testCase.testSuite.addProperty(temp) testRunner.testCase.testSuite.getProperty(temp).setValue(i.toString()) } This creates 10 properties that are all "cloud0, cloud1...." with values "0,1....". You can do the same kind of thing for your File properties. I hope that helps884Views0likes0CommentsRe: Adding headers using a script
I trimmed your code down since I only want to set the header for all the steps in a testcase. I don't see the headerproperty1 or 2 in my headers after running the script. Is there another way to do this? Your original script also didn't work because it has some syntax errors wsdlTestSteps = testRunner.getTestCase().getTestStepsOfType( com.eviware.soapui.impl.wsdl.teststeps.WsdlTestRequestStep.class ) //only WsdlTestRequest steps wsdlTestSteps.each{ log.info(it) it.properties['headerproperty1'].value = ("headerproperty1 value") it.properties['headerproperty2'].value = ("headerproperty 2 value") }833Views0likes0CommentsAlternative to adding multiple contains assertions.
I've noticed that it's it's very slow to add many assertions to test steps. Also many of my assertions are similar both in content and across tests. Has anyone found a good way of creating reusable assertions? I'm especially interested in a way to do multiple "contains" assertions in a single step.897Views0likes1Comment