ATF - Assigned to field validation

J_31
Kilo Sage

Can someone tell me how to validate  if assigned to belongs to assignment group - how to create that step in ATF 

4 REPLIES 4

Arpan Baishya
Kilo Sage

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. 

 

ArpanBaishya_0-1692417167676.png


You might see an error in the Client Test Runner like this one.

 

ArpanBaishya_1-1692417251670.png


But more importantly, the test will fail at step 9 because the update would be unsuccessful.

ArpanBaishya_2-1692417341650.png

 

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.





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 

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. 

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