1.0.2 • Published 11 years ago
nemo-perfectomobile v1.0.2
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-perfectomobileor 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.htmlor.pdfin order to indicate which type of file you wish to save. If left blank, the plugin will auto-name and select.htmlas 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.