Determining that a Related List is visibile using the ATF

Darrion Burges1
Mega Expert

Hello Developers, 

 

I am currently trying to use Test Driven Development (TDD) for all my creations, and one area that i'm having trouble verifying is the existence of a related list on a specific form (bonus points for a certain view). 

 

Specifically, I am adding the Enhancement Related List to the CIM Task Form. 

- I'm able to add the related list fine, but i'm having trouble automatically testing that the related list is visible to my test users. 

- In addition, I took a few Related Lists OFF this form, and want to ensure they didn't sneak into the update set so I'd also like to verify that certain related lists AREN'T on the form. 

 

Is this something that is possible in the ATF? or would I have to use the javascript Tester for this? 

 

Thank you for your time and expertise. 

 

Best Regards, 

 

Darrion B

 

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@Darrion Burgess 

testing Related list using ATF has been introduced in Orlando Release.

https://docs.servicenow.com/bundle/orlando-application-development/page/administer/auto-test-framewo...

If you are on NewYork then the only option you have for now is to use the 'Run Server Side Script' test step and use Gliderecord to query, delete, amend and create records. 

I believe you cannot check visibility but only records availability

sharing links below

https://community.servicenow.com/community?id=community_question&sys_id=b4e96726db1e53c02328f3231f96...

https://community.servicenow.com/community?id=community_question&sys_id=4c228fe9db98dbc01dcaf3231f96...

https://community.servicenow.com/community?id=community_question&sys_id=24c7e15fdb94d7444e1df4621f96...

Regards
Ankur

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

View solution in original post

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

@Darrion Burgess 

testing Related list using ATF has been introduced in Orlando Release.

https://docs.servicenow.com/bundle/orlando-application-development/page/administer/auto-test-framewo...

If you are on NewYork then the only option you have for now is to use the 'Run Server Side Script' test step and use Gliderecord to query, delete, amend and create records. 

I believe you cannot check visibility but only records availability

sharing links below

https://community.servicenow.com/community?id=community_question&sys_id=b4e96726db1e53c02328f3231f96...

https://community.servicenow.com/community?id=community_question&sys_id=4c228fe9db98dbc01dcaf3231f96...

https://community.servicenow.com/community?id=community_question&sys_id=24c7e15fdb94d7444e1df4621f96...

Regards
Ankur

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

Ankur Bawiskar
Tera Patron
Tera Patron

@Darrion Burgess 

Hope you are doing good.

Let me know if that answered your question.

If so, please mark appropriate response as correct & helpful so that this thread can be closed and others can be benefited by this.

Regards
Ankur

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

Ankur Bawiskar
Tera Patron
Tera Patron

@Darrion Burgess 

Hope you are doing good.

Let me know if that answered your question.

If so, please mark appropriate response as correct & helpful so that this thread can be closed and others can be benefited by this.

Regards
Ankur

 

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