We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

Testing UI View Rule using ATF

Terence N
Tera Contributor

Is there any way I can test my UI View Rules using ATF? I have created one views for my table to create the record, and the default view is for viewing the record. I have a view rule that directs the user to the respective views, and I want to create an ATF test so that I can do automatically test this.

 

I have tried using the "Open a New Form" test step without setting the view parameter, hoping my view rule will show the creation view, but it ended up showing the default view instead. There doesn't seem to be other actions that I can use.

 

Any help would be most appreciated. Thanks.

2 REPLIES 2

Dr Atul G- LNG
Tera Patron

https://www.servicenow.com/community/developer-forum/how-to-change-ess-view-to-default-view-in-atf-t...

 

 

 

 

*************************************************************************************************************
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/dratulgrover [ Connect for 1-1 Session]

****************************************************************************************************************

Ankur Bawiskar
Tera Patron

@Terence N 

You can't test View rules using ATF.

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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