ATF test for validating the list of users on a dropdown field in a record producer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-11-2024 06:36 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-12-2024 04:05 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-13-2024 01:23 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-13-2024 04:22 PM
Thanks @Shaqeel
Do you think this would be an ideal solution for the scenario wherein I might have 50 values for that field?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-14-2024 05:00 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-26-2024 03:39 PM
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.
