ATF - Set Component Value (Custom UI) : Not able to select value from drop down of reference field.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-09-2020 04:26 AM
In one of my test, i want to select value from one drop down and multiple values in another drop down. It is service portal application with custom UI hence first step i am using is 'Open Service Portal Page (custom ui)' and then set component value (custom ui).
The problem here is i have to select component to set the value but not able to find proper component for these two drop down.
It is reference field on the form,
It is easy if i want to just add record from platform by using 'Form' steps. But it would not suffice my requirement (mimic user scenario)
- Labels:
-
Service Portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-22-2020 02:15 AM
Hi Deepen,
If you are unable to detect even string type fields then I doubt this can be achieved using ATF for the other fields as well
Regards
Ankur
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-22-2020 09:24 PM
No, i am able to detect String type field ('Name' here) and i am able to set that field using 'Set Component Value (Custom UI)' step. But when i submit the page via 'Click Component (Custom UI)' on 'Save Changes' button, it throws validation error saying 'Name is mandatory'. Though i have set the value and i can see that value on the form but somehow the way ATF (javascript) setting the value is not considered.
Regards
Deepen shah
aavenir.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-22-2020 10:59 PM
Hi Deepen,
Possibly the ATF client test runner is unable to identify that the value was set and the mandatory check is stopping the form submission
Regards
Ankur
Ankur
⨠Certified Technical Architect || ⨠9x ServiceNow MVP || ⨠ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā03-29-2021 08:45 AM
HI Deepen,
Me also facing same issue, do you get any solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā06-13-2023 01:35 PM
any solution on this?