Automation: Confirm UI Text

tufa4311a
Kilo Explorer

With Automation - how can I confirm the text of a pop-up that was triggered by a particular action? For example, if I attempt to create an Incident, do NOT fill in all required fields, and click submit, a pop-up message appears. Can automation confirm that the pop-up message contains the correct text? If the text in the pop-up should say "This field is missing data" - can automation confirm the UI pop-up message actually has that text in it?

1 ACCEPTED SOLUTION

Correct, currently there is no way to test that.


On the client side (visible data loaded in the browser window) ATF only provides a way to test some of the form functionality, there is no way to test how lists are loaded or the left nav items.


View solution in original post

15 REPLIES 15

Automated Testing Framework currently doesn't provide a way to test system or code generated popups. It does provide a way to test popups generated using GlideDialogWindow call that uses a UI Page to present the content of the pop-up or modal. The modal can be tested using the 'Click Modal Button' action. Please see this article for usage details: Form test step: Click Modal Button .


To answer your second post: Neither. Open a New Form test opens the form for the specified table, it has nothing to do with the left hand navigation. Using this test step you can open a form to any table in the system, even if it doesn't have a module on the left. Click UI Action tests visible UI Actions (buttons, form links) on the form, please see this article for usage details: Form test step: Click a UI Action


So what you are saying is that there is no way to, for example, confirm that after clicking "Incident->Resolved" the next page that loads is the Incidents page and only Resolved Incidents are listed?


Correct, currently there is no way to test that.


On the client side (visible data loaded in the browser window) ATF only provides a way to test some of the form functionality, there is no way to test how lists are loaded or the left nav items.


What about on the server side - can the UI links be tested from the back-end? (I only know about the client side, no idea what the server side is, but I assume it is the back end building the automation scripts manually with code?)


can we test a ui macro from ATF?