Contributions
Re: groovy script code for data driven testing
Thanks a lot for sharing following information Adding to the below mentioned script , I have one query The script works fine If we add a groovy step in testSteps and execute But If we want to read the values from excel using "TestSuite - teardown script " what changes need to be done because I changed getXmlHolder ,testRunner to testSuite variable .But It's not working So Can anyone give some idea in this ??15 years agoPlace ReadyAPI QuestionsReadyAPI Questions6.6KViews0likes0CommentsUpdating testStep from testSuite - Teardown script ??
Hi All, I can't able to update request values of a testStep from TestSuite -teardown script .When i execute following code in logs ,It's showing element is updated but actually it remains the same . Can anyone tell me the way ,how to do it ?? Code : def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context ) def request1 = testSuite.getTestCaseByName("Test Case").testSteps["teststep"].testRequest def requestContent = request1.requestContent def holder = groovyUtils.getXmlHolder(requestContent) def h = holder.getNodeValue("//man:customerId") def y= holder.getNodeValue("//man:customerId") holder.setNodeValue("//man:customerId","234") holder.updateProperty() but it's not updating1.5KViews0likes2CommentsRe: How to remove testcase using testSuite Teardown script ????
I tried with the above code but didn't get the result It gave the following error message groovy.lang.MissingMethodException: No signature of method: com.eviware.soapui.impl.wsdl.WsdlTestSuite.removeTestCase() is applicable for argument types: (java.lang.String) values: {"Test Case"}3KViews0likes0CommentsRe: How to remove testcase using testSuite Teardown script ????
I tried with the above code but didn't get the result It gave the following error message groovy.lang.MissingMethodException: No signature of method: com.eviware.soapui.impl.wsdl.WsdlTestSuite.removeTestCase() is applicable for argument types: (java.lang.String) values: {"Test Case"}3KViews0likes0CommentsHow to remove testcase using testSuite Teardown script ????
Hi All, Can anyone tell me how to remove testcases using testSuite teardown script ? I can able to add a testcase using the following code , def pname = testRunner.testCase.testSuite.addNewTestCase("Success Case") Waiting for the response .. Thanks & Regards, SrinivasSolved4.3KViews0likes7CommentsRe: add testStep using testSuite teardown script ???
Hi Ole, I am getting the following error groovy.lang.MissingPropertyException: Exception evaluating property 'createAccount' for java.util.ArrayList, Reason: groovy.lang.MissingPropertyException: No such property: createAccount for class: com.eviware.soapui.impl.wsdl.WsdlOperation1.4KViews0likes0Comments