Git Product home page Git Product logo

opine-browsertest's Introduction

opine-browsertest

A [gulp-opine] opine module for browser automated testing with [Webdriver.io] webdriver and BrowserStack browserstack

configuration

The only required configuration are browser stack username and access key, and the base url. Ideally the configuration should be in a local.js file in the config folder.

module.exports = {
  'opine': {
    'browsertest': {
      'wdio': {
        baseUrl: 'http://www.studiothick.com'
      },
      'browserstack': {
        'username': 'username',
        'accesskey': 'key'
      }
    }
  }
};

screenshots

The screenshot task needs some extra configuration.

'screenshots': {
    'output': './test/output/screenshots',
    'base': 'http://www.google.com',
    'urls': [
      '/',
      '/intl/en/policies/privacy'
    ]
}

The base parameter is not required, if omitted the urls in the list must be "full" URIs

capabilities

the default configuration has the following capabilities:

  • desktop: ie9, ie10, ie11, edge, chrome, chrome-mac, firefox, firefox-mac, safari

  • mobile: iPhone5, iPhone6, iPad, android, android-tablet

It's possible to override the default capabilities via config, like below

module.exports = {
  'opine': {
    'browsertest': {
      'wdio': {
        baseUrl: 'http://www.studiothick.com',
        outputPath: ['./test/output'],
        screenshotPath: './test/output/screenshots',
        'capabilities': [...]

Capabilities settings for BrowserStack can be found at

https://www.browserstack.com/automate/capabilities

tasks

  • browsertest: it executes all the tests on all the capabilities.

  • browsertest-screenshots: it creates screenshots of specified urls.

For both tasks it's possible to run on a single capability specifying a --cap paramater with the name of the capability. e.g. gulp browsertest --cap android

Fu(ea)ture(s)

  • Selected capabilities: gulp browsertest --cap ie9 ie10 firefox
  • Selected pages: gulp browsertest --page home landing
  • Selected tests: gulp browsertest clickButton

opine-browsertest's People

Contributors

gvnn avatar danlaush avatar

Stargazers

Alejandro Loayza avatar

Watchers

Matthew Landauer avatar Ben Ward avatar Damien Buttler avatar Jason D'Souza avatar James Cloos avatar  avatar T Bredin avatar Sam Mularczyk avatar Kenan Fallon avatar Feb Dao avatar Lennon Cheng avatar Samwij avatar Pauline avatar Billybot avatar Nathan Thorpe avatar Taylor Yates avatar

opine-browsertest's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.