πŸ–‡οΈTest Dependencies

Test dependencies allow you to efficiently chain tests together, mimicking real user flows while ensuring a robust testing environment.

What are Test Dependencies?

Test dependencies are actions 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.

Running Tests with Dependencies

GPT Driver offers two ways to execute tests with dependencies:

  1. 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.

  2. Test Editor: Use the "Execute prompt incl. dependencies" option within the Test Editor. This runs the current test along with all its required dependencies.

Example (Multiple Test Dependencies/Chaining Test Dependencies)

Imagine a sequence of tests:

  1. Login

  2. Add Friend (depends on Login)

  3. 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.

Last updated