Contact Us
About Us
News
Home
Main Menu
Home
Eviware Store
Downloads
Products
News
Forum
Eviware Blog
Search
FAQs
Customer Area
Support
Documentation
Tutorials
CookBook
Downloads
Forum
Login Form
Welcome,
Guest
. Please
login
or
register
.
December 02, 2008, 11:40:13 am
Username:
Password:
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Forgot your password?
Capture a value from the response
Welcome,
Guest
. Please
login
or
register
.
December 02, 2008, 11:40:13 am
News:
The Forums are up! Welcome to eviware.
Eviware Forum
soapUI
soapUI
Capture a value from the response
« previous
next »
Pages:
[
1
]
Author
Topic: Capture a value from the response (Read 434 times)
Deepu
Newbie
Posts: 1
Capture a value from the response
«
on:
April 01, 2008, 01:30:46 pm »
I am getting the following reponse
<soap:Envelope xmlns:soap="
http://schemas.xmlsoap.org/soap/envelope/
" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance
" xmlns:xsd="
http://www.w3.org/2001/XMLSchema
">
<soap:Body>
<ConvertTempResponse xmlns="
http://www.webserviceX.NET/
">
<ConvertTempResult>12</ConvertTempResult>
</ConvertTempResponse>
</soap:Body>
</soap:Envelope>
I want to capture the value 12 to validate the repsonse. Please let me know how to do it .
Logged
omatzura
Administrator
Hero Member
Posts: 1,470
Re: Capture a value from the response
«
Reply #1 on:
April 01, 2008, 01:52:03 pm »
Hi,
add an XPath assertion with the xpath-expression
declare namespace ns='
http://www.webserviceX.NET/';
//ConvertTempResult/text()
and set the expected value to
12
Hope this helps!
regards,
/Ole
eviware.com
Logged
ahsu
Newbie
Posts: 10
Re: Capture a value from the response
«
Reply #2 on:
April 23, 2008, 09:53:36 am »
Hi,
I am new to this SOAP UI tool. I had a question regarding the correlation.
In this post they want to validate a value (12). That is fine.
But if i want to capture a dynamic value from the response then how should i proceed in this aspect.
For ex if i am searching a book (for java) in the website. I will get the details of that book. But if i want to search a 'C' book the details will differ (like author, book name, publicaiton etc). Depending on the user input value the page is differing.
So now please tell me how can i capture the author, bookname, publication such that for the respective input i should get the relevant page of that input.
Please do the needful.
Thanks in advance.
Thanks
ahsu
Logged
Pages:
[
1
]
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> eviware general
-----------------------------
soapUI
-----------------------------
=> soapUI
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Powered by SMF 1.1.2
|
SMF © 2006-2007, Simple Machines LLC
Loading...