Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
XMLCHECKPOINTS (Testing Webservices)
#1
Not Solved Question 
Hi All,

Please explain 1.what are XMLCheckpoint 2. what are they usefull for 3. what effect does UPDATE RUN mode has on them.

Thanks a lot
Reenu
Reply
#2
Not Solved
1. XML Checkpoints check the expected data within XML elements, Attributes, and their values. You can also enable XML and Schema Validation within each XML checkpoint.

2. So if your XML response should contain certain information, you can add an XML checkpoint to make sure the values are correct. Example: make sure <user>Joe</user> is returned

3. UPdate Run Mode means that it will update the XML checkpoint structure in the event that new XML elements are added to a response. When you add an XML checkpoint, it takes a snapshot of all the elements that are in an XML request or response. If the XML is updated to add more element names, the test will fail if you dont update the element structure. Update mode will let QTP update the checkpoint to use the NEW structure but You will need to check your expected checkpoint values again
Reply
#3
Not Solved
thanks a lot for answering my question, though i am facing a problem that still persists.
My Web Service Method take State and date as inputs(from global data sheet)
it gives an xml of structure
Code:
<Limit>
<limitid>"Numeric value here"</limitid>
<desc>"string value here"</desc>
</limit>
there can be more than <limit> set for one state.So it runs for "CA" and gimes a whole bunch of these, than It runs"AZ"and does the same.
But when i UPDATE RUN with UpdateXMLcheckpoint checked checkpoint XML has values from the last Sate only in this case"AZ" so my tests fails for "CA".
Where am i worng? So i guess i want to know where/when should i use Updaterun for xmlcheckpoints.

Thanks a lot in advance.
Reenu
Reply
#4
Not Solved
just to clarify:
is it your XML response that contains the limit elements?

does the xml response contain all the states or are you looping through each row of the data sheet and request by a single state?

If you are getting all states in a single response, then essentially your xml structure should be consistent. If you are doing single requests on each state and each state will have a different number of limit elements causing dynamic xml response, then you have to modify the XML checkpoints to not check the number of child elements. If you have to verify the values in these dynamic elements, its best to write some vbscript to do this instead of using an XML checkpoint. XML Checkpoints are intended for XML requests/response where the structure does not change.
Reply
#5
Not Solved
Yes, XML response contains LIMIT
Yes, i am looping thru it essentially i am providing it thru datasheet and in the result pane i have 2 iterations
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  WEBServices Veera0383 0 1,621 08-21-2013, 02:47 PM
Last Post: Veera0383
  impossible to pass a parameter of type 64 bytes in a webservices dosreis 0 2,008 06-21-2013, 01:55 AM
Last Post: dosreis
  New to webservices testing in QTP Shwetha 0 2,134 02-08-2009, 02:46 AM
Last Post: Shwetha
Question WebServices Testing reenuu 3 3,211 03-21-2008, 11:53 PM
Last Post: reenuu

Forum Jump:


Users browsing this thread: 1 Guest(s)