ATF: is possible validate if a system message appears on the screen?

rtrr
Kilo Contributor

Hello,

 

I wanna know if I can validate the system messages that appears for the users on the the form as example below:

 

find_real_file.png

2 REPLIES 2

cswagner
Tera Contributor

We also have a need to do this.  Did you ever figure this out or have anyone provide insight as to if this is possible or not?

Thanks,

Chuck

simonfulleringe
Kilo Contributor

I too have this need. I want to test if message "WARNING: owner department missing" appears on my form, which is a normal form (specifically, displaying a CI record from the CMDB).

I discovered I can use ATF test step Assert Text on Page (Custom UI) to validate whether the desired message is displayed. The test works exactly as I want.

N.B. I'm not sure exactly what they mean by "Custom UI" in this context. I had wondered whether such tests might be restricted to UI Pages/Macros. Luckily that wasn't the case.

Hope this helps!

Simon