Skip to main content

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:

    The prefix : relative:- just before the login.ds filename on the Value column. This script can be executed only in the Scenario Builder.

    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.

    • Avoid copying the same helper code into many scenarios.
    • Keep shared logic versioned and reviewed.
    • Document inputs, outputs, and side effectswell for everyreference. shared helper.

    Validation workflow

    1. Identify the repeated logic and decide whether it belongs in a shared helper, DPL, service call, or test template.
    2. Store shared functions in the approved project location.
    3. Pass parameters instead of hard-coding environment-specific values.
    4. Add a small validation scenario to prove the shared helper works.
    5. Update dependent scenarios when the shared helper changes.

    Note:activity.ds Use

    shared

    login.ds logic

    carefully:

    logout.ds a

    broken

    helper
    can

    affect many scenarios at once.

    Last updated: SeptemberJuly 21,03, 20262023

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