Hi,
I am trying to run a test using SauceLabs but it just hangs with no error. I am behind a corporate proxy and i my config is as follows:
// An example configuration file.
exports.config = {
// Do not start a Selenium Standalone sever - only run this using chrome.
//chromeOnly: true,
// chromeDriver: '../selenium/chromedriver',
seleniumAddress: 'http://127.0.0.1:4444/wd/hub',
sauceUser:'==',
sauceKey:'==',
// Capabilities to be passed to the webdriver instance.
capabilities: {
'browserName': 'chrome'
},
// Spec patterns are relative to the current working directly when
// protractor is called.
specs: ['../spece2e/*Test.js'],
onPrepare: function() {
require('../jasmine-reporters');
jasmine.getEnv().addReporter(new jasmine.JUnitXmlReporter('outputdir/', true, true));
},
// Options to be passed to Jasmine-node.
jasmineNodeOpts: {
showColors: true,
defaultTimeoutInterval: 30000
}
};
Just to add that without proxy the test runs fine with saucelabs.
Try the 'Avoid Selenium Proxy' parameter from this doc: https://saucelabs.com/docs/additional-config
In protractor, that would look like adding "avoid-proxy": true to the capabilities in your config.
@smtripathi99 You need to run Sauce Connect https://saucelabs.com/docs/connect first before starting your Protractor tests against the SauceLab remote server if you are behind a corporate proxy. It works for me.
I think @qidonna's solution should fix this. Closing.
If there is another problem with saucelabs and proxies, please open a new issue and include the error you are getting.
@smtripathi99 you might consider to removing your SL credentials from this thread.
@michalsi ,
Good catch, removed it from the initial question