2. Passing Value to the Output Variable

  • Use the return function in both Python and JavaScript to pass output values from a Custom Action.

  • The returned value is fetched by Avo Assure and can be used in subsequent steps. For example, the returned value can be displayed using the Display Variable Value action.

Example:

  1. Python: return value

  2. JavaScript: return `value`;

Important:

  • You can use both languages (Python and JavaScript) for all functionalities.

  • However, if the script or test case does not involve a browser, avoid using JavaScript, as it may throw an error in such cases.

Last updated

Was this helpful?