Built something you're proud of? Tell the story. A quick G2 review of App Engine or Build Agent helps other developers see what's possible on ServiceNow. Share your experience.

Instance auto log out after running ATF test.

vaishali1
Tera Contributor

Hi All,

 

I have created one test and added test steps, but when I am clicking on 'Run Test' its opening portal page and immediate logging out .

1. Creating and impersonating user in first step

2. In 2nd step Opening record producer

3. After that setting some value

4. Submitting that form

5. Ending Impersonation

 

2 REPLIES 2

Shaqeel
Mega Sage

Hi @vaishali1 

 

Check any role or group required to open that record producer.

 

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

phgdet
Mega Sage

Hi vaishali1, 

The user that you created at the first step could have marked as locked_out = true. Add locked_out = false at the creation step and try to run it again.
Refer to this article: ATF test user gets logged out midway through the execution