Asubbiah
9 years agoContributor
Data Source - Assertion
Hello.
Can I add different assertions for each run in the datasource looping?
In each row I am passing some filter conditions like 'date lesser/greater than and equal to'. I need to verify the dates in the REST response, if they are valid for the conditions passed.
Datasource:
filter condition date
less than 2015-02-02
greater than 2015-02-02
equal to 2015-02-02
Hi Asubbiah,
You will need to add the Script Assertion – there, you will iterate through each DataSource property, get the needed vales and implement the compare algorithm you need.