Which step of ATF can be used to validate the field values of the service portal screen?

zx
Tera Contributor

hello everone!

Which step of ATF can be used to validate the field values of the service portal screen?

thanks!

5 REPLIES 5

Madhan somesh
Mega Guru

Hi @zx ,

 

If you want to validate a particular field value visibility on portal or any custom screen you can go with Assert Text on Page (Custom UI)

You can statically provide a value & this step will check whether the value provided is visible on the screen or not.

 

Additional documentation & steps on How to use Assert Text on Page (Custom UI) 

  • If a timeout is specified, the Client Test Runner will check for the presence or absence of the text every second until the timeout has been reached.
  • In order to use this step you must have already opened a custom UI page. This step can be used in any order with the "Set Component Values" and "Component Value Validation" steps.
  • To assert the value of inputs, use the "Component Value Validation" step.

Please mark it as "Accept as Solution" and "Helpful". if this solution helped you.

 

If not, please let me know what was the issue that you're facing so that I can provide you with a solution for it.


Thanks & Regards,
Madhan Somesh.

Hello @zx ,

 

Also please consider that for the Assert Text on Page (Custom UI) to work your previous step must be Open Service Portal Page from where you need to define the portal,page & query parameters as below

Madhansomesh_0-1708312488730.png

This will fulfill your requirement & I hope it helped you.

 

Please mark it as "Accept as Solution" and "Helpful". if this solution helped you.

 

Thanks & Regards,
Madhan Somesh.

Hi @zx , 

Please let me know if this worked for you or do let me know the issue you're facing so that I can help you with it.

 

Please mark my reply as "Accept as Solution" & "Helpful" if this helped you.

Thanks & Regards,

Madhan Somesh

Ankur Bawiskar
Tera Patron
Tera Patron

@zx 

Please share some screenshots of the form which needs to be tested

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