Skip to content

Update to 0.5.17 throws error using runner with parallel runs #239

Closed
@james-huston

Description

Yesterday when working with 0.5.11 I could run this command and all my tests would work:

node ./node_modules/.bin/nightwatch -e sl_chrome,sl_firefox

This morning after my CI environment updated to 0.5.17 I am now getting the following error. Rolling back to 0.5.11 fixes it.

ERROR There was an error while starting the test runner:

TypeError: Cannot read property 'globals' of null
at Object.CliRunner.startSelenium (/Users/jhuston/libs/articulate/articulate-nightwatch/node_modules/nightwatch/bin/_clirunner.js:210:42)
at Object.CliRunner.setupParallelMode (/Users/jhuston/libs/articulate/articulate-nightwatch/node_modules/nightwatch/bin/_clirunner.js:416:10)
at Object.CliRunner.parseTestSettings (/Users/jhuston/libs/articulate/articulate-nightwatch/node_modules/nightwatch/bin/_clirunner.js:309:12)
at Object.CliRunner.init (/Users/jhuston/libs/articulate/articulate-nightwatch/node_modules/nightwatch/bin/_clirunner.js:25:8)
at Object. (/Users/jhuston/libs/articulate/articulate-nightwatch/node_modules/nightwatch/bin/runner.js:91:12)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)

My config looks like this:

{
"src_folders" : ["tests"],
"output_folder" : "reports",
"custom_commands_path" : "",
"custom_assertions_path" : "",

"selenium" : {
"start_process" : true,
"server_path" : "bin/selenium-server-standalone-2.42.2.jar",
"log_path" : "logs/",
"host" : "127.0.0.1",
"port" : 4444,
"cli_args": {
"webdriver.chrome.driver": "./bin/chromedriver"
}
},

"test_settings" : {
"default" : {
"launch_url" : "http://localhost",
"selenium_port" : 4444,
"selenium_host" : "localhost",
"silent": true,
"firefox_profile": false,
"screenshots" : {
"enabled" : false,
"path" : ""
},
"desiredCapabilities": {
"browserName": "chrome",
"javascriptEnabled": true,
"acceptSslCerts": true
}
},

"firefox" : {
  "launch_url" : "http://localhost",
  "selenium_port"  : 4444,
  "selenium_host"  : "localhost",
  "silent": true,
  "firefox_profile": false,
  "screenshots" : {
    "enabled" : false,
    "path" : ""
  },
  "desiredCapabilities": {
    "browserName": "firefox",
    "javascriptEnabled": true,
    "acceptSslCerts": true
  }
},

"saucelabs" : {
  "selenium_host" : "ondemand.saucelabs.com",
  "selenium_port" : 80,
  "username" : "removed",
  "access_key" : "removed",
  "use_ssl" : false,
  "silent" : true,
  "output" : true,
  "screenshots" : {
    "enabled" : false,
    "path" : ""
  },
  "desiredCapabilities": {
    "name" : "Articulate",
    "browserName": "${BROWSER}"
  },
  "selenium" : {
    "start_process" : false
  }
},

"sl_chrome" : {
  "selenium_host" : "ondemand.saucelabs.com",
  "selenium_port" : 80,
  "username" : "removed",
  "access_key" : "removed",
  "use_ssl" : false,
  "silent" : true,
  "output" : true,
  "screenshots" : {
    "enabled" : false,
    "path" : ""
  },
  "desiredCapabilities": {
    "name" : "Articulate",
    "browserName": "chrome",
    "platform": "Windows 7",
    "version": "35"
  },
  "selenium" : {
    "start_process" : false
  }
},

"sl_firefox" : {
  "selenium_host" : "ondemand.saucelabs.com",
  "selenium_port" : 80,
  "username" : "removed",
  "access_key" : "removed",
  "use_ssl" : false,
  "silent" : true,
  "output" : true,
  "screenshots" : {
    "enabled" : false,
    "path" : ""
  },
  "desiredCapabilities": {
    "name" : "Articulate",
    "browserName": "firefox",
    "platform": "Windows 7",
    "version": "31"
  },
  "selenium" : {
    "start_process" : false
  }
},

"sl_ie_8" : {
  "selenium_host" : "ondemand.saucelabs.com",
  "selenium_port" : 80,
  "username" : "removed",
  "access_key" : "removed",
  "use_ssl" : false,
  "silent" : true,
  "output" : true,
  "screenshots" : {
    "enabled" : false,
    "path" : ""
  },
  "desiredCapabilities": {
    "name" : "Articulate",
    "browserName": "internet explorer",
    "version": "8",
    "platform": "Windows 7"
  },
  "selenium" : {
    "start_process" : false
  }
},

"sl_ie_9" : {
  "selenium_host" : "ondemand.saucelabs.com",
  "selenium_port" : 80,
  "username" : "removed",
  "access_key" : "removed",
  "use_ssl" : false,
  "silent" : true,
  "output" : true,
  "screenshots" : {
    "enabled" : false,
    "path" : ""
  },
  "desiredCapabilities": {
    "name" : "Articulate",
    "browserName": "internet explorer",
    "version": "9",
    "platform": "Windows 7"
  },
  "selenium" : {
    "start_process" : false
  }
},

"sl_ie_10" : {
  "selenium_host" : "ondemand.saucelabs.com",
  "selenium_port" : 80,
  "username" : "removed",
  "access_key" : "removed",
  "use_ssl" : false,
  "silent" : true,
  "output" : true,
  "screenshots" : {
    "enabled" : false,
    "path" : ""
  },
  "desiredCapabilities": {
    "name" : "Articulate",
    "browserName": "internet explorer",
    "version": "10",
    "platform": "Windows 7"
  },
  "selenium" : {
    "start_process" : false
  }
}

}
}

Is there something I need to update in my config or is there something broken in the latest version of the code?

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions