Skip to main content
No Result Found

Integrate Test Observability with Test Management

You can integrate BrowserStack Test Observability with Test Management using BrowserStack SDK. Test Observability works for tests that you run on a locally hosted devices and browsers, CI/CD pipeline, or cloud platform. Test Observability currently supports automated test suites for:

Select a test framework to get started

Nodejs
WebdriverIO

Integrate E2E WebdriverIO tests running locally or on any cloud service.

Java
TestNG

Integrate unit or E2E TestNG tests running locally or on any cloud service.

Javascript
Cypress

Integrate unit or E2E Cypress tests running locally or on any cloud service.

Javascript
Jest

Integrate unit or end-to-end Jest tests running locally or on any cloud service.

Javascript
CodeceptJS

Integrate unit or E2E CodeceptJS tests running locally or on any cloud service.

Javascript
Mocha

Integrate unit or E2E mocha tests running locally or on any cloud service.

Javascript
Cucumber JS

Integrate unit or E2E Cucumber JS tests running locally or on any cloud service.

Javascript
Playwright

Integrate unit, API or E2E Playwright tests running locally or any cloud service.

Javascript
Nightwatch.js

Integrate unit or E2E Nightwatch.js tests running locally or on any cloud service.

Java
Serenity

Integrate unit or E2E Serenity tests running locally or on any cloud service.

Java
JUnit5

Integrate unit or E2E JUnit5 tests running locally or on any cloud service.

Java
JUnit4

Integrate unit or E2E JUnit4 tests running locally or on any cloud service.

C#
NUnit

Integrate unit or E2E NUnit tests running locally or on any cloud service.

C#
xUnit

Integrate unit or end-to-end xUnit tests running locally or on any cloud service.

C#
MSTest

Integrate unit or E2E MSTest tests running locally or on any cloud service.

Python
Behave

Integrate unit or E2E Behave tests running locally or on any cloud service.

Python
Pytest

Integrate unit or E2E Pytest tests running locally or on any cloud service.

Python
Robot

Integrate unit or E2E Robot tests running locally or on any cloud service.

Espresso
Espresso

Integrate unit or E2E Espresso tests running locally or on any cloud service.

Report upload
JUnit Reports

Integrate by uploading any JUnit XML Report generated by any test framework.

Steps to generate and upload test reports using Test Observability

Prerequisites

  • A BrowserStack username and access key, which you can access from your BrowserStack account Settings.

Configure your project repository

Go to your project repository, you can also refer to this example repo.

Verify your pom.xml have the following entries.

<dependency>
  <groupId>com.browserstack</groupId>
  <artifactId>browserstack-java-sdk</artifactId>
  <version>LATEST</version>
</dependency>

Install the latest SDK version.

mvn install
# gradle build

Go to browserstack.yml config file and make the following changes.

userName: <your browserstack_username goes here>
accessKey: <your browserstack_password goes here>
buildName: <Your static build/job name of CI goes here>
projectName: <Your static project name goes here>
testObservability: true

Run your test suite with Test Observability (Local Test)

mvn test -P sample-test

Go to Test Observability from Test Run reports in Test Management

  1. Log in to Test Management and select project to which test report was exported.
  2. Click Test Runs.
  3. Click the graph icon in the TYPE OF RUN column. Icon to move to Test Observability

Create and export report for test observability using Jenkins

Prerequisites

  • Ensure a Jenkins pipeline is created.

You can initate a Test Run report using Jenkins for BrowserStack Test Observability.

  1. Open your code base root folder and verify if Jenkinsfile exists. You can also use this sample Jenkinsfile.

  2. Push the codebase to your version controling system like Github or Bitbucket.

  3. Go to your Jenkins Dashboard and select the master branch of your Pipeline. Select master branch on Jenkins pipeline

  4. Click Build Now. Click Build Now to build the jenkins pipeline

After the Test Run build is complete successfully and generated the report you can check Test Run report in Test Management.

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