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

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Deepen,

Is that a variable on catalog item or record producer?

Can you provide more details on this

Regards
Ankur

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

No it is on our custom application on Service Portal.

 

Hi,

If department is a reference field on form then you should be able to select some value from the lookup

Can you provide some image how the form looks

Regards
Ankur

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

This is the form,

find_real_file.png

 

I believe, as of now, it is not possible to do it via ATF test. Also setting value to 'Name' field using 'Set Component Value' is not considered when i click 'Save Changes' and throws validation error.