ATF test for validating the list of users on a dropdown field in a record producer

nehabansal
Tera Contributor

Hello All,
I have a requirement for creating an ATF test wherein I would need to validate one of the variable fields on a record producer, but the variable is a drop down. Is there a way to validate the list of values (drop-down) against a condition in ATF?

Thanks in advance.

9 REPLIES 9

Hi @Shaqeel ,

Sharing the field here. I have to validate all the values under this drop-down field (part of record producer) against a condition.

 

nehabansal_0-1710285077834.png

 

Hi @nehabansal 

 

This is not a drop down field. This is a reference field.

You can not directly validate your requirement.

What you can do is,

set the field value one by one and check where the user is present or not and take one user which is not supposed to be visible in that field. But this way you can do negative testing as well.

 

Mark Helpful/Solution 🙂

 

Regards

Shaqeel


***********************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting "Accept as Solution" and " Helpful." This action benefits both the community and me.

***********************************************************************************************************************





Regards

Shaqeel

Thanks @Shaqeel

Do you think this would be an ideal solution for the scenario wherein I might have 50 values for that field? 

Hi @nehabansal 

 

Thats why we use parameterized testing in these type of requirement.

 

Regards

Shaqeel


***********************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting "Accept as Solution" and " Helpful." This action benefits both the community and me.

***********************************************************************************************************************





Regards

Shaqeel

Thanks for responding Shaqeel. I have tried parameterized test but somehow it passes even for incorrect values. 
I'm using Set Variable Values (SP) for setting the value from my dataset and then Validate Variable Values (SP) for validating the value and it just passes for all the data I pass.
Any idea how to fix this?

Thanks.