Yes add a column in CSV with expected response , read it into a variable
say expectedResponse
add a response assertion as child of your sampler
<ResponseCode>${expectedResponse}</ResponseCode>

regards
deepak


On Wed, Feb 15, 2012 at 1:45 PM, rajan gupta <rajangupta...@gmail.com>wrote:

> Hi
>
> I am building a performance test for a SOAP Service.
>
> I could send a soap message and get soap response. Now I used CSV data set
> config and parametrized my input parameters. When I run 1 thread I see the
> response in "View Results Tree"
> My response will be in the xml in a node
>
> <t1>
> <t2>
> <t3> <ResponseCode>Confirmed</ResponseCode>
> </t2>
> </t1>
>
> I get Confirmed for some Unconfirmed for some as ResponseCode. Any other
> ResponseCode will indicate a failure. It is a failure if I get uncofimrmed
> response code when I am expecting Confirmed.
>
> When I run 1 thread I can manually check the response code.
>
> In performance test how can make sure that I am getting proper response
> code.
>
> Can I put expected response code as a element in each line of .csv file and
> validate it somehow.
>
> Any pointers is appreciated.
>
> Thanks
> Rajan
>

Reply via email to