webdriverio-allure-adapter
v1.0.1
Published
Adapter for webdriverio for creating Allure report
Downloads
5
Maintainers
Readme
webdriverio-allure-adapter
Adapter for integration allure reporter to the existing tests with webdriverio.
install
With npm do:
npm install webdriverio-allure-adapter
usage for mocha users
- Add one string to your tests code
require('webdriverio-allure-adapter').init(client);
describe('Test suite', function() {
var webdriverio = require('webdriverio'),
client = webdriverio.remote({desiredCapabilities:{browserName: 'chrome'}});
require('webdriverio-allure-adapter').init(client);
it('Test', function(done) {
client
.init()
.url('http://google.com')
.getSource(function(err, source) {
console.log(source.length);
})
.saveScreenshot('test.png')
.setValue('*[name="q"]','webdriverio allure adapter')
.click('*[name="btnG"]')
.pause(1000)
.getTitle(function(err,title) {
console.log(title);
})
.end(done);
})
});
- Run tests with
mocha-allure-reporter