Creating Tests from Text

Describe your user flow in plain English, and Bug0's AI will generate executable test steps.

Overview

Text-based test creation:

  1. You write a description of the flow
  2. AI parses and structures it into steps
  3. Adds appropriate wait conditions
  4. Generates natural language step descriptions

How to Use

  1. Navigate to a test suite
  2. Click New Test
  3. Select Generate from Text
  4. Enter your flow description
  5. Click Generate
  6. Review and edit the generated steps

Writing Effective Descriptions

Be Explicit

List each interaction separately:

Good:
1. Click the "Sign In" button in the header
2. Enter the email address in the email field
3. Enter the password in the password field
4. Click the "Log In" button
5. Wait for the dashboard to load

Too Vague:
Log in to the application

Include Element Details

Help AI identify the right elements:

Good: "Click the 'Add to Cart' button below the product image"
Bad:  "Click the button"

Specify Data Values

Include what should be entered:

Good: "Enter 'john@example.com' in the email field"
Good: "Enter the test email (use dynamic email) in the email field"
Bad:  "Enter email"

Example Descriptions

Login Flow

User Login Flow:
1. Click the "Sign In" link in the navigation bar
2. Enter the email address in the login form email field
3. Enter the password in the password field
4. Click the "Log In" button
5. Wait until the user dashboard is visible

Shopping Cart Flow

Add Product to Cart:
1. Click on the first product in the product list
2. Wait for the product detail page to load
3. Select "Medium" from the size dropdown
4. Click the "Add to Cart" button
5. Wait for the cart notification to appear
6. Click the cart icon in the header
7. Verify the product is in the cart

Form Submission

Contact Form Submission:
1. Navigate to the Contact page via the footer link
2. Enter a name in the "Full Name" field
3. Enter an email in the "Email" field
4. Select "Sales Inquiry" from the subject dropdown
5. Enter a message in the message textarea
6. Click the "Send Message" button
7. Wait for the success message to appear

AI Processing

The AI will:

  1. Parse your description - Identify individual steps
  2. Extract actions - Click, type, select, wait, etc.
  3. Identify targets - Which element to interact with
  4. Add wait conditions - Based on "wait for" phrases
  5. Structure as steps - Convert to Bug0 step format

Generated Step Structure

For input: "Click the 'Sign In' button in the header"

AI generates:

Description: Click the "Sign In" button in the header
Wait Until: (none or inferred)
Data: (none)

For input: "Enter the email address in the email field"

AI generates:

Description: Enter the email address in the email field
Wait Until: (none)
Data: (you will add the value)

After generation, add data values manually using static text or dynamic placeholders.

Tips for Better Results

Use Action Verbs

Describe Wait Conditions

"Click submit and wait for the success message"
"Wait until the loading spinner disappears"
"Wait for the page to finish loading"

Include UI Context

"in the header"
"in the sidebar"
"below the product image"
"in the checkout form"

Editing After Generation

Generated steps often need refinement:

Add Data Values

Before: Enter the email address in the email field
After:  Enter the email address in the email field
        Data: {{run.email}}

Clarify Descriptions

Before: Click the button
After:  Click the "Submit Order" button in the checkout form

Add Wait Conditions

Before: Click the submit button
After:  Click the submit button
        Wait Until: Success message is visible

Next Steps