Forum Discussion
pradeepbishnoi
14 years agoContributor
Hi,
To get the data from the property value in DataSource use the following in the xPath assertion of the teststep which is between the data source test step & data source loop test step.
${DataSource#PropertyName}
Now since u want to match specific field from the response (use xPath to select the same) with the value in data source.
Put xPath expression which will fetch the data from the response in the xPath expresison field.
And in the expected result, put the data source property : ${DataSource#PropertyName}
Example to show the hierarchy of the project, which can be used : add xPath assertion in test step 2
testsuite
- testcase
- - test step1
- - data source
- - test step 2
- - data source loop
I hope this information would be of some help. Do update us all if it works or if it doesn't :-)
~~ Pradeep Bishnoi ~~
To get the data from the property value in DataSource use the following in the xPath assertion of the teststep which is between the data source test step & data source loop test step.
${DataSource#PropertyName}
Now since u want to match specific field from the response (use xPath to select the same) with the value in data source.
Put xPath expression which will fetch the data from the response in the xPath expresison field.
And in the expected result, put the data source property : ${DataSource#PropertyName}
Example to show the hierarchy of the project, which can be used : add xPath assertion in test step 2
testsuite
- testcase
- - test step1
- - data source
- - test step 2
- - data source loop
I hope this information would be of some help. Do update us all if it works or if it doesn't :-)
~~ Pradeep Bishnoi ~~