@digy4/digyrunner-playwright

0.0.137 • Public • Published

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`,
    PROJECT_PLAN_URL: `https://z85m9oisq5.execute-api.us-east-1.amazonaws.com/test/users/project-plan-details`,
    CLIENT_ID: "<key>",
    CLIENT_SECRET: "<secret>",
    DIGY4_LOG_LEVEL: "ERROR|INFO|DEBUG"
  },

};

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");

Readme

Keywords

none

Package Sidebar

Install

npm i @digy4/digyrunner-playwright

Weekly Downloads

80

Version

0.0.137

License

none

Unpacked Size

39.6 kB

Total Files

8

Last publish

Collaborators

  • digy4