Playwright plugin allows you to push your test results into QATouch.
npm install playwright-qatouch-reporter`` shell
npm init playwright@latest
`
` shell
npx playwright test
`
` shell
npm i playwright-qatouch-reporter
`
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:
`Javascript
QATOUCH_DOMAIN=your-domain
QATOUCH_API_TOKEN=your-api-token
QATOUCH_PROJECT_KEY=Project-Key
QATOUCH_TESTRUN_ID=Test-Run-Id
`
`Javascript
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.:
`Javascript
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/);
});
``