ATF: What is the best way to click on information message link in form record

Myrtle_37
Kilo Expert

what is the best way to open links from messages in a form or related list. I know their is a 'set component values' and 

'click component (Custom UI)' also the related list, but none of them is working. Please see 2 attachments. Thank you so much for your time and help.

find_real_file.png

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

Did you try checking using assert text on page step?

I was able to test the info message which was static; it is just that you need to somehow get the complete message in server side script step and then use the "Assert Text on Page (Custom UI)"

I believe you will be creating incident for call; you can access the values and set that during forming the message to be checked

Note: Can you share steps here?

find_real_file.png

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

3 REPLIES 3

Hemant Goldar
Mega Sage
Mega Sage

Hi,

 

Basically, ServiceNow's ATF framework cannot detect browser pop-ups such as alert, confirm, prompt, etc. So you can not click on the linked Incident.check the below link.

https://community.servicenow.com/community?id=community_question&sys_id=30f5b4c7db60d010d58ea345ca96...

If you want to create a test case for your scenario. You can achieve it through open an Existing Record and then validate through field value validation.

 

Hope this helps!

Please mark the reply as Helpful/Correct, if applicable.

Regards,
Hemant

 

 

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

Did you try checking using assert text on page step?

I was able to test the info message which was static; it is just that you need to somehow get the complete message in server side script step and then use the "Assert Text on Page (Custom UI)"

I believe you will be creating incident for call; you can access the values and set that during forming the message to be checked

Note: Can you share steps here?

find_real_file.png

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

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

Is there any update on this? Is this question resolved or you need some more assistance.

Regards
Ankur

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