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.

How to test for a clickable link in a form's infoMessage via ATF Test?

Joe Walters
Tera Guru

Is it possible to configure an ATF Test step that does the following?

  1. Asserts that an infoMessage is displayed on a form (as opposed to an errorMessage, for instance)
  2. Asserts the text within the infoMessage
    1. For now, we're using an Assert Text on Page (Custom UI) Test step
  3. Asserts there is a clickable link within the infoMessage
  4. Asserts that, when clicked, the link navigates to a different browser tab

Below is an example of what we'd like to test (if possible) via ATF, instead of relying on manual testing.

image.png

 

 

1 ACCEPTED SOLUTION

No there is no way to test the others

 


***********************************************************************************************************************
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

View solution in original post

5 REPLIES 5

Tanushree Maiti
Kilo Patron

Hi @Joe Walters 

 

Refer this links if it helps. 

KB0869714 Message on the ATF info bar appears above the client test runner header bar causing the te... 

KB1001141 ATF Custom UI steps can hang the client test runner or cause test failures if the page con... 

 

4. Asserts that, when clicked, the link navigates to a different browser tab  - Not Feasible

 

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin:

Hi Tanushree, I don't think the links you provided apply to my question, but thanks for your response.

Shaqeel
Mega Sage

Hi @Joe Walters 

 

You can not validate the clickable links just the text.


***********************************************************************************************************************
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

Hi Shaqeel, thanks for your response. This is as I expected. I'm already asserting the text within the infoMessage, but was hoping someone may have come up with a novel way to ATF Test the other items.

 

I doubt that there's a way to do it in ATF yet.