mwnance
12 years agoNew Contributor
Assetions not working in loop
I am evaluating the Soap-UI Pro version.
I have a Test Suite that has a data source - Request - loop
I set up the data source and I can test it in my request. It gets the parameters runs the request and gets the response and checks for the existence of a field and works fine
However when I run it in a loop the assertion fails for existence. I can see the response and see it is there if I disable the assertions the loop runs fine.
Can anyone suggest what might be the problem. I have other loops with assertions working fine.
<-EDIT ->
I have learned a little more...
For my request I have /PPS/v1_0/{ooid}/{aoid}/FAD/PC In my request The {ooid}/{aoid} get replaced.
But when I build the assertion it takes the value of the replacement. I tried to edit the assertion and insert the same {ooid}/{aoid} in the xpath but those values don't get replaced. I have them defined as style - template and level - resource. Is that correct?
I have a Test Suite that has a data source - Request - loop
I set up the data source and I can test it in my request. It gets the parameters runs the request and gets the response and checks for the existence of a field and works fine
However when I run it in a loop the assertion fails for existence. I can see the response and see it is there if I disable the assertions the loop runs fine.
Can anyone suggest what might be the problem. I have other loops with assertions working fine.
<-EDIT ->
I have learned a little more...
For my request I have /PPS/v1_0/{ooid}/{aoid}/FAD/PC In my request The {ooid}/{aoid} get replaced.
But when I build the assertion it takes the value of the replacement. I tried to edit the assertion and insert the same {ooid}/{aoid} in the xpath but those values don't get replaced. I have them defined as style - template and level - resource. Is that correct?