ATF Test step configuration, facing issue because of ONLOAD client script. unable to select choices from the drop down , showing empty through ATF.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-04-2022 08:13 AM
Creating ATF Test cases for one Catalog item, In "Set Variable values" I want to take choices from drop down variable, But am unable to select through ATf, manually i can achieve this. why this is happening through Atf, There is a "Onload' Client script, once we open form only these drop down choices showing, in other condition Empty . How can iachive this through Atf.
1. How can i load form through ATF, Is there any specific step or need to do any step configuration, once form load then only drop down list will be coming manually, Through ATF how can i achieve.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-06-2022 11:59 AM
Not sure if I understood, but sounds like you're creating choices in the client script.
You have to create the choices in the variable first.
Then you use an onLoad script to hide all the options and make them visible as necessary.
The ATF options are based on available data, so if you don't have anything saved in the DB it will of course not be able to reference those since the form is not loaded when you're creating the step.