Getting error after creating user in ATF
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hello community, I am creating ATF to test catalog item where I am trying to fetch sctask record using record query and giving condition request is (using data pill to get oder catalog item step) but it's fetching record when I run ATF by impersonating myself (admin) but when I create user with ITIL role, it gives error no record found matching query.
I am creating user after order catalog item step.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
This is almost certainly ACL / role visibility, not an ATF issue.
It works as admin because admin can see all sc_task records. When you run the test as a user with only the itil role, that user likely cannot read the sc_task, the related RITM, or the field you’re querying, so ATF returns “no records found.”
A few quick checks/fixes:
Make sure you are running the order and the record query as the same user. Ordering as admin and querying as an itil user will fail unless ACLs allow it.
Verify you’re querying the correct field:
If your data pill is a RITM sys_id, filter on request_item
If it’s a REQ sys_id, filter on request
Impersonate the itil user and confirm they can actually open the RITM and sc_task in the UI.
If the query is just for validation, switch back to admin for the Record Query step (common ATF pattern).
If the itil user can’t see the task in the UI, ATF won’t see it either.
@tanvipalkar - Please mark as Accepted Solution and Thumbs Up if you find Helpful!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
If you paste your Record Query details table + conditions and what pill you used (REQ vs RITM), I can tell you the exact field to query and the cleanest ATF flow if need but you may have this already.
@tanvipalkar - Please mark as Accepted Solution and Thumbs Up if you find Helpful!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hello
ITIl user can see Ritm and sc task in UI. I am using Record query to fetch sc task so table is selected as sc_task and condition is Request is ( using data pill to set order catalog item step )
