Skip to content

Instantly share code, notes, and snippets.

@scottrice10
Created December 22, 2014 22:25
Show Gist options
  • Select an option

  • Save scottrice10/9e53c015ffdc0e279d3d to your computer and use it in GitHub Desktop.

Select an option

Save scottrice10/9e53c015ffdc0e279d3d to your computer and use it in GitHub Desktop.
Example protractor.conf.js
var globalTimeout = 120000;
/***************************************************************
** set configs for protractor tests
**
***************************************************************/
exports.config = {
//directConnect: true,
///////////////////////////////////
// selenium server configuration //
///////////////////////////////////
seleniumServerJar: "lib/selenium-server-standalone-2.44.0.jar",
seleniumPort: 4444,
seleniumArgs: [],
//////////////////////////////////////////////////////////
// Capabilities to be passed to the webdriver instance. //
//////////////////////////////////////////////////////////
multiCapabilities: [{
//{browserName: 'firefox'},
{
browserName: 'chrome'
}
}],
//////////////////////////////////////////////////////////////////////////////////////////
// Spec patterns are relative to the current working directly when protractor is called //
//////////////////////////////////////////////////////////////////////////////////////////
suites: {
location: './e2e/location-qdim-table/*-spec.js',
//horseshoe: './e2e/horseshoe/*-spec.js',
//search: './e2e/search/*-spec.js',
//appHome: './e2e/app-home/*-spec.js',
//login: './e2e/login/*-spec.js',
},
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// A base URL for your application under test. Calls to protractor.get() with relative paths will be prepended with this. //
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//baseUrl: 'https://infoplustest.localhost-testsubdomain1.infopluswms.com:8443/',
baseUrl: "https://gatewaydemo.qa02.infopluswms.com/",
//baseUrl: "http://localhost/",
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// The params object will be passed directly to the Protractor instance, and can be accessed from your test as browser.params. //
// It is an arbitrary object and can contain anything you may need in your test. //
// This can be changed via the command line as: --params.login.user 'Joe' //
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
params: {
login: {
username: '[email protected]',
password: 'abcd-1234'
}
},
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Options to be passed to minijasminenode. See the full list at https://github.com/juliemr/minijasminenode/tree/jasmine1 //
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
jasmineNodeOpts: {
//////////////////////////////////
// If true, display spec names. //
//////////////////////////////////
isVerbose: true,
////////////////////////////////////////////
// If true, print colors to the terminal. //
////////////////////////////////////////////
showColors: true,
////////////////////////////////////////////////
// If true, include stack traces in failures. //
////////////////////////////////////////////////
includeStackTrace: true,
/////////////////////////////////////////////////////
// Default time to wait in ms before a test fails. //
/////////////////////////////////////////////////////
defaultTimeoutInterval: globalTimeout
},
//////////////////////////////////////////
// How long to wait for a page to load. //
//////////////////////////////////////////
getPageTimeout: globalTimeout,
allScriptsTimeout: globalTimeout
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment