Automated test Framework

NaveenKumarSN
Tera Expert

HI Everyone,

 

Can ATF stores records of custom tables  while executing test steps?

How to capture the sys id post saving the form?

While creating open a existing record am not able to open record which is created in test execution?

 

5 REPLIES 5

Kieran Anson
Kilo Patron

Can you attach screenshots of your ATF steps and we can see what might be misconfigured? Yes ATF can create a record and the output of that step is the record information

Hi Kieran,

 

I am testing one custom table called Naveen Kumar. In that custom table i have created one record and saved.

i captured the sys id of the record using record query and using record query i am trying to open an existing record. While executing open an existing record step am getting no records matching the query.

 

NaveenKumarSN_0-1730725654678.png

 

You can debug a test - adding a breakpoint will allow you to go see if you can find the record. It could be an ACL or Query Business Rule preventing access.

https://docs.servicenow.com/bundle/xanadu-application-development/page/administer/auto-test-framewor... 

Please go through below so that u can understand my query....

Step 1; impersonted

Step 2; Navigated to custom table

step 3; Open new form

Step 4; Filled all the mandatory details;

Step 5; Saved the form

NaveenKumarSN_1-1730726601784.png

Step 6; Navigated to incident module

Step 7 and 8 ; Created 3 incident records and submited

Step 9;  Navigated to Custom table 

NaveenKumarSN_3-1730726700509.png

Step 10; Applied a record query step 

NaveenKumarSN_2-1730726655070.png

NaveenKumarSN_4-1730726752915.png