Contributions
- 16 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.1KViews0likes0Comments
Re: Assertion Script
Thank you very much, that works fine. I have set up an excel datasink which successfully collects the material_number used and now I want to write in the columns beside it whether the product for this material-number was found or not. Have the following code in my test step groovy script and a property called produkt_found in my datasink_excel step: def response = holder.getXml() if (holder.xml.indexOf(" ") > -1) { log.info "have it" produkt_found = "Found" } else { log.info "don't have it"; produkt_found = "Not found" } So my question is, what code do I need in the value box of the property in the datasink so that it collects the value "Found" or "Not Found" set by the groovy script? I promise sincerely that I have rtfm and googled my socks off before posting this16 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.1KViews0likes0CommentsRe: Need to change a single digit in about 300 scripts!
Thanks for the replies guys. This newbie did not realise that all the requests are stored in a single xml project file, so it was possible to do the changes to a single file for each of the affected projects using a standard text editor. So I did not have to follow the instruction I was given to change each request individually by hand from the xml test frontend What nreimertz is saying is basically true, but the server-side setup is beyond my control and not standard. And like Shakespeare said, all's well that ends well.16 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.3KViews0likes0CommentsAssertion Script
Have read all the docu and searched this forum, but still don't see how to do this.... I have a CONTAINS assertion in a Test Step which I now want to put in a groovy script. Have this code: def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context ) def holder = groovyUtils.getXmlHolder( "Test_Request_sPUA#Response" ) How can I test with an assertion if the response stored in holder contains the string " " ? Tnks, Kevin16 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.5KViews0likes4CommentsRe: Documentation of the getXmlHolder Method with examples
Hi, we fixed this with log.info( holder.getNodeValue("//ns1:Angebot//ns1:ID")) That returned the id. Now posting on Soapui Pro Forum. BTW I am a good boy who likes to rtfm. is there any docu on .getNodeValue etc..? Rgds, Kevin2.2KViews0likes0CommentsNeed to change a single digit in about 300 scripts!
Isn't life wonderful? This morning I was given the task of repairing about 300 scripts which have the following problem: the soap requests all contain the following in the first line xmlns="http://sucheProduktUeberAngebot_v02 it needs to be changed to xmlns="http://sucheProduktUeberAngebot_v03 The requests are all in the same soapui project. I have perl installed on my windows pc, but I'm not a perl programmer. On the other hand, I am sure my brain will melt if I do all 300 by hand....16 years agoPlace ReadyAPI QuestionsReadyAPI Questions2KViews0likes3Comments