Skip to main content

Create tests with Thunders AI

Written by Ines

Create Test Cases and Test Plans using Thunders AI.

A Test Case covers one behavior. A Test Plan groups related scenarios for a feature or workflow.

Thunders AI can create web, mobile, and API tests, and can mix App types in a single Test Case, for example Web and API Apps, or Mobile and API Apps.

Set up the conversation

Environment and Apps

Above the input, pick the Environment and the Apps that Thunders AI works with. The choice applies from your next message. On the Thunders AI page, the default is All environments.

With an Environment selected, Thunders AI uses only that Environment: its Variables, its credentials, and its execution settings when it browses your application. When you keep All environments and your project has only one Environment, Thunders AI uses that Environment.

Effort level

Select the lightning button at the bottom of the input to set the effort of Thunders AI: Low, Medium or High, on a scale from Faster to Smarter. Higher effort means more thorough responses, but uses your credits faster. The same panel shows the price of a message at that level (in the Test Plan composer, the price of a Test Plan). Low is the default. Thunders AI remembers the last level you picked in this browser, and starts each new conversation at that level.

Test Cases

From a suggested prompt

When the conversation is empty, the Thunders AI page shows ready-made prompts under Not sure where to start? The categories follow the Apps of your project:

  • Write a test on a project with only Web Apps or only Mobile Apps

  • Write a web test and Write a mobile test on a project with both

  • Ask about my tests and Test a ticket on every project

A web category needs a Web App with a URL in an Environment. A mobile category needs a Mobile App with a build. Click a prompt to send it. A web or mobile prompt also turns on Web Browse or Mobile App Browse. When your project has several Apps of that type, Thunders AI asks which one to use.

From a description

Describe one behavior and the expected outcome. Keep the prompt focused so the resulting Test Case has a clear purpose.

Example

You: Verify that a Funding Officer can sign in and create a new funding contract from the New Contract form. The contract should appear in the contracts list with a "Contract created successfully" confirmation.

From a live URL (Web Browse)

When Web Browse is on, you can include a URL and Thunders AI will open the page in a real browser to understand its structure: reading page titles, field labels, button text, and layout before writing the test. Web Browse is on by default where Thunders AI creates tests: the Thunders AI page, the chat of a Test Set or a Test Plan, and the chat of a Test Case that has no steps. To turn it off or on, select + in the input (Attach a file, Add variables or assets, Skills, Connectors), then use the Web Browse switch.

Example

You: Go to https://dev-autofinance.lovable.app and write a test that adds a new dealer through the Add Dealer form and checks that the new dealer appears in the dealers table.

Use URLs when the page structure matters or when you want the test to start from a specific location. Web Browse inspects the live page so Thunders AI can reference exact element labels and states.

When Thunders AI cannot sign in to your application while it browses, it asks you to Record profile. You sign in once in a live browser, Thunders AI saves the session as an Authenticated Profile, and it continues to browse signed in. Thunders AI never sees your password. See How do I make my tests start already signed in?

Note: Enabling Web Browse allows Thunders AI to interact with the target page. This may change page state, trigger form submissions, or navigate away. Use with caution on production environments.

From your mobile app (Mobile App Browse)

When your project has a Mobile App with a build, Thunders AI can open the app on a test device and explore it before it writes the steps. Mobile App Browse is offered when your project has a Mobile App and mobile testing is available for your organization. It is on by default on the Thunders AI page (Test Case composer), in the chat of a Test Set or a Test Plan, and in the chat of a Test Case that has no steps. The Test Plan composer of the Thunders AI page does not offer it. To turn it off or on, use the Mobile App Browse switch in the + menu of the input. When you select only Web Apps, the menu does not offer Mobile App Browse.

To choose how the app runs, open the Settings of Mobile App Browse from the arrow next to the switch. These are the same settings as a Test Run:

  • Device: pick a Device Pool or a specific device.

  • App reset: No reset, Full reset or Fresh install.

  • Under Advanced settings: Orientation, Dark theme, Permissions, and the other device options of a Test Run.

Watch Thunders AI browse

While Thunders AI browses your web application or your Mobile App, the row of the browse in the chat shows the number of actions and the time so far. To see what Thunders AI sees, select Watch live on the row. While the browser or the device starts, the button reads Preparing live view.

The live view opens in the chat, under the row: the browser for a web application, or the device for a Mobile App. You see each page load and each action as it happens. The bar above the view names the current action, for example Click "Sign in". When the page does not react or is slow to load, the bar tells you, for example The page does not react · 12 s. The live view is view only: a click or a key in it does nothing. Select Hide to close it. The browse continues.

The live view of a web browse in the chat, under its row, with the current action and the View only bar

When the browse ends, the view shows the screens of the browse, one for each action. Under the screens, use Play and Pause, move with Previous and Next, or select a segment of the bar to go to an action. The speed button changes the speed: 0.5x, 1x, 2x or 4x. For a browse that you did not watch, select Replay on its row to open the same screens. Replay is still there when you reload the conversation, for as long as you keep the conversation.

From a ticket URL or ID

When a tool is connected and enabled, Thunders AI can use tickets as context for a Test Case. Provide either:

  • a ticket ID / key (e.g. APP-477, KAN-6), or

  • a ticket URL (full link).

Use one or the other. You don’t need to paste both.

Supported sources, for example:

  • Jira: e.g. "Create a Test Case from KAN-6 in Jira"

  • Jira Data Center: same as Jira, for on-premise Jira instances

  • Xray Cloud / Xray Data Center: e.g. "Import test XSP-2 from Xray"

  • Confluence / Confluence Data Center: use spec pages as context

  • Linear: e.g. "Create a Test Case from APP-477 in Linear"

For the full list of connectors, see Use your tools with Thunders AI.

Tip: Combine a ticket with Web Browse for more reliable steps.

Example prompt: Read KAN-28 in Jira and create a test case. Once you have read the ticket, use Web Browse to validate that the steps you plan to author are reliable.

From an upload (documents & files)

Sometimes the test you want lives in a document or file. This can be a spec, PDF, CSV of test data, a screenshot, or even code you want to import (for example, a Playwright test file). Thunders AI can read uploads and use them as context for the test steps it generates.

  • Drop files into the conversation: upload files directly into a Thunders AI conversation from the input area, or select Attach a file in the + menu of the input.

  • Thunders AI reads the content: it extracts what’s inside and uses it as context for the generated steps.

Hand Thunders AI a feature spec, a Figma export, or a list of test data, and it builds tests that reflect what is in the file, without you having to paste long text into the chat.

From an existing Test Case

Thunders AI can search your project's existing Test Cases and reuse them as steps inside a new test. This is useful for common flows like login.

Example

You: Create a test that starts with the login flow and then navigates to the settings page to update the user's display name.

Thunders AI searches for an existing login Test Case in your project and adds it as a reusable step, then generates the remaining steps.

Using environment variables

If your project has environments configured with variables, Thunders AI uses them automatically. For example, if your environment has APP_AUTOFINANCE_URL, Thunders AI will use [APP_AUTOFINANCE_URL] in the navigation step instead of a hardcoded URL.

You can also reference variables explicitly in your prompt:

Example

You: Navigate to [APP_AUTOFINANCE_URL], sign in with [FUNDING_USER_EMAIL] and [PASSWORD], and create a new funding contract.

API tests

For API tests, describe the request, authentication, and expected response.

Example

You: (with your API documentation attached) Use the attached doc to author my test: call the stats endpoint and capture contracts_total, then add the Login test case, go to the contracts dashboard, and assert the contract count shown equals contracts_total.

Thunders AI also supports mechanical assertions and extractions for API responses: for example, capturing a value from one API call into a variable and using it in a subsequent step. You can also mix API and AI steps in one test.

Step types Thunders AI can generate

Thunders AI selects the right step type automatically based on your description:

Step type

Used for

AI Step (default)

Clicks, typing, navigation, assertions, and variable operations. Most steps use this type.

API Call

Explicit API call requests (GET, POST, etc.).

Web Step

Low-level web browser actions: refresh, go back/forward, switch tabs, wait for page load.

Existing Test Case

Referencing an existing Test Case as a reusable step.

Conditional Step (If)

Branching logic: go to a different step based on a condition.

Visual Compare Step

Comparing a page screenshot against a baseline image asset.

File Compare Step

Comparing the contents of two file assets (e.g. a downloaded file vs. a baseline).

Thunders AI does not write JavaScript steps. Add them yourself in the step editor. See How to add and use a JavaScript Step.

Test Plans

A Test Plan groups related scenarios for a feature or workflow. Describe the feature, attach a document, or use a connected source, and Thunders AI generates a structured plan with test sections, scenarios, and draft Test Cases you can promote into your project.

Example

You: As a registered user, I want to log in to my account using my email and password so that I can securely access my dashboard, while being protected against unauthorized access and common attack vectors. Use [FUNDING_USER_EMAIL] and [PASSWORD].

In a Test Plan, Generate Test Cases on a scenario generates its Test Cases at the last effort level you picked. The button shows the price for that level.

For the full guide, including how to reuse your project and environment variables in the generated plan, see Generate Test Plans with Existing Variables.

Did this answer your question?