Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chimpy doesn't appear to support Sauce Connect (which is required for testing non-public apps via Sauce Labs) #132

Open
dkoo761 opened this issue Oct 10, 2018 · 0 comments

Comments

@dkoo761
Copy link

dkoo761 commented Oct 10, 2018

I was able to get Chimpy to connect to Sauce Labs with host=ondemand.saucelabs.com and port=80 and run tests. However, since the application I'm testing is not publicly available (which I'm assuming is the normal use case since it's a little late to test after deploying), I need to use the Sauce Connect proxy/tunnel so that Sauce Labs can reach our internal network to test the app.

The problem is that using Sauce Connect requires setting host=localhost and port=4445 in Chimpy config however Chimpy requires host=ondemand.saucelabs.com in order to use Sauce Labs, otherwise the code in src/lib/session-factory.js will not create a SauceLabsSessionManager.

I've tried changing that code in src/lib/session-factory.js so that it creates a SauceLabsSessionManager for host=localhost and port=4445, but it appears that the issue is more complex than this since I see my local Chrome browser pop up (which should no happen if using Sauce Labs) long before the code in session-factory.js is even run and the tests are still failing with a browser screenshot showing an empty page upon timeout.

Has anyone else been able to get Chimpy working with Sauce Connect tunnel? Is there some magic command/config param to tell Chimpy to use the tunnel? :)

PS. I've created a simple test that only uses only Webdriver.io + Sauce Connect + my localhost Meteor app (ie. no Chimp) and was able to get the test working. So I know that there's no networking issues, etc preventing the tests from running.

  • Chimp version: 0.51.1
  • Node.js: 6.11.4
  • Java: 1.8.0_66
  • Operation system: Darwin Kernel Version 17.7.0: Thu Jun 21 22:53:14 PDT 2018; root:xnu-4570.71.2~1/RELEASE_X86_64

Join our Slack xolv.io/community #chimp channel, where you can find help and help others.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant