ServiceNow ATF - Record Query or Open Existing Record

Gerald Onyia
Kilo Guru

I'm new to ServiceNow ATF, and was wondering which is the preference for the Community when pulling an existing record.

Querying the record in the server side or opening the record in the browser? Why would you choose one over the other? What situations allow the use of one to have a greater advantage over the use of the other?

I've noticed that my Test executes faster when I use 'Record Query'. However, I do not get the visibility of the record view.

All responses are appreciated!

1 REPLY 1

Brad Tilton
ServiceNow Employee
ServiceNow Employee

I think it really depends on whether you need to test the UI for that particular test. Since the server-side tests are so much more performant than the client-side tests, we recommend that you limit your client-side testing so that you're only testing the UI once.

For example, if you're testing a specific process where you need to test the UI for a form/record and a few different process flows or workflow variants once the form/record has been submitted, you would do the first test client-side. Since you've already tested the UI by filling out the form, you wouldn't need to repeat that and subsequent tests where you're testing the additional process flows can happen server-side.