js-automation-coreservices
v0.2.6
Published
Automation Package for Core Services
Downloads
5
Maintainers
Readme
CoreServices
Core libraries to automate Mulesoft Applications, This module contains the CoreServices PageObjects needed to navigate thru all of the application
First time setup
Node version > v4
Npm version > v3
- Install grunt-cli globally -
npm install -g grunt-cli
- Install the console's NPM packages -
npm install
- Run
./node_modules/protractor/bin/webdriver-manager update
How to run tests locally
Run grunt
or npm test
to execute tests using Babel. If you prefer to use ES6 you should run grunt test:es6
(Node version > 4 is required).
Selecting Browser
Default environment chrome
- Example:
grunt --browser firefox
- Browser options: chrome, firefox, ie (only for Windows)
Selecting Environment
- Example:
grunt --env stg
- Environment options: qa, stg, prod
Selecting Test Suites
By default the all Suite will be executed.
grunt --suite management
- management is a Suite specified in the automation.protractor.conf.js file
How to run tests using Sauce Labs
grunt saucelabs
will run in a single Browsergrunt saucelabsmulti
will run in multiple Browsers in parallel- By default Sauce Labs will define their own defaults for Browser, Version and OS (Chrome, latest, Linux)
More options for Sauce Labs
Switching Environment, Browser is the same as Locally. There are additional options:
grunt --browser Firefox --ver 26 --os 'Windows 10'
--ver
= Browser version--os
Options: Windows 8.1, Windows (defaults to XP), OS X 10.11
Sauce Labs configurator
Go here to see all the different browser/version/OS available from Sauce Labs.