@digy4/digyrunner-playwright

0.0.128 • 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`,
    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");

Readme

Keywords

none

Package Sidebar

Install

npm i @digy4/digyrunner-playwright

Weekly Downloads

52

Version

0.0.128

License

none

Unpacked Size

36 kB

Total Files

8

Last publish

Collaborators

  • digy4