Hi Ben, Thanks for providing the sample, it's very helpful. I checked it out and executed the following:
[erdi@mbp /tmp/geb-sauce-test (master *)]$ ./gradlew allSauceLabsTest --console plain > Task :compileJava NO-SOURCE > Task :compileGroovy NO-SOURCE > Task :processResources NO-SOURCE > Task :classes UP-TO-DATE > Task :unpackSauceConnect [DEBUG] Expanding: /private/tmp/geb-sauce-test/build/sauce-connect/sc-4.5.4-osx.zip into /private/tmp/geb-sauce-test/build/sauce-connect [DEBUG] expand complete > Task :openSauceTunnelInBackground > Task :compileTestJava NO-SOURCE > Task :compileTestGroovy > Task :processTestResources > Task :testClasses > Task :internetExplorerTest > Task :internetExplorerDecorateReports > Task :closeSauceTunnel > Task :allSauceLabsTests BUILD SUCCESSFUL in 43s 7 actionable tasks: 7 executed This is the test run from sauce labs: https://app.saucelabs.com/tests/d85c832db0a349f882a93476e9920e40 I then changed this line in GebConfig: new SauceLabsDriverFactory().create(sauceLabsBrowser, username, accessKey) to new SauceLabsDriverFactory().create(sauceLabsBrowser, "", "", [username: username, accessKey: accessKey]) And also got a success. All of this suggests to me that the problem is not in Geb or your code but it's in the environment in which you are running the tests. Something is clearly interfering with the requests that you are sending to SauceLabs. On Wed, Oct 30, 2019 at 2:07 AM Ben Frey <[email protected]> wrote: > Ok, I've got my minimum example: > https://github.com/spartanhooah/geb-sauce-test > > I did try the alternate method of creating the SauceLabsDriverFactory but > that resulted in these messages: > > sauce-connect: <timestamp> - Error in checkUpdate: couldn't connect to > https://saucelabs.com/versions.json: Get > https://saucelabs.com/versions.json: malformed HTTP response > "\x15\x03\x03\x00\x02\x02" > sauce-connect: <timestamp> - started scproxy on port 37318. > sauce-connect: <timestamp> - Please wait for 'you may start your tests' > to start your tests. > sauce-connect: <timestamp> - failed to check for existing tunnels > sauce-connect: <timestamp> - Sauce Connect could not establish a > connection > sauce-connect: <timestamp> - Please check your firewall and proxy settings > The command-line arguments for sc were > --user <me> --api-key **** --se-port 4445 --proxy test.company.com:443 > > > > On Monday, October 28, 2019 at 9:45:34 PM UTC, Marcin Erdmann wrote: >> >> A tunnel (if you are talking about a Sauce Labs tunnel) will not be >> needed because we won't be accessing anything specific to your company - >> gebish.org is accessible on the public Internet. Unless you are talking >> about some proxy that you are using which might potentially be stripping >> out the credentials from the url... (which are added like this: >> https://github.com/geb/geb/blob/master/module/geb-core/src/main/groovy/geb/driver/SauceLabsDriverFactory.groovy#L28). >> If that's the case then it also seems possible to authenticate via browser >> capabilities ( >> https://wiki.saucelabs.com/display/DOCS/Best+Practice%3A+Use+Environment+Variables+for+Authentication+Credentials >> and >> expand the full example). Maybe that will work in your setup... To try it >> out you'll need to change your config script from: >> >> new SauceLabsDriverFactory().create(sauceLabsBrowser, username, accessKey) >> >> to >> >> new SauceLabsDriverFactory().create(sauceLabsBrowser, "", "", [username: >> username, accessKey: accessKey]) >> >> >> On Mon, Oct 28, 2019 at 9:05 PM Ben Frey <[email protected]> wrote: >> >>> Oh, I see. I'll start working on that tomorrow, I hope. Although I'm >>> still not sure about the SauceLabs portion since it involves a tunnel >>> that's hosted by my company. Is that something I can mock out or otherwise >>> deal with? >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Geb User Mailing List" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/geb-user/665e3665-1fcf-4f51-82f3-afbdf0f5b88e%40googlegroups.com >>> <https://groups.google.com/d/msgid/geb-user/665e3665-1fcf-4f51-82f3-afbdf0f5b88e%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >> -- > You received this message because you are subscribed to the Google Groups > "Geb User Mailing List" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/geb-user/d8e0dc21-c067-45c1-8a11-a0986fdfe475%40googlegroups.com > <https://groups.google.com/d/msgid/geb-user/d8e0dc21-c067-45c1-8a11-a0986fdfe475%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Geb User Mailing List" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/CA%2B52dQRss8%2Bs_cNJCPuQQAn%2BWM5HgZaihueANugYCCVaStjsZQ%40mail.gmail.com.
