"Go to Portal" button in ATF - 2nd try.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2023 01:59 AM
Hi,
i'm posting this question again, because i'm still not able to test this, and it would be great if it is possible.
does anyone know, if it is possible to test the "Go to Portal" button in ATF.
What i need is to write Test where i will impersonate itil user and then i need to click this button and check if Portal Page is opened
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2023 03:36 AM
unless you add steps to visit that homepage you cannot add the Custom UI step
please share the steps you added so far
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2023 03:42 AM
It is clear for me, that it is not possible to check if something is on homepage unless i add steps to visit hp, but my problem is that i cannot open home page. Open a new form, or open an existing form helps not. Currently i tried with server side script :
First impersonate user, than server side script:
''
(function(outputs, steps, params, stepResult, assertEqual) {
// add test script here
var url = 'https://xyz.service-now.com/nav_to.do?uri=%2Fhome.do%3F';
//action.setRedirect(url);
gs.setRedirect(url);
''
and then open an existing record, and it helps not too.