perfecto-reporting

2.5.4 • Public • Published

Perfecto Reporting SDK for NodeJS projects

The solution for digital automation projects using NodeJS

Usage

perfectoReporting = require('perfecto-reporting')

perfectoExecutionContext = new perfectoReporting.Perfecto.PerfectoExecutionContext({
  webdriver,
  tags: ['optional tag']
});
reportingClient = new perfectoReporting.Perfecto.PerfectoReportingClient(perfectoExecutionContext);

reportingClient.testStart('This is the test name');

reportingClient.testStep('Navigate to my site');
webdriver.get('https://mysite.com');

reportingClient.testStep('Create new purchase order');
// Business logic executed via webdriver...

// Report the test status - either passed...
reportingClient.testStop({
  status: perfectoReporting.Constants.results.passed
});
// ... Or failed with an err
reportingClient.testStop({
  status: perfectoReporting.Constants.results.failed,
  message: err
});

/perfecto-reporting/

    Package Sidebar

    Install

    npm i perfecto-reporting

    Weekly Downloads

    526

    Version

    2.5.4

    License

    SEE LICENSE IN <LICENSE.txt>

    Unpacked Size

    23.8 kB

    Total Files

    21

    Last publish

    Collaborators

    • perfecto-sdk-js