Skip to content

qatouch/playwright-qatouch-reporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

playwright-qatouch-reporter

This Playwright plugin allows you to push your Playwright Test results into QATouch.

QA Touch Reporter for Playwright

Pushes test results into QA Touch system.

Playwright Installation - Local Setup

npm init playwright@latest

Running the Example Test

npx playwright test

Version

npx playwright --version

System requirements

Node.js 18+

Installation - QA Touch plugin

npm i playwright-qatouch-reporter

Prerequisites

To use QA Touch Reporter, you will need to set up the following environment variables:

Ensure that your QA Touch API is enabled and generate your API keys. See https://doc.qatouch.com/#qa-touch-api

Add .env file to playwright project root folder with the following keys:

QATOUCH_DOMAIN=your-domain
QATOUCH_API_TOKEN=your-api-token
QATOUCH_PROJECT_KEY=Project-Key
QATOUCH_TESTRUN_ID=Test-Run-Id

Usage

Please open playwright.config.js file, replace below code

 
 reporter: [["html"],["playwright-qatouch-reporter"]],

In order to use reporter, you should add meta information to your tests. Meta key should be TRXXX ID (TestRun Code in qatouch), e.g.:

test.only('TR0035 hastitle', async ({ page }) => {
  await page.goto('https://qatouch.com/');

  // Expect a title "to contain" a substring.
  await expect(page).toHaveTitle(/End to End Test Management Tool | Software Test Management tool | QA Touch/);
});

References

License

This project is licensed under the MIT License

About

This Playwright plugin allows you to push your Playwright Test results into QATouch.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published