Utility to generate html report for protractor multicapabilities automation results
npm install protractor-multicapabilities-htmlreporterA utility to generate HTML report for protractor multicapabilities automation results.
```
npm install protractor-multicapabilities-htmlreporter
Execute the script in protractor afterLaunch callback. [A callback function called once
all tests have finished running and the WebDriver instance has been shut down.]
`
afterLaunch: function() {
var reporter = require('protractor-multicapabilities-htmlreporter');
reporter.generateHtmlReport('./ptor-out.json','Automation Results','./report.html');
}
`
`
Add the below config for generating output for results in json format
resultJsonOutputFile: 'ptor-out.json'
Make sure test description follows the below format and json output file contains description
in the same format.
Sample test file below, this below example shows hardcoded browser values, you can dynamically pass
browsername and version using getProcessedConfig() as browser.params in onPrepare callback function.
...
it("Product_Page|iPhone|8.0" ,function () {
...
`
[
{
"description": "Category_Page|iPhone|8.0",
"assertions": [],
"duration": 4544
},
{
"description": "Product_Page|iPhone|8.0",
"assertions": [],
"duration": 5898
}
]
``* 0.0.1 Initial release
* 0.0.2 Cleanup and refactoring
* 0.0.3 Added image for html reporter
* 0.0.4 Updated README file