|
Title: Validation of the responses using assertion Post by: Priya Ranjan Sinha on June 19, 2008, 03:13:52 pm Is it possible to have validate multiple responses from the XML output, simultaneously using a single assertion.
I was using Xpath match assertion , it actually checks the entire output in one shot , but it shows errors only on the very first unexpected response, and skips the rest. Is there is any way to loop assertions or to have a single assertion telling all the unexpected responses in the output. Currently in my xml output, I have got around 200 responses to validate, Is there any way I can validate all with one assertion or need to execute 200 assertions for testing one xml output. Title: Re: Validation of the responses using assertion Post by: omatzura on June 19, 2008, 07:51:46 pm Hi!
I'm not really sure what you mean by "xml output" and "200 responses".. is it that you want to validate 200 blocks of xml in your response message? (sorry for not getting it..) regards! /Ole eviware.com Title: Re: Validation of the responses using assertion Post by: Priya Ranjan Sinha on June 20, 2008, 07:41:36 am Hi Ole,
Yeah, you are right, It is 200 blocks of XML in the response message like this below, <abc> <number>6002</number> <def>futurasync</orgID> </abc> <setting> <Limits> <Messages>1000</Messages> <Storage>1010</Storage> <maxMsg>600</maxMsg> <password>100</password> <passwordLength> <Length>4</Length> </passwordLength> </setting> </Limits> Title: Re: Validation of the responses using assertion Post by: omatzura on June 21, 2008, 08:41:07 am Hi!
if you want to assert all blocks individually you will have to create one assertion for each block, otherwise you can create just one assertion with the entire xml containing all 200 blocks!? regards, /Ole eviware.com |