theintern / intern

A next-generation code testing stack for JavaScript.
https://theintern.io/
Other
4.36k stars 309 forks source link

Run test on remote selenium server #231

Closed DimitryDushkin closed 10 years ago

DimitryDushkin commented 10 years ago

Hi!

I'm trying to setup configuration with own remote selenium server:

define({    
    environments: [ { browserName: 'phantomjs'  }],

    maxConcurrency: 3,

    tunnel: 'Tunnel',

    tunnelOptions: {
        hostname: 'selenium.myserver.com',
        port: '4444',
        verbose: true
    },

    functionalSuites: [ 'tests/intern/1.js' ]

});

And I get this error:

$ intern-runner config=tests/intern.js
Listening on 0.0.0.0:9000
Starting tunnel...
TypeError: Arguments to path.join must be strings
  at <path.js:360:15>
  at Array.filter  <native>
  at Object.exports.join  <path.js:358:36>
  at Tunnel.isDownloaded  <node_modules/intern/node_modules/digdug/Tunnel.js:286:29>
  at Tunnel.util.mixin.download  <node_modules/intern/node_modules/digdug/Tunnel.js:304:29>
  at Tunnel.util.mixin.start  <node_modules/intern/node_modules/digdug/Tunnel.js:486:5>
  at <node_modules/intern/runner.js:246:12>
  at execModule  <node_modules/intern/node_modules/dojo/dojo.js:515:54>
  at <node_modules/intern/node_modules/dojo/dojo.js:582:7>
  at guardCheckComplete  <node_modules/intern/node_modules/dojo/dojo.js:566:4>

Have no idea what's wrong.(

Everything is okay, if I use local selenium server.

DimitryDushkin commented 10 years ago

Seems like there is no way to work with own selenium?

DimitryDushkin commented 10 years ago

I figured it out. Just use tunnel: 'NullTunnel' and do not forget to set proper proxyUrl.