Skip to main content
🚀 See how 20+ AI Agents can make your QA faster and smarter. Join 10k+ QAs at global leadership summit! Register Now
No Result Found
Connect & Get help from fellow developers on our Discord community. Ask the CommunityAsk the Community

Customize test execution with blocks

Customize how your tests in a test suite runs by grouping them into blocks, managing dependencies, and controlling execution order in BrowserStack Low Code Automation.

Use blocks to organize your test suite into logical groups, manage dependencies, and control execution order. Group related tests and set dependencies so tests run in a specific order and only if prerequisite blocks pass. This approach improves reliability and maintainability.

  • Organize tests into logical groups (blocks).
  • Control execution order and dependencies.
  • Reduce flakiness by ensuring prerequisite tests run first.
  • Improve maintainability and clarity of test suites.

Creating and managing blocks is available on Low Code Automation Pro and higher plans.

Create blocks

To create blocks in your test suite:

  1. On the Test suites page, click + Create test suite.
    • Enter a name and description for the test suite.
    • Select the browsers to use for execution.
    • Click Add test(s).
  2. In the test selection pane, select the tests you want to include, then click + Create Block. Screenshot of the tests pane with selected tests and the **Create block** button highlighted. This image demonstrates how to select tests and create a block in BrowserStack Low Code Automation.

After you create your first block, you can add more blocks as needed. All tests you add to the suite must be placed inside a block. Tests cannot be left outside of the block structure.

Add new blocks and tests to existing blocks

To add new blocks and tests to existing blocks:

  1. Click + Add block to create a new block. Screenshot showing the Add block button highlighted, demonstrating how to add more blocks in BrowserStack Low Code Automation.
  2. Click + Add tests and select the tests you want to include in the block. To add more tests to an existing block, click the + icon next to the block. Click Add tests to block to confirm your selection. Screenshot showing the Add tests to block button, demonstrating how to add tests to a block in BrowserStack Low Code Automation.
  3. Repeat these steps to add more blocks or tests as needed.

Move tests and blocks

To move tests or blocks:

Hover over the test or block you want to move. You can do the following:

  • Drag and drop a test to a different block.
  • Drag and drop a block to a new position in the suite.
  • Drag and drop a test from one block to another.

Screenshot showing drag and drop icon to reorder tests and blocks in  BrowserStack Low Code Automation.

Edit a block

To edit a block in your test suite:

  1. Click the Edit icon next to the block name. Screenshot showing the edit icon to update the block details and settings.
  2. Update the block name, test list, or settings as needed. Screenshot showing the block settings options, including parallel and sequence execution, in BrowserStack Low Code Automation.
  3. Choose to run tests in parallel or in sequence:
    • Parallel: Runs tests at the same time for faster execution. The option is only available if your plan includes more than one parallel execution.
    • Sequence: Runs tests one after another for better isolation.
  4. Set what happens if a block has test failures:
    • Continue to next block (if present): Runs all blocks, even if some fail. Use for a complete test overview.
    • Stop execution: If a test in this block fails, any blocks after this one will not run. All tests in those unrun blocks will be marked as skipped.
  5. Click Update.

When you finish creating and organizing blocks and tests, click Add to test suite.

Delete a block

To delete a block in your test suite, click the Delete icon next to the block.

Screenshot showing the delete icon to delete a block

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