kgress / scaffold

A Java based Selenium WebDriver abstraction
MIT License
4 stars 7 forks source link

"SauceConnect" error appears regardless of root cause #21

Closed mmerrell closed 5 years ago

mmerrell commented 5 years ago

Bug

Whenever you run into a config issue with Sauce tests, the following error appears: java.lang.RuntimeException: io.github.kgress.scaffold.exception.WebDriverContextException: Error initializing remote session against SAUCE. Check to ensure your Sauce TunnelIdentifier has been initialized prior to running your tests.

Expected

This error message appears when the username/access key is wrong, not just when the tunnel is down.

Repro

Add steps to reproduce the behavior. E.G:

  1. Change your 'desired-capabilities.sauce.access-key' property to be something invalid
  2. Run a test
  3. You will see the error message about the SauceConnect tunnel
kgress commented 5 years ago

This is being fixed in issue #20