All Projects → klamping → wdio-starter-kit

klamping / wdio-starter-kit

Licence: MIT license
Boilerplate repo for quick set up of WebdriverIO test scripts with TravisCI, Sauce Labs and Visual Regression Testing

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to wdio-starter-kit

mugshot
Framework independent visual testing library
Stars: ✭ 126 (+306.45%)
Mutual labels:  webdriverio
wdio-jasmine-framework
A WebdriverIO v4 plugin. Adapter for Jasmine testing framework.
Stars: ✭ 22 (-29.03%)
Mutual labels:  webdriverio
expect-webdriverio
WebdriverIO Assertion Library
Stars: ✭ 49 (+58.06%)
Mutual labels:  webdriverio
frontend testing
Repository containing sample code used in a Frontend Testing workshop
Stars: ✭ 14 (-54.84%)
Mutual labels:  webdriverio
wdio-reportportal-reporter
A WebdriverIO plugin. Report results to Report Portal.
Stars: ✭ 22 (-29.03%)
Mutual labels:  webdriverio
wdio-spec-reporter
A WebdriverIO v4 plugin. Reporter that creates 'spec'-style reports
Stars: ✭ 20 (-35.48%)
Mutual labels:  webdriverio
fullstack-typescript
A demo project of a full stack typescript application
Stars: ✭ 28 (-9.68%)
Mutual labels:  webdriverio
Codeceptjs
Supercharged End 2 End Testing Framework for NodeJS
Stars: ✭ 3,592 (+11487.1%)
Mutual labels:  webdriverio
html-dnd
HTML Drag and Drop Simulator for E2E testing
Stars: ✭ 53 (+70.97%)
Mutual labels:  webdriverio
gulp-webdriver
gulp-webdriver is a gulp plugin to run selenium tests with the WebdriverIO testrunner
Stars: ✭ 77 (+148.39%)
Mutual labels:  webdriverio
ui-testing-book
Content for "The Web App Testing Guidebook"
Stars: ✭ 26 (-16.13%)
Mutual labels:  webdriverio
wdio-junit-reporter
A WebdriverIO v4 plugin. Report results in junit xml format.
Stars: ✭ 13 (-58.06%)
Mutual labels:  webdriverio
demo-webdriverio-cucumber
E2E Tests with WebdriverIO and Cucumber
Stars: ✭ 28 (-9.68%)
Mutual labels:  webdriverio
saloon
An E2E test seeder for enterprise web applications
Stars: ✭ 30 (-3.23%)
Mutual labels:  webdriverio
webdriverio-testing-library
🕷️ Simple and complete WebdriverIO DOM testing utilities that encourage good testing practices.
Stars: ✭ 13 (-58.06%)
Mutual labels:  webdriverio
my-react-todolist
A guide to TDD a React/Redux TodoList App
Stars: ✭ 22 (-29.03%)
Mutual labels:  webdriverio
percy-webdriverio
Visual testing with WebdriverIO and Percy
Stars: ✭ 25 (-19.35%)
Mutual labels:  webdriverio
Webdriverio
Next-gen browser and mobile automation test framework for Node.js
Stars: ✭ 7,214 (+23170.97%)
Mutual labels:  webdriverio
web-automation
BDD tests with Cucumber, WebdriverIO and Docker Selenium
Stars: ✭ 114 (+267.74%)
Mutual labels:  webdriverio
wdi5
cross-platform test framework for UI5 web-apps. wdi5 = Webdriver.IO + UI5 Test API
Stars: ✭ 45 (+45.16%)
Mutual labels:  webdriverio

Build Status js-semistandard-style

WebdriverIO Starter Kit

Boilerplate repo for quick set up of WebdriverIO test scripts with TravisCI, Sauce Labs and Visual Regression Testing

Configuration

  1. Clone the repo and run npm install
  2. Add a valid SAUCE_USERNAME and SAUCE_ACCESS_KEY to your environment variables to enable that integration. (Settting up Sauce)
  3. Update the 'baseUrl' property in wdio.conf.js and wdio.conf.local.js
  4. Update the spec files and page objects in the test folder

Usage

By default, the kit is set up to run tests using the npm test command.

You can also lint your code with npm run lint.

This kit features:

More Details

Starter Test Cases

Because login and registration pages are ubiquitous on websites, I've included two test files with corresponding page objects.

You'll very likely need to replace the selectors used in the page objects.

You'll also want to update the isLoggedIn and isRegistered functions in the page objects to return the proper response.

Folder Structure

Tests and page objects go in the test\ folder, which you'll need to create.

Name tests with a .spec.js extension. For example: mytest.spec.js

Name Page Object files with a .page.js extention. For example: mypageobject.page.js

Visual regression screenshots will be saved to the screenshots folder.

TravisCI Integration

This kit includes a basic .travis.yml file set up to allow easy integration with their service. Simply enable your repo in TravisCI and you'll get it up and running. And be sure to update the badge information at the top of this file.

Debug Command Line Flag to adjust timeout

By setting the 'DEBUG' environment variable to true, the test timeout with be essentially removed, allowing you to run the debug command without your tests timing out.

DEBUG=true npm test

Configuration file flavors

By default, tests will run in Sauce Labs testing your production server.

To run the tests entirely locally, run:

npm test wdio.conf.local.js

Configurations

WebdriverIO configurations can be passed in via a double-dash (i.e. --).

For example, to run a single test file, use the WDIO spec flag: npm test -- --spec=login

The double dash indicates that the remaining options should be sent to the command that NPM is running, not NPM itself.

In the previous example everything after -- goes to WDIO.

A few more examples:

To change the log level, pass in a --logLevel flag: npm test -- --logLevel=verbose

To specify a certain web server, pass in a baseUrl flag: npm test -- --baseUrl=http://url.of.server

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].