valtech-testing-framework
Framework for automated testing using Cucumber, WebdriverIO and Selenium
Last updated a year ago by physer .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install valtech-testing-framework 
SYNC missed versions from official npm registry.

Valtech Testing Framework

Valtech Testing Framework (VTF) is a framework combining Cucumber(.js), WebdriverIO and Selenium for setting up a quick and easy testing environment.

Installation

You can install VTF using NPM:

npm install valtech-testing-framework --save-dev

Usage

Using a commandline tool you first need to setup the required output folders. You can simply do this by running the following command:

vtf setup

After the setup is completed you can run VTF using the command below.

vtf run --options options.js [--config config.js]

Configuration

When running the vtf run command it is mandatory to specify an options file. The following code shows an example of what your options.js could look like:

// options.js
module.exports.config = {
    baseUrl: 'https://github.com',
    specs: ['./features/**/*.feature'],
    cucumberOpts: {
        tagExpression: '@tag1'
    }
}

Optionally you can also specify an config file, which will be used to override the default config file from WebdriverIO. The following code shows an example of what the config.js would look like if you wanted to run the tests in Firefox:

// config.js
module.exports.config = {
    capabilities: [{
        browserName: 'firefox'
    }]
}

More about the WebdriverIO configuration can be found here.

Options.js

baseUrl

Base URL used for the tests being started.

Type: String
Default: null
Example: https://github.com/

specs

A list of path queries of the Cucumber tests which should be run.

Type: String[]
Default: []
Example: ['./features/**/*.feature']

logOutput

A list of path queries of the Cucumber tests which should be run.

Type: String[]
Default: []
Example: ['./features/**/*.feature']

Current Tags

  • 0.3.0                                ...           latest (a year ago)

3 Versions

  • 0.3.0                                ...           a year ago
  • 0.2.0                                ...           2 years ago
  • 0.0.1                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (19)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |