ATF - Select Box values from Client Script to Set Value Test Step
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-25-2024 04:44 AM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-25-2024 07:11 AM
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.
- Do a Set Variable Values (SP) and only set the variables that would cause the dropdown to populate.
- Do a second Set Variable Values (SP) and populate the dropdown and any other variables.
This should hopefully allow the client script to run.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-25-2024 07:18 AM
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