Skip to main content

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

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