Tests | Testifly Documentation

Tests

A test checks one behaviour of your app, for example “a user can reset their password”. You write it in plain language as a list of steps. Each step has an action and an expected result. Testifly’s AI agent then automates the test: it opens your app, follows the steps and writes the test code. After that, the test can run as often as you like.

Most tests are written for you during feature discovery. You can also write your own, or ask Tessa to draft one.

How do I create a test?

  1. Open a feature and click ADD TEST. You can do this from the feature page or from the quick view on the Features page.
  2. Fill in the form:
    • Test title – at least 5 characters.
    • Test Suites – search for an existing suite. To make a new one, type its name and choose Create ’…’.
    • Description – the purpose of the test, at least 5 characters.
    • Test Steps – click ADD STEP for each step. Write what to do in the first field and the expected result in the second. Each field needs at least 5 characters. Drag a step to change its order, or click the bin icon to remove it.
  3. Choose how to save:
    • CREATE AS DRAFT – saves the test without code. Nothing runs yet.
    • CREATE AND AUTOMATE – saves the test and sends it to the agent for automation.

Tips for writing good steps

What is on the test page?

Open a test from a feature or from the features list. The page shows:

What happens when I edit a test?

When you change a test, a bar appears at the bottom of the page with two buttons:

If you change the description or the steps, the old code no longer matches. Testifly sets the test to Draft and it will not run until you automate it again. Changes to the title, test suites, prerequisites or the Is Prerequisite switch do not reset the status.

When a test is in Automation Failed, Product Bug Detected or Not Applicable, the page explains the problem and the Automate test button is enabled. Fix the issue or improve the steps, then click it to try again.

What does the agent do when it automates a test?

Automation runs as an Automating Tests job. You can follow it on the Jobs page. The test shows Automating until it is done.

  1. Wait in line. Tests are processed several at a time. Prerequisites are always automated before the tests that depend on them.
  2. Open your app. The agent starts a real browser, signs in if needed, runs the prerequisites and opens the feature URL.
  3. Work step by step. For each step, the agent looks at the page, finds the UI components the step mentions, writes the code for the step and runs it right away to check that it works.
  4. **Handle problems.**If a step does not work, the agent studies the page and decides who is at fault:
    • The test description is unclear or misses a step. The agent may adjust the steps and try again.
    • The agent itself made a mistake, for example it used the wrong element. It corrects the code and tries again.
    • Your app behaves wrongly. The test is marked Product Bug Detected, with a short explanation of the bug.
    • The test cannot apply, for example because the data it needs does not exist. The test is marked Not Applicable, with a reason.
  5. Save the result. When all steps work, the code is saved and the test becomes Ready To Run. Otherwise it gets one of the statuses below.
  6. Run and report. Tests that were automated successfully are run straight away. When the whole job is done, you get an “automation finished” email.

Why did automation fail?

Status Common cause
Automation Failed A step is unclear or missing, the page did not behave as the steps describe, or the agent made no progress for 10 minutes.
Authentication Failed The agent could not sign in. Check the test user in Settings → Environments.
Faulty Prerequisite A prerequisite test does not work. Fix it first.
Excluded Path The test opened a URL on your exclusion list.
Over plan limit Your project reached the test limit of its plan. Choose a bigger plan in Settings → Billing or delete tests, then automate again.
Product Bug Detected The agent found a likely bug in your app.
Not Applicable Needed data or conditions are missing.

If a CAPTCHA or bot check blocks the browser, automation stops and a banner appears on the dashboard. See Disabling CAPTCHA.

How do prerequisites work?

A prerequisite is a test that prepares the ground for other tests, for example “Page Loaded Verification” or “Open the settings panel”.

What are the login and cleanup tests?

Every project has two special, hidden tests. You find them in Settings → Misc.:

How do I restart automation for many tests at once?

Go to Settings → Actions and click Automate Tests. Testifly restarts automation for every test that shows Automating but is not being worked on, for example after an interruption. Tests in Draft are not included. Open each Draft test and click Automate test.

Is there a limit on automated tests?

During the free trial, a project can automate up to 30 tests in total. Login and cleanup tests do not count. When the limit is reached, remaining tests stay in Draft. After you choose a plan, you can automate them.