Forum Discussion

tadudek's avatar
tadudek
Occasional Contributor
8 years ago
Solved

Can I change my assertion 'contains' value based on a value in my data source?

I have a datasource. 

This datasource wouild have a number of rows each representing a different test.

Certain values should drive a result of say, true/false 

I planned on using the datasource loop to loop through my data so I didn't have to build 100 requests.

 

Can my assertion 'contains' be driven from the request data (coming from the datasource).

 

Req1 should have a result of true

req2 should have a result of false

etc.

 

EDIT:

 

I tried adding a property to my datasource 'resStatus' in my example and using the reference : ${DataSource#resStatus} but it doesn't resolve

 

See screenshot

  • I found out by going in through the editor, and right clicking the input area, and selecting the data source thoroug the ui, it works. My c/p didn't work with the same values. This seems like a bug. 

1 Reply

  • tadudek's avatar
    tadudek
    Occasional Contributor

    I found out by going in through the editor, and right clicking the input area, and selecting the data source thoroug the ui, it works. My c/p didn't work with the same values. This seems like a bug.