Include functionality in Appvance Designer
To reuse a function from one script in another, we include the relevant script using the Last reviewed:include SeptemberAction 21,from 2026Appvance Designer.
UseUsage: include relative:-<filename>
This will be helpful in shortening your designer scripts.
Call other scripts as functions. This will let users to include other designer script at any given step as shown in below screenshot.
In the example below, note:
In the Scenario Builder it can be added as shown below
The other dependent designer scripts can be added in resources section.
An Example Designer script is attached is this article whenas multiple Scenario Editor tests need to share helper logic, common setup, or reusable validation patterns.
Recommended guidance
Avoid copying the same helper code into many scenarios.Keep shared logic versioned and reviewed.Document inputs, outputs, and side effectswell foreveryreference.shared helper.
Validation workflow
Identify the repeated logic and decide whether it belongs in a shared helper, DPL, service call, or test template.Store shared functions in the approved project location.Pass parameters instead of hard-coding environment-specific values.Add a small validation scenario to prove the shared helper works.Update dependent scenarios when the shared helper changes.
Note:activity.ds
Use
login.ds
logic
helper
can
Last updated: SeptemberJuly 21,03, 20262023
If you have any feedback on this topic, please contact us at documentation@appvance.ai.