Test Dependencies & Prompt References
Last updated
Last updated
Test dependencies allow you to efficiently chain tests together, mimicking real user flows while ensuring a robust testing environment.
These are tests that need to be completed before running a specific test. For example, a test case requiring a logged-in user would depend on a login test being run beforehand.
GPT Driver offers two ways to execute tests with dependencies:
Cloud Runs: When you run a test farthest along a workflow (like "Send Message"), the system automatically triggers any dependent tests (like "Login" and "Add Friend") in the correct order.
Test Editor: Use the "Execute prompt incl. dependencies" option within the Test Editor. This runs the current test along with all its required dependencies.
Imagine a sequence of tests:
Login
Add Friend (depends on Login)
Send Message (depends on Add Friend)
If you run the "Send Message" test, the system runs "Login" and "Add Friend" first, ensuring a successful test execution.
Prompt Reference is a powerful new feature in GPTDriver that enhances your ability to design reusable and scalable automated tests. Unlike traditional Test Dependencies, which only allow tests to run in a strict sequence, Prompt Reference gives you the flexibility to nest prompts or entire tests within other tests, enabling modular structures that more accurately reflect real user flows in mobile apps.
Many users are already familiar with the Test Dependency feature, which supports basic sequential execution. While useful for linear flows, dependencies can become limiting as your test cases grow in complexity.
Prompt Reference solves this by allowing you to insert one or more existing prompts (or entire tests) directly inside another test. This lets you:
Build hierarchical test structures
Reuse logic across multiple test cases
Reduce duplication and maintenance overhead
Better organize tests around real-world app flows
Onboarding flows that reuse login or permissions setup
Checkout processes that include reusable steps like address entry or payment selection
Multi-screen navigation that reuses deep-link flows or feature walkthroughs
Regression suites that reuse core smoke tests in larger scenario tests
To insert a prompt or test within another test:
Open the Test Editor.
Type @ where youβd like to reference another prompt or test.
A dropdown list will appear with all available prompts and tests in your account.
Select the one you want to insert. It will appear as a block within the current test.