ATF - Select Box values from Client Script to Set Value Test Step

Stiips
Tera Contributor

Hi, I'm new to using the ATF in ServiceNow. Is it possible to set values from a Test Step manually? Scenario is I have one Select Box in the Form and options of it is added from an onChange Client Script. Hence, in ATF Test Step "
Set Variable Values (SP)" that Select Box field options is empty. Kindly suggest if possible or not. 

2 REPLIES 2

Brian Lancaster
Tera Sage

So if I'm understanding you correctly you have to set the value of a different variable then a OnChange client script runs and Populates the dropdown. If this is correct try the following.

  1. Do a Set Variable Values (SP) and only set the variables that would cause the dropdown to populate.
  2. Do a second Set Variable Values (SP) and populate the dropdown and any other variables.

This should hopefully allow the client script to run.

Shaqeel
Mega Sage

@Stiips 

 

You need to use 2 Set Variable Values and then carry out the rest of your activity.

P.S: If the field is dependent to other field then you need to set the fields separately.

 

Regards

Shaqeel

 


***********************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting "Accept as Solution" and " Helpful." This action benefits both the community and me.

***********************************************************************************************************************





Regards

Shaqeel