Forum Discussion

rajesharma470's avatar
13 years ago

Unable to set property from datasource properties

I have created 'DataSource1' in test steps. I am getting data from excel sheet with some properties say 'Location'.
Then creating a 'REST test request' step which has some properties as queryparams say 'Location'. I am setting the queryparam 'Location' as '${DataSource1#Location}'. But when I run the test cases data is coming in 'DataSource1' properties but its not getting copied to queryparam 'Location'.

Please help me if I am missing anything.

1 Reply

  • Hi,

    Please check to ensure that you are executing the DataSource test step before the 'REST test request' test step.
    A common mistake is executing the DataSource test step after the REST test request and then using a property from the datasource in the request.

    Please see this link as a reference:
    http://www.soapui.org/Data-Driven-Testi ... tests.html