how to pass baseUrl in the geb-saucelabs plugin?

111 views
Skip to first unread message

medv...@gmail.com

unread,
Dec 13, 2017, 11:48:03 AM12/13/17
to Geb User Mailing List
Hi Marcin,

as I understand the usage of the geb-saucelabs plugin should be similar to the geb-browserstack plugin.

The baseUrl should be passed the same way?

application baseUrl

I get an error for this:

Could not find method application() for arguments [https://www.123.com/] on root project 'functional-tests-123'.

Could you please help me?

Thank you very much,
Roland

Marcin Erdmann

unread,
Dec 14, 2017, 4:08:18 AM12/14/17
to Geb User Mailing List
Roland,

You seem to be mixing up concepts. Base url is a built in Geb concept and has nothing to do with BrowserStack and SauceLabs Gradle plugins. As per the manual in http://gebish.org/manual/current/#geb-browserstack-plugin the application() method available inside of browserStack {} block allows you to:

> Specify which urls the BrowserStack Tunnel should be able to access. Multiple applications can be specified. If no applications are specified, the tunnel will not be restricted to particular URLs.

Note that there is no such method in http://gebish.org/manual/current/#geb-saucelabs-plugin for the `sauceLabs {}` block.

Secondly, please recall from the previous thread that I showed you how to configure the base url for test tasks generated by the BrowserStack plugin:

browserStack {
    task {
        systemProperty "geb.build.baseUrl", baseUrl
    }
}

The same can be achieved in pretty much the same manner for the SauceLabs plugin:

sauceLabs {
    task {
        systemProperty "geb.build.baseUrl", baseUrl
    }
}


--
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/a794e908-9226-4698-b668-27347504036b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

medv...@gmail.com

unread,
Dec 15, 2017, 6:31:01 AM12/15/17
to Geb User Mailing List
Hi Marcin,

thank you very much for the clarification.

Now I am able to run tests on SauceLabs.

SauceLabs is way better than BrowserStack as there is a Mac/Safari bug (https://forums.developer.apple.com/thread/75417) and some screenshots are just white/blank on BrowserStack for some OS/Browser combinations.

Only tests on EDGE I cannot not run:

edge {
 capabilities platform
: "Windows 10", version: "15.15063"
}

is giving me this error:

Caused by:
        java
.lang.reflect.InvocationTargetException


           
Caused by:
            org
.openqa.selenium.WebDriverException: Unable to parse remote response: Unsupported OS/browser/version/device combo: OS: 'Windows 10', Browser: 'edge', Version: '15.15063.', Device: 'unspecified'

For "Version" there is always a dot at the end of the version number. 

How can this be fixed?

"Latest" is not accepted.

I am using: 
sauceConnect "com.saucelabs:ci-sauce:1.131"

Thank you very much!

Best regards,
Roland
To unsubscribe from this group and stop receiving emails from it, send an email to geb-user+u...@googlegroups.com.

Marcin Erdmann

unread,
Dec 16, 2017, 10:38:23 AM12/16/17
to Geb User Mailing List
The dot at the end of version number is not added by Geb. If that was the case then you would get the same problem with all browsers and not just Edge. I would suggest contacting SauceLabs support about this or trying to specify only the major version which they list as an option at https://wiki.saucelabs.com/display/DOCS/Test+Configuration+Options#TestConfigurationOptions-BrowserVersion:

edge {
  capabilities platform: "Windows 10", version: "15"
}
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.

medv...@gmail.com

unread,
Dec 23, 2017, 8:50:51 AM12/23/17
to Geb User Mailing List
Thank you Marcin for all your support! I wish you Merry Christmas!
Reply all
Reply to author
Forward
0 new messages