Git Product home page Git Product logo

intern-ui-automation's Introduction

#Front-End UI Automation using Intern#

To setup locally

  1. Make sure to use Node v0.10.x.

  2. Install dependencies

    npm install

  3. Download selenium-standalone-2.43.1.jar

  4. Download selenium-standalone-2.45.x.jar

###Selenium-Standalone v2.43.1###

https://selenium-release.storage.googleapis.com/index.html?path=2.43/

###Selenium-Standalone v2.45.0###

http://www.seleniumhq.org/download/

Setup Chrome locally

  1. Download ChromeDriver
  2. (optional) export selenium-standalone & ChromeDriver to your PATH.
  3. Otherwise, use an explicit command.

Setup Firefox locally

Specify the environment

  { browser: 'firefox' }

Then make sure that you are running selenium-standalone-2.45.x.jar, if you are running the latest Firefox.

Setup Safari locally

In order to run Safari tests locally, please make sure you have the extension downloaded.

  https://github.com/SeleniumHQ/selenium/wiki/SafariDriver
  • Then, in the intern.js configuration file, set the environments to only { browser: 'safari' } without a specified version.
  • Lastly, make sure that you are running selenium-standalone-2.43.1.jar before you run grunt.

To setup on SauceLabs

Little configuration is needed. Inside the intern.js configuration file, make sure the

  1. tunnel is set to 'SauceLabsTunnel'.
  2. environments you want to test are correctly configured.
  3. In tunnelOptions, specify your username and access key.

Run the tests

  grunt test

Done!

Notes

For Mac users, I suggest installing NVM (node version manager) because it will let you switch between the latest versions of Node and 0.10.x with just a command.

For Window users, NVM isn't supported but you can make it run by following this tutorial:

https://github.com/coreybutler/nvm-windows

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.