Contributions
how to read a single request from multiple requests in a xml file
Hi All, I am using SOAP 5.1.2 and below is my requirement I have an property file, where data will be dynamically changed and XML file with multiple requests Here, I have an property file as below <email.id>xyz@gmail.com</email> <pwd.pd>xyzadf</pwd> and xml with multiple requests as below <tc1> <payload>email=${email.id}&pwd=${pwd.pd}</payload> </tc1> <tc2> <payload>email=${email.id}&pwd=${pwd.pd}</payload> </tc2> the email and pwd filed in xml file will changed based the value assigned in property file which will be manually given. can anyone help me on how to read the value in property file(which will be a local file) and set in xml file and how to access the request from multiple request. I have to access a particular request like tc1 and tc2 for teststep1.4KViews0likes4CommentsNeed help on passing the URL from script
Hello SmartBear Support, I have a URL has "https://www.t1.com./pageNo=1" in teststep "t1". Here I need to change pageNo from 1 to 2,3,4 and so on.. How to change the this pageNo in the URL? Also I need to change this pageNo in another test step say "t2" Here is my testsuite structure t1 t2 //here I need to write script to change the pageNo in the previous step whether below will help? testRunner.testCase.getTestStepByName(requestName).getHttpRequest().setEndpoint(ENDPOINT) Also remember I need to change only the pageNo1.3KViews0likes0CommentsRe: Trouble Extracting Element from response
You have to specify the namespace "xmlns=https://llapiu4.servevirtual.net/AccountWCFRestService/AccountServiceHost.svc/AccountService" like xmlns:a it will look like xmlns:a=https://llapiu4.servevirtual.net/AccountWCFRestService/AccountServiceHost.svc/AccountService then use xpath expression as //Header/RequestId12 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.5KViews0likes0CommentsHow to find a string from previous teststep response?
Hi All, I need to search a string from previous teststep response. What I did is def holder1 = groovyUtils.getXmlHolder( "teststep1#Response" ) def root = new XmlSlurper().parseText(holder1) but I can't able to find the string that I needed in root if(root.contains(string)) above if condition fails how to achieve this any help is appreciated12 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.4KViews0likes0CommentsHow to print failed assertions to a file?
Hi All, I've 10 testcase, each testcase have 2 or 3 assertions. What I need is if I run the entire 10 testcases at time and if any one assertion fails in any one of the testcases, I need to print the failed assertion to separate external file. So my external file should have only failed assertions. Any help on this? Regards, Naveen12 years agoPlace ReadyAPI QuestionsReadyAPI Questions1KViews0likes0CommentsRe: Groovy script and SOAP UI
Hi, If your xml looks like <xml> <quantity> 3 </quantity> <item> Iphone 5 </item> </xml> def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context ); def url = context.expand( '${#Project#url}' ) //define the external xml file URL d://sample.xml in project properties String s1= new File("${url}").text def holder = groovyUtils.getXmlHolder(s1); def item1 = holder.getNodeValue("//quantity") propTestStep = context.testCase.getTestStepByName("Pro") //get the properties step name, here the property step name is Pro propTestStep.setPropertyValue("quantity", item1) for using this quantity in the request, simply use ${Pro#quantity} in the request12 years agoPlace ReadyAPI QuestionsReadyAPI Questions2KViews0likes0Comments