Forum Discussion

jkgupta0003's avatar
jkgupta0003
Occasional Contributor
12 years ago

How to apply assersion on varying response in soapui

Is there any way to apply assertion on the Varying responses of the same request? Project structure is like this:

.Test Request

..DataSource

...Test Request

....Data Loop

I am storing a specific node's value from 1st request in the data source and iterating on those values in the 2nd request. Each time response is different. Now I wanted to add some assertion to verify the response of the second request. Pl. help me and let me know if need any other information.
Thanks.

2 Replies

  • jkgupta0003's avatar
    jkgupta0003
    Occasional Contributor
    Thanks Giscard.
    I can't apply xpath assertions to each and every node cause there are 100s of nodes in the response. And I have to match content of the each node. Is there any other way like message content assertion for all the different responses? Pl. see the below snippet of response. I have to match Values on Nodes Vs, IDs and every time values are different. Pl. help me. Thanks

    <V>0-30</V>
    </P>
    <P i:type="MP">
    <ID>ARTotal</ID>
    <V>32380.0000</V>
    </P>
    <P>
    <ID>Currency</ID>
    <V>USD</V>
    </P>
    <P i:type="NP">
    <ID>Invoices</ID>
    <V>2</V>