We have another problem though. We need to walk the tree in the right order.So can you please tell us how to get the separate counts for CC with respect to its two different parents namely BB and EE1
I am trying to capture the "values." of the individual node elements by looping,but am not sure how to get the children count for node given the x path like expression
here's a sample xpath expression def hold = "//ns1:CC["+x+"]
where x is a running number.
Basically i need to get a child count for a Node but i only have the x path expression with me.Not sure how to proceed further.
Thanks for the reply and it simply works great. Now i am able to also have an integration test case flow with combinations of different requests and their respective groovy scripts to parse the respective response xmls.
I am also in a similar situation where in i have to test stateful services. I have also enabled the option in the Test suite to maintain Http session. It all works fine when i manually copy and paste the Set Cookie =XXX id into the request header of another request after login.
The sequence of steps that i have is 1 login :request step 2 set session : groovy script 3 do XYZ : request step
if i use the script as given in the example as in step2 (set session : groovy script) like
def state = context.getProperty( com.eviware.soapui.model.testsuite.TestRunContext.HTTP_STATE_PROPERTY )
i am getting the value of the state as null.
I am unable to proceed further because of this.Please let me know if i am wrong any where.Kindly help me fix this groovy script so that i can capture the session id of login method and add it in the subsequent requests in the groovy script.
This is with reference to my previous post.I am able to see the Http Header Information as shown below.I am not able to write the groovy code to capture the "Set-Cookie" parameter and set the same value in another request.
HTTP/1.1 200 OK X-AspNet-Version: 2.0.50727 Date: Sat, 28 Jun 2008 13:40:30 GMT Content-Length: 86 Set-Cookie: ASP.NET_SessionId=ycsvh455xliqpj554w2wym45; path=/; HttpOnly Content-Type: text/xml; charset=utf-8 X-Powered-By: ASP.NET Server: Microsoft-IIS/5.1 Cache-Control: private
In order to maintain the user session in the test case ,if i copy the Set Cookie, HTTP Header Parameter manually into the subsequent requests the session is maintained it works fine.
I Need help in creating a groovy-script between the two request that reads the response cookie of the first response and sets the corresponding request cookie in the following request.
I tried what you said in your previous reply but tool hangs. The stack trace that i am getting on the command window is as pasted below : Looks like its asking for some jetty password.
17:57:03,064 INFO [SchemaUtils] Added default schema from file:/C:/Program%20Fi les/eviware/soapUI-Pro-2.0.2/lib/soapui-2.0.2.jar!/soapEncoding12.xsd with targe tNamespace http://www.w3.org/2003/05/soap-encoding 17:57:03,080 INFO [SchemaUtils] Loading schema types from [file:/D:/sample_.wsd l/new_sample_.wsdl] 17:57:03,080 INFO [SchemaUtils] Getting schema file:/D:/sample_.wsdl/new_sample _.wsdl 17:57:03,861 ERROR [SoapMessageBuilder] Could not find element [{http://www.soap ui.org/sample/}return_fault] specified in part [return_faultMsg] jetty.ssl.password :
Hi Thanks for a quick reply, Well it would be very kind of you if you could give me the steps to start them and run the Sample project successfully I have a demo to give on this .Kindly do the needful
Hi, I am new to soapui2.0.2 Pro tool and am trying to run the sample project in the TestSuiteEditor. All my tests are failing as it says Connection rerfused. Could any one help me run this TestSuite successfully.Thanks
java.net.ConnectException: Connection refused: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(Unknown Source) at java.net.PlainSocketImpl.connectToAddress(Unknown Source) at java.net.PlainSocketImpl.connect(Unknown Source) at java.net.SocksSocketImpl.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at java.net.Socket.<init>(Unknown Source) at java.net.Socket.<init>(Unknown Source) at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:79)
Am new to this tool.Have looked at various features of this tool and looks good.Could any one please tell me if there is any jumpstart exercises reference docs? manual/doc/ref to start off.Any help in this regard asap will be appreciated.