WebDriverManager.chromedriver().version('2.35').setup()sauceLabs {
browsers {
create('internet explorer') {
capabilities platform: 'Windows 7', browserVersion: '11'
}
task {
}
account {
def username = System.getenv('SAUCE_USERNAME')
def accessKey = System.getenv('SAUCE_ACCESS_KEY')
}
}
}baseUrl = 'https://www.domain.com'
reportsDir = 'build/reports/tests/geb'
def sauceLabsBrowser = System.getProperty('geb.saucelabs.browser')
if (sauceLabsBrowser) {
println 'Got a SauceLabs browser'
driver = {
def username = System.getenv('SAUCE_USERNAME')
assert username
def saucelabsKey = System.getenv('SAUCE_ACCESS_KEY')
assert saucelabsKey
new SauceLabsDriverFactory().create(sauceLabsBrowser, username, saucelabsKey)
}
} else {
println 'Attempting to get a local webdriver'
// WebDriverManager.chromedriver().version('2.35').setup()
}tests.TestClass > classMethod FAILED
java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.chrome.driver system property; for more information, see https://github.com/SeleniumHQ/selenium/wiki/ChromeDriver. The latest version can be downloaded from http://chromedriver.storage.googleapis.com/index.html
at com.google.common.base.Preconditions.checkState(Preconditions.java:847)
at org.openqa.selenium.remote.service.DriverService.findExecutable(DriverService.java:134)
at org.openqa.selenium.chrome.ChromeDriverService.access$000(ChromeDriverService.java:35)
at org.openqa.selenium.chrome.ChromeDriverService$Builder.findDefaultExecutable(ChromeDriverService.java:159)
at org.openqa.selenium.remote.service.DriverService$Builder.build(DriverService.java:355)
at org.openqa.selenium.chrome.ChromeDriverService.createDefaultService(ChromeDriverService.java:94)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:123)
at geb.driver.NameBasedDriverFactory.getDriver(NameBasedDriverFactory.groovy:44)
at geb.driver.CachingDriverFactory.getDriver_closure4(CachingDriverFactory.groovy:57)
at geb.driver.CachingDriverFactory.getDriver_closure4(CachingDriverFactory.groovy)
at geb.driver.CachingDriverFactory$SimpleCache.get(CachingDriverFactory.groovy:81)
at geb.driver.CachingDriverFactory.getDriver(CachingDriverFactory.groovy:56)
at geb.Configuration.createDriver(Configuration.groovy:675)
at geb.Configuration.getDriver(Configuration.groovy:353)
at geb.Browser.getDriver(Browser.groovy:160)
at geb.navigator.factory.BrowserBackedNavigatorFactory.<init>(BrowserBackedNavigatorFactory.groovy:31)
at geb.Configuration.createNavigatorFactory(Configuration.groovy:413)
at geb.Browser.createNavigatorFactory(Browser.groovy:982)
at geb.Browser.getNavigatorFactory(Browser.groovy:170)
at geb.Page.init(Page.groovy:140)
at geb.Browser.initialisePage(Browser.groovy:1116)
at geb.Browser.createPage(Browser.groovy:829)
at geb.Browser.to(Browser.groovy:537)
at geb.Browser.to(Browser.groovy:526)
at geb.spock.GebSpec.methodMissing(GebSpec.groovy:60)
at login.LoginTrait$Trait$Helper.logIn(LoginTrait.groovy:7)
at tests.TestClass.setupSpec(TestClass.groovy:8)--
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 geb-user+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/7545c8f8-e510-4065-8d3c-7c29b67304b0%40googlegroups.com.
./gradlew clean testTaskNametask testTaskName(type: Test) {
filter {
includeTestsMatching 'stufftotest.*'
}
}To unsubscribe from this group and stop receiving emails from it, send an email to geb-...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to geb-user+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/b70f3fe1-acd7-4317-8df6-c74f91d77270%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/b70f3fe1-acd7-4317-8df6-c74f91d77270%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to geb-user+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/21fa1c21-3185-4a12-ab6e-cebc799bf5c1%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/21fa1c21-3185-4a12-ab6e-cebc799bf5c1%40googlegroups.com.
Caused by: groovy.lang.MissingPropertyException: Could not set unknown property 'username' for object of type geb.gradle.cloud.BrowserSpec.
account {
username = System.getenv(SauceAccount.USER_ENV_VAR)
accessKey = System.getenv(SauceAccount.ACCESS_KEY_ENV_VAR)
}def sauceLabsBrowser = System.getProperty('geb.saucelabs.browser')
if (sauceLabsBrowser) {
driver = {
def username = System.getenv("GEB_SAUCE_LABS_USER")
assert username
def accessKey = System.getenv("GEB_SAUCE_LABS_ACCESS_PASSWORD")
assert accessKey
new SauceLabsDriverFactory().create(sauceLabsBrowser, username, accessKey)
}
} else {
System.setProperty('webdriver.chrome.driver', 'src/test/resources/chromedriver')
driver = { new ChromeDriver() }
}To unsubscribe from this group and stop receiving emails from it, send an email to geb-user+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/ea68213d-cd16-4fce-b750-626dc9413020%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/ea68213d-cd16-4fce-b750-626dc9413020%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to geb-user+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/8ba12b87-571b-4e65-a317-35c2ee010c5a%40googlegroups.com.
geb.driver.DriverCreationException: failed to create driver from callback 'script15719444756301696857021$_run_closure2@3a13610b'
at geb.driver.CallbackDriverFactory.getDriver(CallbackDriverFactory.groovy:35)
at geb.driver.CachingDriverFactory.getDriver_closure4(CachingDriverFactory.groovy:57)
at geb.driver.CachingDriverFactory.getDriver_closure4(CachingDriverFactory.groovy)
at geb.driver.CachingDriverFactory$SimpleCache.get(CachingDriverFactory.groovy:81)
at geb.driver.CachingDriverFactory.getDriver(CachingDriverFactory.groovy:56)
at geb.Configuration.createDriver(Configuration.groovy:675)
at geb.Configuration.getDriver(Configuration.groovy:353)
at geb.Browser.getDriver(Browser.groovy:160)
at geb.navigator.factory.BrowserBackedNavigatorFactory.<init>(BrowserBackedNavigatorFactory.groovy:31)
at geb.Configuration.createNavigatorFactory(Configuration.groovy:413)
at geb.Browser.createNavigatorFactory(Browser.groovy:982)
at geb.Browser.getNavigatorFactory(Browser.groovy:170)
at geb.Page.init(Page.groovy:140)
at geb.Browser.initialisePage(Browser.groovy:1116)
at geb.Browser.createPage(Browser.groovy:829)
at geb.Browser.to(Browser.groovy:537)
at geb.Browser.to(Browser.groovy:526)
at geb.spock.GebSpec.methodMissing(GebSpec.groovy:60)
at login.LoginTrait$Trait$Helper.logIn(LoginTrait.groovy:7)
at testpackage.TestClass.setupSpec(TestClass.groovy:8)
Caused by:
java.lang.reflect.InvocationTargetException
at geb.driver.CloudDriverFactory.create(CloudDriverFactory.groovy:51)
at script15719444756301696857021.run_closure2(script15719444756301696857021.groovy:30)
at script15719444756301696857021.run_closure2(script15719444756301696857021.groovy)
at geb.driver.CallbackDriverFactory.getDriver(CallbackDriverFactory.groovy:29)
... 19 more
Caused by:
org.openqa.selenium.WebDriverException: Unable to parse remote response: Misconfigured -- Sauce Labs Authentication Error.
You used username 'None' and access key 'None' to authenticate, which are not valid Sauce Labs credentials.sauceLabs {
useTunnel = false
browsers {
create('internet explorer') {
capabilities platform: 'Windows 7', browserVersion: '11'
}
}
task {
if (testSuite == 'specificTest') {
filter {
includeTestsMatching 'testpackage.*'
}
}
}
account {
username = System.getenv(SauceAccount.USER_ENV_VAR)
println 'In build.gradle, Sauce username is ' + username
accessKey = System.getenv(SauceAccount.ACCESS_KEY_ENV_VAR)
}
connect {
additionalOptions = ['--proxy', 'company.com:443/wd/hub']
}
}To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/8ba12b87-571b-4e65-a317-35c2ee010c5a%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to geb-user+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/10691e84-4368-4661-b9be-e374f0fbfd87%40googlegroups.com.
import geb.driver.SauceLabsDriverFactory
import org.openqa.selenium.Platform
import org.openqa.selenium.chrome.ChromeDriver
import org.openqa.selenium.remote.BrowserType
geb.saucelabs.browser.browserName=BrowserType.IE
geb.saucelabs.browser.platform=Platform.WINDOWS
geb.saucelabs.browser.version=11
baseUrl = 'https://company.com'
reportsDir = 'build/reports/tests/geb'
waiting {
timeout = 15
retryInterval = 0.5
}
def sauceLabsBrowser = System.getProperty('geb.saucelabs.browser')
if (sauceLabsBrowser) {
driver = {
def username = System.getenv("GEB_SAUCE_LABS_USER")
assert username
println 'In config, Sauce username is ' + username
def accessKey = System.getenv("GEB_SAUCE_LABS_ACCESS_PASSWORD")
assert accessKey
new SauceLabsDriverFactory().create(sauceLabsBrowser, username, accessKey)
}
} else {
System.setProperty('webdriver.chrome.driver', 'src/test/resources/chromedriver')
driver = { new ChromeDriver() }
}To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/10691e84-4368-4661-b9be-e374f0fbfd87%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to geb-user+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/041a1079-b908-4416-bac7-5ed9e306f090%40googlegroups.com.
testCompile 'org.seleniumhq.selenium:selenium-chrome-driver:3.141.59'
testCompile 'org.seleniumhq.selenium:selenium-support:3.141.59'To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/041a1079-b908-4416-bac7-5ed9e306f090%40googlegroups.com.
org.openqa.selenium.json.JsonException: Unable to determine type from: M. Last 1 characters read: M
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
System info: host: 'server', ip: '1.1.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '3.10.0-957.21.3.el7.x86_64', java.version: '1.8.0_212'const sauceConf = {
user: process.env.SAUCE_USERNAME,
key: process.env.SAUCE_ACCESS_KEY,
hostname: 'test.company.com',
path: '/wd/hub',
protocol: 'https',
port: 443,
specs: [
'./tests/business-controls/*/*.js'
],
maxInstances: 14,
capabilities: [
{
maxInstances: 5,
browserName: 'internet explorer',
parentTunnel: 'company',
tunnelIdentifier: 'company-tunnel',
}
],
logLevel: 'warn',
waitforTimeout: 10000,
connectionRetryCount: 5,
services: ['sauce']
};> Task :openSauceTunnelInBackground
Task ':openSauceTunnelInBackground' is not up-to-date because:
Task has not declared any outputs despite executing actions.
> Task :openSauceTunnelInBackground FAILED
:openSauceTunnelInBackground (Thread[Execution worker for ':' Thread 4,5,main]) completed. Took 3 mins 0.163 secs.
:closeSauceTunnel (Thread[Execution worker for ':' Thread 4,5,main]) started.
> Task :closeSauceTunnel
Task ':closeSauceTunnel' is not up-to-date because:
Task has not declared any outputs despite executing actions.
disconnecting tunnel
:closeSauceTunnel (Thread[Execution worker for ':' Thread 4,5,main]) completed. Took 0.003 secs.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':openSauceTunnelInBackground'.
> Timeout waiting for tunnel to open
--
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 geb-user+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/d728439c-e156-48b5-9dd9-c8dc8f05ece1%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to geb-...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to geb-user+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/6bdcfc1d-ede4-48bb-ac64-12b6e656e1f0%40googlegroups.com.
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 geb-user+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/665e3665-1fcf-4f51-82f3-afbdf0f5b88e%40googlegroups.com.
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
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 <sparta...@gmail.com> 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 geb-...@googlegroups.com.
[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 :allSauceLabsTestsBUILD SUCCESSFUL in 43s7 actionable tasks: 7 executed
new SauceLabsDriverFactory().create(sauceLabsBrowser, username, accessKey)
new SauceLabsDriverFactory().create(sauceLabsBrowser, "", "", [username: username, accessKey: accessKey])
To unsubscribe from this group and stop receiving emails from it, send an email to geb-user+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/d8e0dc21-c067-45c1-8a11-a0986fdfe475%40googlegroups.com.
capabilities: [
{
maxInstances: 5,
browserName: 'internet explorer',
parentTunnel: 'company_admin',
tunnelIdentifier: 'company-ha-tunnel',
}
],browsers {
create('internet explorer') {
capabilities(
browserName: 'Internet Explorer',
platform: 'Windows 7',
version: '11',
parentTunnel: 'company_admin',
tunnelIdentifier: 'company-ha-tunnel'
)
}
}To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/d8e0dc21-c067-45c1-8a11-a0986fdfe475%40googlegroups.com.
test.TestClass > classMethod FAILED
geb.driver.DriverCreationException: failed to create driver from callback 'script15726565316811155837962$_run_closure2@65de3495'
at geb.driver.CallbackDriverFactory.getDriver(CallbackDriverFactory.groovy:35)
at geb.driver.CachingDriverFactory.getDriver_closure4(CachingDriverFactory.groovy:57)
at geb.driver.CachingDriverFactory.getDriver_closure4(CachingDriverFactory.groovy)
at geb.driver.CachingDriverFactory$SimpleCache.get(CachingDriverFactory.groovy:81)
at geb.driver.CachingDriverFactory.getDriver(CachingDriverFactory.groovy:56)
at geb.Configuration.createDriver(Configuration.groovy:675)
at geb.Configuration.getDriver(Configuration.groovy:353)
at geb.Browser.getDriver(Browser.groovy:160)
at geb.navigator.factory.BrowserBackedNavigatorFactory.<init>(BrowserBackedNavigatorFactory.groovy:31)
at geb.Configuration.createNavigatorFactory(Configuration.groovy:413)
at geb.Browser.createNavigatorFactory(Browser.groovy:982)
at geb.Browser.getNavigatorFactory(Browser.groovy:170)
at geb.Page.init(Page.groovy:140)
at geb.Browser.initialisePage(Browser.groovy:1116)
at geb.Browser.createPage(Browser.groovy:829)
at geb.Browser.to(Browser.groovy:537)
at geb.Browser.to(Browser.groovy:526)
at geb.spock.GebSpec.methodMissing(GebSpec.groovy:60)
at login.LoginTrait$Trait$Helper.logIn(LoginTrait.groovy:7)
at test.TestClass.setupSpec(TestClass.groovy:8)
Caused by:
java.lang.reflect.InvocationTargetException
at geb.driver.CloudDriverFactory.create(CloudDriverFactory.groovy:51)
at script15726565316811155837962.run_closure2(script15726565316811155837962.groovy:20)
at script15726565316811155837962.run_closure2(script15726565316811155837962.groovy)
at geb.driver.CallbackDriverFactory.getDriver(CallbackDriverFactory.groovy:29)
... 19 more
Caused by:
org.openqa.selenium.remote.UnreachableBrowserException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
System info: host: 'server', ip: '1.2.3.4', os.name: 'Linux', os.arch: 'amd64', os.version: '3.10.0-957.21.3.el7.x86_64', java.version: '1.8.0_212'
Driver info: driver.version: RemoteWebDriver
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:573)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:213)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:131)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:144)
... 23 more
Caused by:
java.net.ProtocolException: Unexpected status line:
at okhttp3.internal.http.StatusLine.parse(StatusLine.java:69)
at okhttp3.internal.http1.Http1Codec.readResponseHeaders(Http1Codec.java:189)
at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.java:88)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at org.openqa.selenium.remote.internal.OkHttpClient$Factory$1.lambda$createClient$1(OkHttpClient.java:152)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:45)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:93)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:126)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:200)
at okhttp3.RealCall.execute(RealCall.java:77)
at org.openqa.selenium.remote.internal.OkHttpClient.execute(OkHttpClient.java:103)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:105)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:74)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:136)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)
... 26 more
at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.java<s
--
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 geb-user+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/531a5955-4be3-4f6f-ac60-cb66b953aa83%40googlegroups.com.
create('internet explorer') {
capabilities(
browserName: 'Internet Explorer',
platform: 'Windows 7',
version: '11',
parentTunnel: 'company_admin',
tunnelIdentifier: 'company-ha-tunnel',
username: System.getenv(SauceAccount.USER_ENV_VAR),
accessKey: System.getenv(SauceAccount.ACCESS_KEY_ENV_VAR)
)
}
I think the easiest way for now will be to extend SauceLabsDriverFactory and override assembleProviderUrl(). That url should probably use https anyway, I've created an issue to address that: https://github.com/geb/issues/issues/599.
On Mon, Nov 4, 2019 at 4:42 PM Ben Frey <sparta...@gmail.com> wrote:
I may have found what's interfering. I tried to log in to our proxy in my browser (e.g. http://sauceId:suaceKey@test.company.com:443/wd/hub) and got funky Unicode characters. The person helping out from within my company said I need to use HTTPS instead of HTTP. I tried that and got an error XML from our Layer7 appliance. Is there a way to change https://github.com/geb/geb/blob/v3.0.1/module/geb-core/src/main/groovy/geb/driver/SauceLabsDriverFactory.groovy#L28 so it can use HTTPS if requested?
To unsubscribe from this group and stop receiving emails from it, send an email to geb-...@googlegroups.com.
I think I got it working, at least locally (there's some problem with the GitLab runner in my project currently that I assume is unrelated). I extended SauceLabsDriverFactory, and I also had to pass the credentials in the capabilities method like this:create('internet explorer') {
capabilities(
browserName: 'Internet Explorer',
platform: 'Windows 7',
version: '11',
parentTunnel: 'company_admin',
tunnelIdentifier: 'company-ha-tunnel',
username: System.getenv(SauceAccount.USER_ENV_VAR),
accessKey: System.getenv(SauceAccount.ACCESS_KEY_ENV_VAR)
)
}The only hangup now is that each time I run it it creates a new tunnel under my username rather than using one of the existing tunnels. I think that's probably a better question for SauceLabs though, correct?
On Monday, November 4, 2019 at 2:32:59 PM UTC-6, Marcin Erdmann wrote:
I think the easiest way for now will be to extend SauceLabsDriverFactory and override assembleProviderUrl(). That url should probably use https anyway, I've created an issue to address that: https://github.com/geb/issues/issues/599.
On Mon, Nov 4, 2019 at 4:42 PM Ben Frey <sparta...@gmail.com> wrote:
I may have found what's interfering. I tried to log in to our proxy in my browser (e.g. http://sauceId:suac...@test.company.com:443/wd/hub) and got funky Unicode characters. The person helping out from within my company said I need to use HTTPS instead of HTTP. I tried that and got an error XML from our Layer7 appliance. Is there a way to change https://github.com/geb/geb/blob/v3.0.1/module/geb-core/src/main/groovy/geb/driver/SauceLabsDriverFactory.groovy#L28 so it can use HTTPS if requested?
To unsubscribe from this group and stop receiving emails from it, send an email to geb-user+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/f2b9da8c-6e70-47a7-b427-4507eefd00ae%40googlegroups.com.
Oh, I thought that was for if you don't want to use a tunnel at all. Sure enough, setting that doesn't create an extra tunnel in our SauceLabs instance. Thanks for all of your patience, I really appreciate it!
--
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 geb-user+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/59cbd606-6bdc-44b2-857a-01cd0d67f52c%40googlegroups.com.
Does that mean that we've finally arrived at a working solution? If that's the case then this is most likely the longest thread ending in success on this list. Like ever. :)
On Wed, Nov 6, 2019 at 10:22 PM Ben Frey <sparta...@gmail.com> wrote:
Oh, I thought that was for if you don't want to use a tunnel at all. Sure enough, setting that doesn't create an extra tunnel in our SauceLabs instance. Thanks for all of your patience, I really appreciate it!--
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 geb-...@googlegroups.com.