Visibility of Service Offering in Service Portal with ATF
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a month ago
Hi,
in Service Portal, I want to test with ATF whether the Service Offering is visible to subscribed users or not.
First, I want to test with a subscribed user to confirm that they can see it, and then test with another user to verify that they cannot.
The problem is that I can't verify that a user who is not subscribed cannot see the Service Offering.
Does anyone have an idea how I could achieve this?
I've tried various approaches, like using the Click Component and then asserting that the text is not on the page, but it doesn’t find the component to click on to be able to open the Service Offering list with the availiable SOs in the portal page Create Ticket.
My last idea was to write a test using a user who shouldn’t be able to see it, and then try setting variable values (SP), so the test would fail if they can’t see it — but I would prefer a better solution that allows me to also test subscriptions by department, group, and to create negative checks.
Does anyone have any ideas on how to achieve this? Is it also possible to mark test as "passed" even if it is not to be able to do the other steps in the test?
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a month ago
Hi @OMT
I don't think the visibility of a field can be tested via ATF (Automated Test Framework).
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a month ago
Hi @OMT
Did you check my response?
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a month ago
please share screenshots what you want to test and what steps you tried and which one is failing?
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
a month ago