ATF - Assigned to field validation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2023 06:20 PM
Can someone tell me how to validate if assigned to belongs to assignment group - how to create that step in ATF

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2023 09:01 PM
Hi @J_31,
I'm not entirely clear on what you're trying to accomplish via the ATF. Perhaps, you could elaborate a little more on that.
However, keeping the default functionality in mind, if you set the Assignment Group field to a particular value first, you can only choose among members of that group to populate the Assigned to field. Here, I am going with the assumption that both fields are initially empty.
Therefore, if you create an ATF test like the one below.
You might see an error in the Client Test Runner like this one.
But more importantly, the test will fail at step 9 because the update would be unsuccessful.
So, what that means is that in step 6, you must add a member of the group specified in step 5 for the update to work correctly and for step 9 to pass.
Hope that answers your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2023 09:11 PM
If the user belongs to a particular assignment group and he is the current logged user then , he should be able to edit the assigned to field , otherwise assigned field is greyed out. This is my scenario

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2023 09:20 PM - edited 08-18-2023 09:32 PM
Okay, if you need to, you may add an Impersonate step right at the beginning of the test where you can impersonate a certain user to make sure the test runs as expected.
For your requirement,
If the user belongs to a particular assignment group and he is the current logged user then , he should be able to edit the assigned to field , otherwise assigned field is greyed out.
You may have already implemented this via scripting. So, in my opinion, all you need to test through ATF is whether the Assigned to field is displaying as read-only or not for the user who is running the test.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2023 03:21 AM
Hi @J_31
Step1. Impersonate with other user who are not present in Assignment group.
Step2. Use field state validation to validate that "Assigned To" is read only.
Step3. Impersonate with user who is present in Assignment Group.
Step4. Use field state validation to validate that "Assigned To" is editable.
Step5. Set the Assigned To fields.
Regrds
Shql
***********************************************************************************************************************
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