ATF - Record Query to Find User - Then Impersonate - Then Set Assigned To

Laurie Marlowe1
Kilo Sage

Hello,

I'm just starting with ATF to convert as many of our manual tests to ATF.  First test, I'm trying to create an incident, fill out the form, assign to Service Desk and assigned to person.  I tried Create User to do this and it would not work.

find_real_file.png

The issue I'm seeing is when doing Field Values Validation, the Assigned To field is empty.

Step 2 - Record Query to find a Service Desk member

Step 3 - Impersonate Service Desk member (from step 2)

Step 4 - Open new form by impersonator

Step 8 - Set Assigned To as Service Desk member (from impersonate)

Then BOOM! it doesn't set the Assigned To.

What am I doing wrong?  Any help is greatly appreciated!

Thanks,

Laurie

 

1 ACCEPTED SOLUTION

Hi Laurie,

Yes steps can be shortened here:

like step no 4, 5 and 6 into one step called 'Record Insert' and similarly for step no 8 to 12 can be shortened as 'Set Field values' and 'Field Value validation'. Hope that much should serve the purpose.

Warnings we can ignore unless until there is an error we are good with the test steps.

 

Please mark this answer as helpful if it helped you.

 

Thank,

Mohit Kaushik

 

Thanks,
Mohit Kaushik
ServiceNow MVP (2023-2025)

View solution in original post

5 REPLIES 5

You are welcome,

I am glad it helped you.

Thanks,
Mohit Kaushik
ServiceNow MVP (2023-2025)