Forum Discussion
4 Replies
- gilugopiContributor
The easiet way I could think of is create a data source test step to return a list of input values and expected output and use the same in input parameter and output assertion.
Example DataSource
Input, ExpectedOutput
ipA, expOutputA
ipB, expOutputB
ipC, expCoutputC
... and so on
Then replace input parameter data in test step with value ${DataSource#Input} and assert value in output as ${DataSource#ExpectedOutput}
insert a DataSource Loop test step at the end of the test step to run your test case for all inputs/expected output values in DataSource.
Good Luck,
Regards,
Gilu Gopi
- gaurkhuranaOccasional Contributor
Thanks for the response. I tried this but my assertions are keep getting failed. I am not able to get the reason for the failure.
I have the following steps
Step 1 - Data source (Grid) with 2 columns, input and output
Step 2- Request XML with one of the fields paramaeterized iwth the input data source like ${Dataource#input}
Step 3 - XPATH assertion with expected response as ${DataSource#output}
Step 4 - Data Source loop pointing to the data source in Step 1
- gilugopiContributor
Please send more details
1. input xml
2. output xml
3. Xpath for assertion