function _getProtractorParams( suite ) {

  var commandLineParams = minimist( process.argv.slice( 2 ) );

  var configFile = commandLineParams.a11y ?
                  'test/browser_tests/a11y_conf.js' :
                  'test/browser_tests/conf.js';

  // Set default configuration command-line parameter.
  var params = [ configFile ];

  // If --sauce=false flag is added on the command-line.
  params = _addCommandLineFlag( params, commandLineParams, 'sauce' );

  // If --specs=path/to/js flag is added on the command-line,
  // pass the value to protractor to override the default specs to run.
  params = _addCommandLineFlag( params, commandLineParams, 'specs' );

  // If --windowSize=w,h flag is added on the command-line.
  params = _addCommandLineFlag( params, commandLineParams, 'windowSize' );

  // If --browserName=browser flag is added on the command-line.
  params = _addCommandLineFlag( params, commandLineParams, 'browserName' );

  // If --platform=os flag is added on the command-line.
  params = _addCommandLineFlag( params, commandLineParams, 'platform' );

  // If --version=number flag is added on the command-line.
  params = _addCommandLineFlag( params, commandLineParams, 'version' );

  // If the --suite=suite1,suite2 flag is added on the command-line
  // or, if not, if a suite is passed as part of the gulp task definition.
  var suiteParam = { suite: commandLineParams.suite || suite };
  params = _addCommandLineFlag( params, suiteParam, 'suite' );

  return params;
}
/**
 * Format and return parameters for Protractor binary.
 * @param {string} suite Name of specific suite or suites to run, if any.
 * @returns {Array} List of Protractor binary parameters as strings.
 */
Format and return parameters for Protractor binary.
@param {string} suite Name of specific suite or suites to run, if any.
@returns {Array} List of Protractor binary parameters as strings.
Format and return parameters for Protractor binary . @param { string } suite Name of specific suite or suites to run if any . @returns { Array } List of Protractor binary parameters as strings .
function _getProtractorParams( suite ) {
  var commandLineParams = minimist( process.argv.slice( 2 ) );
  var configFile = commandLineParams.a11y ?
                  'test/browser_tests/a11y_conf.js' :
                  'test/browser_tests/conf.js';
  var params = [ configFile ];
  params = _addCommandLineFlag( params, commandLineParams, 'sauce' );
  params = _addCommandLineFlag( params, commandLineParams, 'specs' );
  params = _addCommandLineFlag( params, commandLineParams, 'windowSize' );
  params = _addCommandLineFlag( params, commandLineParams, 'browserName' );
  params = _addCommandLineFlag( params, commandLineParams, 'platform' );
  params = _addCommandLineFlag( params, commandLineParams, 'version' );
  var suiteParam = { suite: commandLineParams.suite || suite };
  params = _addCommandLineFlag( params, suiteParam, 'suite' );
  return params;
}
function _getProtractorParams ( suite ) { var commandLineParams = minimist ( process . argv . slice ( 2 ) ) ; var configFile = commandLineParams . a11y ? 'test/browser_tests/a11y_conf.js' : 'test/browser_tests/conf.js' ; var params = [ configFile ] ; params = _addCommandLineFlag ( params , commandLineParams , 'sauce' ) ; params = _addCommandLineFlag ( params , commandLineParams , 'specs' ) ; params = _addCommandLineFlag ( params , commandLineParams , 'windowSize' ) ; params = _addCommandLineFlag ( params , commandLineParams , 'browserName' ) ; params = _addCommandLineFlag ( params , commandLineParams , 'platform' ) ; params = _addCommandLineFlag ( params , commandLineParams , 'version' ) ; var suiteParam = { suite : commandLineParams . suite || suite } ; params = _addCommandLineFlag ( params , suiteParam , 'suite' ) ; return params ; }
Format and return parameters for Protractor binary.
Format and return parameters for Protractor binary .
// Set default configuration command-line parameter. // If --sauce=false flag is added on the command-line. // If --specs=path/to/js flag is added on the command-line, // pass the value to protractor to override the default specs to run. // If --windowSize=w,h flag is added on the command-line. // If --browserName=browser flag is added on the command-line. // If --platform=os flag is added on the command-line. // If --version=number flag is added on the command-line. // If the --suite=suite1,suite2 flag is added on the command-line // or, if not, if a suite is passed as part of the gulp task definition.