kgress / scaffold

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

Scaffold shows a sauce labs api error when not running sauce config #39

Open kgress opened 5 years ago

kgress commented 5 years ago

Bug

When running a configuration that is not sauce and with the SauceExtension, an error will always display.

ERROR!
java.lang.Exception: Error initializing the Sauce Labs API: Please check your configuration.

Current workaround for this is to set the root logs to ERROR.

Expected

This error should not appear when a user is not running a sauce configuration. I believe the error is due to credentials not being passed in for the SauceExtension to send to the API.

The error currently does not exit out of automation. More of an annoyance.

Repro

Add steps to reproduce the behavior. E.G:

  1. Create a new run configuration for a local run
  2. Add the SauceExtension to base test
  3. Run a test
  4. Observe the error in the console