webdriverio-allure-adapter

1.0.1 • Public • Published

webdriverio-allure-adapter

Build status

Adapter for integration allure reporter to the existing tests with webdriverio.

install

With npm do:

npm install webdriverio-allure-adapter

usage for mocha users

  1. 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);
    })
});
  1. Run tests with mocha-allure-reporter

Package Sidebar

Install

npm i webdriverio-allure-adapter

Weekly Downloads

1

Version

1.0.1

License

none

Last publish

Collaborators

  • d0lfin