automated test framework alerts

woodyfairley
Tera Guru

Colleagues, I wish you and your families well in this time of global crisis, and I choose to stay at home to protect our parents and grandparents.

Today's challenge might be simple for some of you but not for me. I am creating the automated test framework (ATF) test steps for one of my applications, I have a form that pops up a form for a related table, and a UI Policy that alerts the user if he/she does not set a field value above a certain number.

I want to trigger the alert and then click the alert OK button to return to the popup form and continue setting field values, but I do not know how to activate the alert's OK button within ATF, I apologize for my ignorance and continue my research. I will post the answer here if I find it before someone else posts the correct answer. Thank you in advance!

Kind Regards,

Woody

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

Unfortunately ServiceNow's ATF framework cannot detect browser pop-ups such as alert, confirm, prompt etc

I had confirmed this couple of months back with ServiceNow and it is not possible.

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

Unfortunately ServiceNow's ATF framework cannot detect browser pop-ups such as alert, confirm, prompt etc

I had confirmed this couple of months back with ServiceNow and it is not possible.

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Thank you Ankur, I wish you well.

Bhanu Kiran
ServiceNow Employee
ServiceNow Employee

You can use GlideModal or GlideModalForm.

KB0786683 and KB0784468

Bhanu Kiran
ServiceNow Employee
ServiceNow Employee

We have an existing article that might help you, in case you are not aware. You can find it here!KB0786683