sushant99
15 years agoOccasional Contributor
comparing list of values in two arrays
Hi there,
I am using SOAPUI Pro 3.5.1
I am trying to achieve the following with SOAPUI Pro. Please let me know your thoughts.
I have a datasource step where in a query fetches us a list of values. query (select columnname as result from tablename)
the result is rows of string values (expected results) -
"Risk is average"
"Risk is low"
"Risk is high"
Now the next step is the SOAP Request- Response. In the response I have a xsd string array node containing the values (actual results)
" Risk is low"
" Risk is high"
I want to compare to verify for each and every row in the expected results there is a match available in the actual results. If yes assert true else assert false.
I tried using the xpath assert on the soap response element and compare it with datasource attribute as expected result but it was picking only the first element value for comparison.
Please advice
Thanks,
Sushant
I am using SOAPUI Pro 3.5.1
I am trying to achieve the following with SOAPUI Pro. Please let me know your thoughts.
I have a datasource step where in a query fetches us a list of values. query (select columnname as result from tablename)
the result is rows of string values (expected results) -
"Risk is average"
"Risk is low"
"Risk is high"
Now the next step is the SOAP Request- Response. In the response I have a xsd string array node containing the values (actual results)
" Risk is low"
" Risk is high"
I want to compare to verify for each and every row in the expected results there is a match available in the actual results. If yes assert true else assert false.
I tried using the xpath assert on the soap response element and compare it with datasource attribute as expected result but it was picking only the first element value for comparison.
Please advice
Thanks,
Sushant