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

Export tests as code in Low Code Automation

Learn how to easily export tests as code in Low Code Automation.

Low Code Automation offers users the ability to export their recorded tests as code. This feature allows you to store tests for future use and easily integrate your tests into other solutions. You can further add custom logic and integrate them into script-based automation tools.

The Export Tests feature is available only in the Low Code Automation Pro plan.

Export test using REST API

Low Code Automation allows you to export your recorded tests as code in the following formats using APIs:

  • .side is a Selenium IDE compatible format.
  • Nightwatch.js is an integrated framework for performing automated end-to-end testing on web applications and websites, across all major browsers.

To export the test details as code:

  1. Retrieve the test ID from Low Code Automation by clicking the Copy test ID button under Configurations section. Copy Test ID
  2. Alternatively, you can fetch all tests along with their IDs using the Get all recorded tests endpoint.
  3. Use the Get test script by ID endpoint to download the test in .side or Nightwatch.js format. For more information, refer to Export tests API.

  4. Use the .side format for easy export to multiple languages:
    • C# NUnit
    • C# xUnit
    • Java JUnit
    • JavaScript Mocha
    • Python pytest
    • Ruby RSpec

    For more information, refer to the Selenium IDE Code Export document.

  5. Or export the test in the Nightwatch.js framework.

You can also use a ready-to-use shell script to bulk-download .side files and convert them to code in the respective programming languages. For more information, refer to the Bulk export tests page.

Key points

The following test data will not be exported:

  • Secret values will not be exported and will be replaced with the secret name. You can manually update the value after the code is exported.
  • Steps using test data generated by AI will be replaced with the corresponding AI prompt during export. Ensure to update the prompt with the appropriate value.
  • Low Code Automation’s element selection algorithm with AI healing, used during replay, is not exported.
  • Visual Validation, API, and Open Email steps are not currently exported.

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