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

Integrate TestRail with Low Code Automation

Learn how to integrate with TestRail with Low Code Automation to map test cases easily and sync build results.

This document explains how to connect your Low Code Automation tests with TestRail test cases.

TestRail integration is available for both the Essentials and Pro plans. For more details, contact us.

Prerequisites

Before you can map test cases, you need to connect your TestRail account to Low Code Automation. This is a one-time setup.

To connect TestRail with Low Code Automation:

  1. Go to the Integrations page, and click + Connect on TestRail card. Connect TestRail from the integrations page.
  2. In the Connect TestRail using API Key/Password dialog, enter your TestRail host URL, email ID, and API key. Connect TestRail using API Key/Password dialog in BrowserStack Low Code Automation. Enter TestRail host, email ID, and API key, then click Continue.
  3. Click Continue to complete authentication.

Your TestRail account is now connected, and you can begin mapping tests to your TestRail cases.

To link TestRail with Low Code Automation:

  1. Open Low Code Automation and record a test.
  2. Click the Configurations tab in your test details view. Test details and configurations tab in BrowserStack Low Code Automation, showing test name, tags, and Map test case IDs option.
  3. Click Map test case IDs under Test details.
  4. In the Map test cases section, select TestRail from the Test management tool dropdown. Test management tool dropdown with TestRail selected, and Connect TestRail button visible.
  5. Click Connect TestRail. Integration dialog showing options to connect TestRail using OAuth or Personal access token.
  6. Select your TestRail project from the dropdown. Select project and test cases dialog, with project dropdown and empty test case list.
  7. Select the test cases you want to map. If required, you can also select the test suite. Test case selection dialog showing a list of test cases with checkboxes and titles.
  8. Click Map test cases to link the selected cases to your test.
  9. The mapped test cases appear in the configurations panel. Click Save changes. Mapped test cases listed in the configurations panel, showing TestRail IDs and titles.
  10. Alternatively, you can also map test cases from the recorder and follow the same steps as above. TestRail mapping option in the recorder interface, showing integration controls and mapping settings.

After the mapping, build reports are automatically uploaded to your TestRail account.

Points to remember

  • Constraints on Projects and Test Suites: For a test, you can only map test cases from a single project. If the project is in multi-suite mode, you need to select one test suite. In this case, you can only map test cases from a single test suite. If you change mandatory fields (projects/suites), existing mapping will be lost.
  • For migration: If you have mapped test cases in a comma-separated format earlier, you must provide the project IDs and suite IDs after migrating to the Pro plan. This ensures that build results continue to sync.
  • Results from re-run are not synced to TestRail.
  • Partial, incomplete, or stopped builds are not synced to TestRail.

To link TestRail with Low-Code Automation:

  1. Open Low Code Automation and record a test.
  2. Click the Map test case IDs button while saving the test. Map Test Case ID
  3. In the Map test case IDs dialog, select TestRail from the Test management tool menu. Select TCM Tool
  4. In the Test case IDs field, enter the test case IDs, separated by commas. Click Link test cases.
  5. Alternatively, link the test cases while editing the test. Click the Configurations tab. Under the Map Test Case IDs section, click the Map Test Case IDs button, then repeat Steps 3 and 4. A sample test showcasing the Configurations tab.
  6. Enter the name and click Save changes.

Export the test data in XML format

After test execution, go to the Builds section, select the desired build, and click Download.

A sample build screen highlighting the Download icon

You can also use the Reports API to download the XML, in addition to using the Download icon.

The XML file will be saved to your system in the following format:

XML
Copy icon Copy

Import test data XML into Test Case Management

After the test execution is complete and the XML file has been exported, you can import it into your TCM tool.

To import test results into TestRail, use the trcli command-line tool.

trcli
Copy icon Copy

For more information, see the TestRail documentation.

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