Ask a Question

Data Source - Assertion

SOLVED
Asubbiah
Contributor

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

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
TanyaYatskovska
Community Manager

Re: Data Source - Assertion

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.

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager


Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️

View solution in original post

1 REPLY 1
TanyaYatskovska
Community Manager

Re: Data Source - Assertion

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.

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager


Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
cancel
Showing results for 
Search instead for 
Did you mean: