Autosana Logo
    Autosana
    • SandboxesBeta
    • Enterprise
    • Pricing
    Contact salesTry for free
    LearnHook
    All terms
    On this page
    DefinitionWith AutosanaRelated terms
    Learn

    Hook

    A script, API request, or launch configuration used to prepare or support a test.

    Updated November 30, 2026

    What it means

    Hooks connect the test journey to setup, runtime actions, and cleanup. In Autosana, scripts run in sandboxed environments using built-in libraries. Hook output can provide the agent with context such as a generated user or a verification code.

    In practice

    Create a fresh test user before a flow, retrieve a sign-in code during the journey, and remove the test data afterward.

    Key takeaway

    Put environment preparation in hooks so the journey can stay focused on behavior.

    With Autosana

    Describe the journey in natural language, make the expected outcome explicit, and verify the result. The documentation covers the configuration and execution details for this workflow.

    Read the documentation

    Related terms

    Sandbox

    An isolated environment where you can run code, test behavior, and change state without affecting production.

    Test data

    The accounts, records, and inputs a test uses to exercise application behavior.

    Test isolation

    Keeping a test’s state and resources separate so other runs cannot change its result.

    Back to the glossary

    Fix bugs, not tests.

    Talk to an expert.

    Book 30 minutes with our team. We'll show you Autosana running on your app.

    Contact sales

    Start building.

    Describe a user journey and watch an agent run it on iOS, Android, and web.

    Try for free
    Autosana

    Catch bugs before your users do.

    Try for free

    Product

    • Platform
    • Use cases
    • Enterprise
    • Pricing

    Resources

    • Docs
    • Learn
    • Case Studies
    • Product Updates
    • Blog

    Company

    • Contact sales
    • Careers
    • LinkedIn

    Trust

    • Status
    • Security
    • SOC 2 Type 1 · Type 2 in review
    • Backed by

    © 2026 Autosana. All rights reserved.