How to call a JS function from Test Designer IDE
How to call a JS function from Test Designer
Below are some of the screenshots on how to call a particular JS function defined in JS Edit & Play
Fist step in this process is to include the JS script using the Include statement followed by CustomJS call with the function name.
Below is an example of calling a customJS function “appLogin” with multiple parameters passed to it (with the data coming from a DPL file)
Below is an example of function calls with single parameter (Hardcoded data)
Functions can also be called with dynamic data being passed to it by using Store, getText and using the defined variable in the function call as a parameter.
Last updated: July 25, 2023
If you have any feedback on this topic, please contact us at documentation@appvance.ai