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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.5.4
    274
    • latest

Version History

Package Sidebar

Install

npm i perfecto-reporting

Weekly Downloads

1,051

Version

2.5.4

License

SEE LICENSE IN <LICENSE.txt>

Unpacked Size

23.8 kB

Total Files

21

Last publish

Collaborators

  • perfecto-sdk-js