Set Variable Values (SP) is not setting the value on the form

SuchiP
Tera Expert

I am having an order guide.

I am setting a field value with the 'Set Variable Values (SP) ' step. The field is a dropdown list.

While running the test, it successfully sets the value, i.e., the step executed successfully, but it's not in the field while checking in the Client Test Runner.

 

I want to set the value with Set Component Values (Custom UI) step,, but the field is not getting retrieved with Custom UI.

Field type- Custom component <select2>(Showing in manual page inspector)

 

7 REPLIES 7

Ankur Bawiskar
Tera Patron
Tera Patron

@SuchiP 

if it's a variable then Set Variable Values (SP) should work

Why are you using Custom UI step?

share the test steps screenshots and also the test results?

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

SuchiP_0-1747807472816.pngSuchiP_1-1747808157679.png

 

The yellow marked is the field  , the ATF step runs successfully, but in the form its not setting the value.

@SuchiP 

is that 2nd variable dependent on some other variable?

Also any client script is adding/removing options from that 2nd variable based on some logic?

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

Yes the 2nd variable is dependent on the variable that I have set in the previous step.