node-seleniumgrid icon indicating copy to clipboard operation
node-seleniumgrid copied to clipboard

node-seleniumgrid with tunnel to TestingBot?

Open DV3D opened this issue 10 years ago • 5 comments

Hi @testingbot,

I love how node-seleniumgrid supports connecting my own nodes to the TestingBot grid. Now I would like to test a local site. How can I configure node-seleniumgrid to use tunnelling?

I tried first starting the node-seleniumgrid and then start the tunnel, but the tunnel .jar seems to always setup a separate grid. (which kinda makes sense)

When I try the other way around: first setting up the testing-bot tunnel, and try to connect my nodes to that, it gives me a '403 forbidden'. (which also makes sense I guess)

Any ideas how I can test local pages, on a grid with both TestingBot and local nodes connected?

Thanks! @DV3D

DV3D avatar Feb 21 '16 12:02 DV3D

Hi @DV3D

The problem is that our tunnel always connects to hub.testingbot.com https://github.com/testingbot/Testingbot-Tunnel/blob/b33cda4cc28e7c5282a0352cafdebf4546ea67ab/src/main/java/ssh/SSHTunnel.java#L76

So because of this, it can not be used by node-seleniumgrid - we'll add an option to our tunnel where you can overwrite the hub.testingbot.com to your own address.

Then you can run tests through the tunnel to node-seleniumgrid, which can then either run the tests on the grid or proxy it to TestingBot

testingbot avatar Feb 24 '16 13:02 testingbot

Sounds great! Where can I follow the progress on this? / When can I use it? :P

DV3D avatar Feb 25 '16 14:02 DV3D

Any update on this?

DV3D avatar Mar 18 '16 08:03 DV3D

Hi @DV3D

We have not yet added an option for this, if you'd like to try this, please try adjusting https://github.com/testingbot/Testingbot-Tunnel/blob/b33cda4cc28e7c5282a0352cafdebf4546ea67ab/src/main/java/ssh/SSHTunnel.java#L76 modifying hub.testingbot.com to localhost

and then building the tunnel: mvn assembly:assembly

testingbot avatar Mar 22 '16 18:03 testingbot

We've added an option for this in our newest tunnel version (1.19) where you can specify a hubhost:

testingbot/testingbot-tunnel@9ea58cb1c8804be7d964791acfc90ec8a2635197

testingbot avatar May 20 '16 13:05 testingbot