Skip to content

franciscodiaz4/gm-fabric-nightwatch

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gm-fabric-nightwatch

A Fracking Friday Investigation of how to perform end-to-end testing of Grey Matter Fabric Dashboard via Mocha, Nightwatch, and BrowserStack

Goal

Investigate the various Node.js end-to-end testing frameworks supported by BrowserStack, select a framework, and refactor a handful of Selenium tests from Java into JavaScript.

How it benefits Decipher

Grey Matter Fabric Dashboard was approved for free access to BrowserStack Automate services as an open source project. Jamie wrote end-to-end test for the dashboard in Selenium, but because they are in Java, they are not maintainable by the UI/UX team. This would work form the basis for a strategy to integrate these tests into our CI/CD pipeline and later roll out to other Decipher open-source UI/UX projects

Developer: Sean McBride Approved By: David Tillery

Setup

  • Clone the repo
  • Install dependencies npm install
  • Set your BrowserStack credentials to the environment variables BROWSERSTACK_USERNAME and BROWSERSTACK_ACCESS_KEY. If you have an account, you can obtain these credentials form https://www.browserstack.com/accounts/settings

Running your tests

  • To run a single test, run npm run single
  • To run local tests, run npm run local
  • To run parallel tests, run npm run parallel

Understand how many parallel sessions you need by using our Parallel Test Calculator

Notes

Connecting to BrowserStack via a proxy server

You can specify proxy settings in Nightwatch by adding the proxy key in your *.conf.js

  test_settings: {
    default: {
      desiredCapabilities: {
        // Your capabilities
      },
      proxy: {
        "host": "",     // "127.0.0.1"
        "port": "",     // "8081"
        "protocol": ""  // "http"
      }
    }
  }

Additional Resources

About

BrowserStack and Travis.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%