1.1.5 • Published 12 months ago

playwright-zephyr-squad v1.1.5

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

Zephyr Squad reporter for Playwright

Publish Playwright test run on Zephyr

Install

npm i -D playwright-zephyr-squad

Usage

Add Server reporter to your playwright.config.ts configuration file

// playwright.config.ts
{
  ... // <--- others configs
  reporter: [['playwright-zephyr-squad', {
     host: '',
      accountId: '',
      accessKey: '',
      secretKey: '',
  }]],
}

If your test cycle requires custom fields, you can specify them in testCycle option:

// playwright.config.ts
{
    ... // <--- others configs
    reporter: [
    ['playwright-zephyr-squad', {
       host: '',
      accountId: '',
      accessKey: '',
      secretKey: '',
      testCycle: {
          name: `Automated Playwright Run - ${new Date().toISOString()}`,
          customFields: {
            Browser: 'Google Chrome',
            Device: 'MacOS',
          },
        },
    }],
  ],
}

Read how to get Zephyr Squad authorization token here.

Also, your playwright tests should include unique ID inside square brackets [J79] of your Zephyr test case:

//      ↓  Zephyr test case ID inside square brackets
test('[J79] basic test', async ({ page }) => {
  await page.goto('https://playwright.dev/');
  const title = page.locator('.navbar__inner .navbar__title');
  await expect(title).toHaveText('Playwright');
});

Then run your tests with npx playwright test command and you'll see the result in console:

āœ… Test cycle JARV-C2901 has been created
šŸ‘‡ Check out the test result
šŸ”— https://jira.your-company-domain.com/secure/Tests.jspa#/testPlayer/JARV-C2901

And you'll see the result in the Zephyr:

alt text

License

playwright-zephyr-squad is MIT licensed.

Author

Guilherme Trocatti guilhermetrocatti@hotmail.com

1.1.5

12 months ago

1.1.4

12 months ago

1.1.3

12 months ago

1.1.2

12 months ago

1.1.1

12 months ago

1.1.0

12 months ago

1.0.1

1 year ago

1.0.0

1 year ago