A Playwright reporter to post test results on Confluence.
npm install playwright-confluence-reporter -D
Modify your playwright.config.ts file to include the following:
reporter: [
[
"./node_modules/playwright-confluence-reporter",
{
confluenceUrl: "https://{your-confluence}.atlassian.net/wiki",
username: "{Your e-mail address}",
apiKey: "{Atlassian API key}",
spaceId: "{The Space ID for the page}",
parentPageId: "{Optional - The parent page ID}",
pageTitle: "E2E test results",
generatePage: true,
meta: [
{
key: "Scope",
value: "Web, Mobile"
}
]
},
],
... // Other reporters
],
Options
Option | Type | Required | Default | Description |
---|---|---|---|---|
confluenceUrl | string | yes | Your Confluence URL, probably ending with .atlassian.net/wiki
|
|
username | string | yes | Your Confluence username / e-mail | |
apiKey | string | yes | API key obtained from Atlassian | |
spaceId | string | yes | The ID of the Space where the page will be created | |
parentPageId | string | no | The parent page ID | |
pageTitle | string | no | date | Custom page title for the test results |
generatePage | boolean | no | true | Set to false if you don't want to create a page |
meta | Array[{ key, value }] | no | Custom information send with the test results |