Skip to content

Automation Libraries

Automation libraries for UI and API testing have become indispensable tools for developers and testers, allowing them to efficiently validate functionality, performance, and user experience

Playwright

Playwright enables reliable end-to-end testing for modern web apps. It can generate JUnit reports, which are compatible with testbeats for reporting and analysis.

TIP

For a practical example of integrating with Playwright, refer to this example repository.

To integrate Playwright with testbeats, follow these steps:

1. Configure Playwright to Generate JUnit Reports

Update your playwright.config.ts file to include the junit reporter:

ts
reporter: [
  ['list'],
  ['junit', {  outputFile: 'test-results/junit.xml' }]
]

2. Configure testbeats to Consume JUnit Reports

Update your testbeats.config.json file to include the junit result file:

json
"results": [
  {
    "type": "junit",
    "files": ["test-results/junit.xml"]
  }
]

By following these steps, you can seamlessly integrate Playwright with testbeats, enhancing your automated testing workflow.

Cypress

With Cypress, you can easily create tests for your modern web applications, debug them visually, and automatically run them in your continuous integration builds.

TIP

For a practical example of integrating with Cypress, refer to this example repository.

To integrate Cypress with testbeats, follow these steps:

1. Configure Cypress to Generate JUnit Reports

Update your cypress.config.json file to include the junit reporter:

js
const { defineConfig } = require("cypress");

module.exports = defineConfig({
  reporter: 'junit',
  reporterOptions: {
    mochaFile: 'results/junit-[hash].xml',
  },
});

2. Configure testbeats to Consume JUnit Reports

Update your testbeats.config.json file to include the junit result files:

json
"results": [
  {
    "type": "junit",
    "files": ["results/junit-*.xml"]
  }
]

Last updated:

Released under the MIT License.