searay60
13 years agoOccasional Contributor
index Soap input line with assertion
I have multi-line input (several product numbers to price) and serveral assertions (qty, uom, price, etc) for each. Sometimes Soap returns the output in a different order than I have them in the input; for example the first input line may come back as the third result line, or the second input line will come back as the first result line. The problem is my assertions are set up based on the position of the product number in the input. In other words, I'm expecting $34 in the first assertion (for the first line of the input) but $34 is returning as the third result (assertion) and some other price is returning in the first assertion. How do I index or associate the assertions with the input so this does not happen? It causes the tests to fail. Thank you.