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

Deepen Shah
Kilo Guru

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.  

find_real_file.png

It is reference field on the form,

find_real_file.png

 

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)

 

9 REPLIES 9

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

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

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. 

find_real_file.png

Regards
Deepen shah
aavenir.com

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

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

HI Deepen,

 

Me also facing same issue, do you get any solution

VP7
Tera Contributor

any solution on this?