ATF - Check availability of a custom UI component

F_lix Dion
Kilo Expert

Hi,

I succeeded in building an ATF to be able to create a ticket and post a comment on the Service Portal as a end user. 

The problem is, I am trying to incorporate in my test a way to check if the comment box is available or not in the service portal. 

I can see in the visualisation window that the box becomes unavailable after I close the incident:

find_real_file.png

find_real_file.png

But when I use the option to check the field, I get an error message saying it's editable when it's supposed to be read-only (it does the same when I check the button, it says it's enabled when it should say that it is disabled):

find_real_file.png

The only option that works for me now is to add a step that tries to enter a comment and fails because the field is not available:

find_real_file.png

Finally, I tried with the assert text on page step, but it doesn't detect the text in the box or on the button.

I would like to have a test that runs and succeeds while checking the availability of the comment box, has anyone done anything like that before?

1 ACCEPTED SOLUTION

F_lix Dion
Kilo Expert

For my ATF on Incident, we made it work with Field State Validation (SP) by checking that additionnal comments was in read-only after the incident was closed.

But for RITM, we are still working on it because the same step doesn't work.

View solution in original post

2 REPLIES 2

F_lix Dion
Kilo Expert

For my ATF on Incident, we made it work with Field State Validation (SP) by checking that additionnal comments was in read-only after the incident was closed.

But for RITM, we are still working on it because the same step doesn't work.

ServiceNow Tec2
Mega Sage
This has been resolved by ServiceNow Technical Support. Please refer to KB0755775 (HI login required) for more information.