@digy4/digyrunner-playwright
v0.0.128
Published
DigyRunner for playwright
Downloads
827
Readme
digyrunner-playwright-js
How to use?
npm install @digy4/digyrunner-playwright
- Create a config file
digy-runner-config-web.js
for DigyRunner
const digyRunnerConfig = {
env: {
PROJECT_NAME: "Playwright-js-starter",
TEAM_NAME: "TeamPlaywright",
SUITE_NAME: "WEB Regression",
APP_VERSION: "2.0",
ENVIRONMENT: "test",
FRAMEWORK: "playwright",
MODULE_NAME: "SomeModuleName",
TESTER: "Joe Bloggs",
BA: "Joe Bloggs",
DEVELOPER: "Joe Bloggs",
TEST_TYPE: "WEB",
LOB: "<Line of business name>",
APPLICATION: "<Application name>",
RELEASE: "<release version>",
RESULTS_SUMMARY_URL: `https://rcr0bssa51.execute-api.us-west-2.amazonaws.com/digykube-dev/v3/resultsSummary`,
RESULTS_URL: `https://rcr0bssa51.execute-api.us-west-2.amazonaws.com/digykube-dev/v3/results`,
DIGY4_API_KEY: "<key>",
DIGY4_API_SECRET: "<secret>"
},
};
module.exports = digyRunnerConfig;
Include the config file in the playwright config
const digyRunnerConfig = require('./digy-runner-config-web');
Add digyrunner as a reporter in the playwright config
['@digy4/digyrunner-playwright/DigyReporter', digyRunnerConfig]
Optionally import digyrunner "test" instead of playwright "test" directly
const test = require("@digy4/digyrunner-playwright/DigyWebTest");