1.0.2 • Published 9 years ago

nemo-perfectomobile v1.0.2

Weekly downloads
2
License
ISC
Repository
github
Last release
9 years ago

nemo-perfectomobile

PerfectoMobile plugin for NemoJS

Pre-requisites

A running nemo@1.x installation. The remainder of this document assumes you are familiar with installing/configuring/using Nemo plugins.

If you are new to Nemo, please start here: https://nemo.js.org

Installation

In your project where Nemo is already installed:

$ npm install --save nemo-perfectomobile

or use --save-dev if nemo and plugins are development dependencies

Configuration

In the appropriate JSON configuration file, add this as a plugin:

"plugins": {
    "perfectomobile": {
      "module": "nemo-perfectomobile",
      "arguments": ["path:report"]
    }
  },

make sure the /report directory exists

API

nemo.perfectomobile.getReport(filename)

  • @argument filename {String} (optional): provide a full name for your report file. Make sure to include either .html or .pdf in order to indicate which type of file you wish to save. If left blank, the plugin will auto-name and select .html as the report type.
  • @returns Promise

Note that this method will execute webdriver.close() before requesting a report. So only call the method once you are done running any other webdriver commands.