Generate test steps using AI
Use AI-powered prompts to generate test steps automatically in BrowserStack’s App Low Code Automation editor without learning commands.
BrowserStack’s App Low Code Automation editor provides an AI-first experience that lets you generate test steps using natural language prompts. Instead of manually adding commands, you can describe your testing intentions in plain English, such as Login with valid credentials or Verify the checkout process, and AI automatically generates the corresponding test steps. This approach reduces the learning curve for manual QA testers by eliminating the need to learn specific commands upfront, allowing them to focus on what they want to test.
AI can make mistakes. Review and validate generated steps before running tests. This feature is currently experimental.
Key benefits include:
- Plain English language input: Describe your test intentions using everyday language
- Reduced friction: Start testing immediately without learning complex syntax
- Flexible workflow: Convert AI-generated steps to editable static steps when needed
- Seamless integration: Works alongside commands for advanced users
Example Use Cases
You can use AI interactions for various testing scenarios:
- Select dynamic dates: Select today’s date for departure
- Smart form completion: Fill only the mandatory fields in the registration form
- Product selection: Add any red colored iPhone to the cart
-
Login flow: Log in using the username
user@example.comand passwordPassword123
Generate dynamic test steps with AI interactions
- In the App Low Code Automation test editor, enter your prompt in the What do you want to test today? text box. You can use natural language prompts to describe any action or validation you want to perform.
- Click the Generate button (↑) to execute the action or validation. The AI analyzes your prompt and generates the test steps.
- While the steps are being generated, you can view the AI thoughts to understand what the AI is doing.
- If required, you can click Stop generation if you want to halt the process at any time. For more information, refer to the Stop AI generation section.
- Once the AI steps are generated, click Run all or Complete test.
You can combine AI-generated steps with manual command steps in your test. To add AI steps at any point, write a natural language prompt in the text box (for example, Tap the Login button or Fill in the email address field) or select Generate steps with AI from the dropdown menu.

Use the thumbs up or thumbs down buttons to share your feedback. Your input helps us improve and refine the AI prompts for better performance.
If you prefer to use commands instead of AI, click continue with commands.
Edit an AI prompt
You can edit the step by modifying the prompt even after execution.
- Click the Edit icon next to the AI interaction to update the prompt and regenerate the step.
- In the prompt editor, modify the existing prompt text in the text box.
- Click Update to regenerate the test steps with your modified prompt, or click Cancel to discard changes.
The AI analyzes your updated prompt and generates new test steps accordingly.
Stop AI generation
You can stop the AI generation process at any time while the AI is generating test steps. This is useful when you want to halt the process if the AI is not behaving as expected.
To stop AI generation, while the AI is generating steps, click the Stop generation button in the top-right corner of the test editor.

When you stop the generation, an AI Generation stopped message appears, indicating that the app may be in an unexpected state. You may need to manually reset the app before proceeding.

Stopping AI generation halts the current step creation process. Any partially generated steps may be incomplete and should be reviewed before proceeding with your test.
Execute AI steps
Each time the step runs during replay, it uses AI based on the provided prompt. You can expand the View AI thoughts button to see how the AI analyzes and decides how to execute the step.
You can use AI to generate single-line or multi-line commands. However, we recommend using commands for single-line step generation to optimize your usage. Reserve AI for multi-step command generation, as AI-based generation consumes your Fair Usage Policy (FUP) limits more quickly.
Convert AI steps to static test steps
You can convert AI-generated steps to static test steps when you want to edit the individual commands manually. Converting to static steps transforms the AI prompts into specific commands that run consistently without AI interpretation.
To convert AI steps to static test steps:
- In the test editor, click the AI interaction step, and then click the Convert AI steps to static test steps icon.
- In the Convert AI steps to static test steps? dialog, click Continue. Changing the steps static converts AI steps to normal steps and strictly run as per the step conditions.
After conversion, your AI steps are transformed into individual static commands that you can edit manually. The converted steps maintain the same functionality but run as fixed commands rather than dynamic AI interpretations.

Once converted to static steps, you cannot revert them back to AI interactions. The conversion is permanent for those specific steps.
Supported actions for AI interactions
AI interactions support all commands, except for the features listed below that are not supported.
Unsupported features for AI interactions
AI interactions do not currently support the following user actions, but support for these features will be added soon:
- Importing variables into an AI prompt
- Using an AI prompt within a module
- Triggering soft or hard failures at the prompt level
- Validation commands
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
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!