Skip to main content

How to use custom functions from JS file in Test Designer

  1. We are calling the JS function from the DS script and it returns the values after evaluation

The JS function that we have created is shown below

This function will calculate a 10% discount on a Price that is entered. The usage of function in TD script is shown below

2. We can also make use of the Custom JS action in DS and then fetch the value using the locker


Last updated: June 26, 2023

If you have any feedback on this topic, please contact us at documentation@appvance.ai