--
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+unsubscribe@googlegroups.com.
To post to this group, send email to geb-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/d0d6bad7-cb50-43b7-8191-7dd63cda43c9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Roland,The plugin has been introduced so that you don't have to manage opening and closing of the BrowserStack tunnel, define envs and use capabilities. There are also ways to customise what the plugin does, by for example not using the BrowserStackDriverFactory in your GebConfig.groovy or passing additional capabilities to its create() method.You will need to be more specific about what you mean by fitting geb-browserstack plugin into what you have. If all you're after is setting some chrome options and capabilities when running in BrowserStack then it is of course possible and I can provide an example of how to do it.Marcin
On Fri, Nov 3, 2017 at 12:36 PM, <medv...@gmail.com> wrote:
hi,how could I use the browserstack integration in geb?my current implementation for remotedrivers looks like this https://gist.github.com/rnemeth1980/ab0f707977862718ebeaa855102fd369."remoteChromeDockerTest --tests *.login.LoginTest" is my sample gradle task.Can I define environments like "remoteChromeDocker" and use capabilities?I do not see how I can fit the geb-browserstack plugin in there from here http://www.gebish.org/manual/current/#geb-browserstack-plugin.thank you very much,Roland
--
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 unsubscribe from this group and stop receiving emails from it, send an email to geb-user+unsubscribe@googlegroups.com.
To post to this group, send email to geb-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/30beb7c6-837b-4ff9-b4e0-5d1b2578139e%40googlegroups.com.
|
OS |
Browser |
|
Windows 10 (64-bit) |
EDGE |
|
Windows 8.1 (64-bit) |
Firefox |
|
Windows 7 (64-bit) |
IE11 |
|
macOS High Sierra |
Safari |
To unsubscribe from this group and stop receiving emails from it, send an email to geb-user+unsubscribe@googlegroups.com.
To post to this group, send email to geb-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/7b1fdbbe-b9cf-4b63-8a10-4c708026cf49%40googlegroups.com.
String baseUrl = System.getProperty("functional.tests.baseurl")
if(baseUrl) {
println ("functional.tests.baseurl -> $baseUrl")
}
application baseUrl
geb.error.NoBaseUrlDefinedException: There is no base URL configured and it was requested. Please see the Geb manual for different ways of managing the base URL (quick solution: you can set the 'geb.build.baseUrl' JVM system property)
browserStack {
String baseUrl = System.getProperty("functional.tests.baseurl")
if(baseUrl) {
println ("functional.tests.baseurl -> $baseUrl")
systemProperty "geb.build.baseUrl", baseUrl
}
application baseUrl
browsers {
* What went wrong:
A problem occurred evaluating root project 'functional-tests-...'.
> Could not find method systemProperty() for arguments [geb.build.baseUrl, https://www.....com/] on root project 'functional-tests-...'.To unsubscribe from this group and stop receiving emails from it, send an email to geb-user+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/b36ee623-25a8-4e55-87dd-f405a5a87241%40googlegroups.com.
browsers {
firefox {
capabilities os: "WINDOWS", os_version: "8.1"
}
edge {
capabilities os: "WINDOWS", os_version: "10"
}
safari {
capabilities os: "OS X", os_version: "High Sierra"
}
create("internet explorer") {
capabilities os: "WINDOWS", os_version: "7", browser_version: "11"
}
}
To unsubscribe from this group and stop receiving emails from it, send an email to geb-user+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/c41b10ad-52f3-4b16-838c-fcacfd4f8064%40googlegroups.com.
164: unexpected token: WINDOWS @ line 164, column 23.
platform: "WINDOWS", os_version: "8.1"
^169: Statement labels may not be used in build scripts.
In case you tried to configure a property named 'os_version', replace ':' with '=' or ' ', otherwise it will not have the desired effect.
@ line 169, column 25.
os_version: "10"
^To unsubscribe from this group and stop receiving emails from it, send an email to geb-user+unsubscribe@googlegroups.com.
To post to this group, send email to geb-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/cd24c0de-8886-427e-aa11-391ef535dfce%40googlegroups.com.
firefox_win8 {
capabilities platform: "WINDOWS", os_version: "8.1"
}
firefoxWin8Test --tests *Basic_Search_Test*
geb.driver.DriverCreationException: failed to create driver from callback 'script151299489270595963650$_run_closure2@397ecee3'
Caused by:
java.lang.reflect.InvocationTargetException
Caused by:
org.openqa.selenium.WebDriverException: Error : Platform and OS Version cannot be passed together. (WARNING: The server did not provide any stacktrace information)
edge_win10 {
capabilities platform: "WINDOWS", os_version: "10"
}
edgeWin10Test --tests *Basic_Search_Test*
geb.driver.DriverCreationException: failed to create driver from callback 'script151299565014195963650$_run_closure2@19b0ec6c'
Caused by:
java.lang.reflect.InvocationTargetException
Caused by:
org.openqa.selenium.WebDriverException: Error : Platform and OS Version cannot be passed together. (WARNING: The server did not provide any stacktrace information)Proxy proxy = new Proxy();
proxy.setHttpProxy("proxy-123.de");
proxy.setSslProxy("proxy-123.de");
proxy.setNoProxy("127.0.0.1,localhost,selenium");
caps.setCapability(CapabilityType.PROXY, proxy);
browserStack {
account {
proxyHost = '127.0.0.1'
proxyPort = '8080'
proxyUser = 'user'
proxyPass = 'secret'
}
}To unsubscribe from this group and stop receiving emails from it, send an email to geb-user+unsubscribe@googlegroups.com.
To post to this group, send email to geb-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/509802e1-37ae-439b-bbc3-27686142bf3a%40googlegroups.com.