Skip to main content
Experience faster, smarter testing with BrowserStack AI Agents. See what your workflow’s been missing. Explore now!
No Result Found
Connect & Get help from fellow developers on our Discord community. Ask the CommunityAsk the Community

Generate test cases using the create test case form

Use the Test Case form to provide the AI with detailed context, enabling it to generate precise, editable test cases.

Using the Create Test Case form gives you more control. It allows you to provide additional context, such as a detailed summary and preconditions. It helps the AI generate more precise test cases. This method is ideal for complex features or when you need to specify detailed requirements.

To create a test case:

  1. Click Create Test Case from the dashboard. Create test case from the dashboard
  2. Enter the test case Title (required).
  3. Select a template from the Choose Template dropdown:
    • Text
    • Steps
    • Gherkin (BDD)

    Currently, partial generation is supported using custom templates. For detailed guidance on each template, refer to the How to use templates documentation.

  4. Click Generate icon next to the title field.

    Test Case Details Assistance

  5. The AI populates all the relevant fields based on the template you chose in step 3.
  6. Review the generated content and make any necessary edits.
  7. Click Create to generate and save the new test case.

This process lets you leverage AI to do the heavy lifting while giving you the final say on the test case details.

Example of an AI-generated BDD test case

The following image shows an example of an AI-generated BDD test case along with its details.

Example of an AI-generated BDD test case

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked





Thank you for your valuable feedback

Is this page helping you?

Yes
No

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked





Thank you for your valuable feedback!

Talk to an Expert
Download Copy Check Circle