WebdriverIO Executorwdio executor allows you to run WebdriverIO -based test suites. Taurus can loop test suite execution in a loop until desired number of iterations will complete or hold-for time will be exceeded. Note: Taurus currently runs WebdriverIO version v6 by default (which requires Node v12+). Usage: execution: - executor: wdio iterations: 2 scenario: script: wdio.conf.js # wdio configuration script You can find an example of complete WebdriverIO/Mocha based test suite and a Taurus config to run it with in examples/selenium/wdio folder of Taurus's repo. SettingsBy default, Taurus will install wdio and its dependencies with npm into ~/.bzt/selenium-taurus/wdio/ directory. You can customize it with tools-dir module setting. modules: wdio: tools-dir: my-dir ExampleGenerate wdio.conf.js via Wdio CLI package, and following example file in specs: var assert = require('assert'); describe('sample test', () => { it("it's adequate", () => { var result = 2 + 2 * 2; assert.equal(result, 6); }); }); |
On this page:
Quick Links: |