record validation step in ATF
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2025 01:15 AM
After the record insert step in atf and i want to validate the record but when i am trying to run the TEST , iam getting failure in test saying that record is not found even though the record was inserted successfully
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2025 01:40 AM
Share steps screenshots.
Did you try testing with admin role?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2025 01:43 AM
Hi @ShaziyaS4380655 ,
The record might still be in the process of being committed to the database when the validation step attempts to find it.
Solution: Introduce a delay before the validation step.
- Add a "Wait" step: You can add a specific "Wait" test step in your ATF test, specifying a duration (e.g., 5-10 seconds) to allow the database to commit the record.
- Use gs.sleep(): If your validation is within a server-side script, you can use gs.sleep(milliseconds) to introduce a pause.
- Increase the Timeout on the Validation Step: You can also set a timeout on the validation step itself, as described in this ServiceNow Community post.
If I could help you with your Query then, please hit the Thumb Icon and mark as Correct !!
Thanks, GP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2025 02:13 AM - edited 08-13-2025 02:22 AM
@OlaN
@Ankur Bawiskar
here is the screenshot , into the other atf as well only these steps i have added but that was running fine and

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2025 02:57 AM - edited 08-13-2025 02:57 AM
Is the test created in Global scope ?
I can see that you try to create and read a record from a scoped app. Are there permissions to read from Global to this scoped app ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2025 03:52 AM
Yes test is created in a scoped application and iam trying to create and read a record within the scoped application itself .