Se Interpreter with Sauce Labs

483 views
Skip to first unread message

dennis....@vertive.com

unread,
Dec 24, 2012, 1:55:13 PM12/24/12
to se-bu...@googlegroups.com
I am trying to use Se Interpreter to run the json scripts generated by Se Builder on Sauce Labs. Everything seems to work as expected except I cannot set the platform. For example:

java -jar SeInterpreter.jar ../tests/holiday.json --driver=Remote --driver.browserName=firefox --driver.platformName=mac --driver.url=http://<username>:<access-key>@ondemand.saucelabs.com/wd/hub/

It will run successfully but the platform will show up as "Windows 2003" on Sauce. This also happens if I change the platform to "xp", "vista", "windows", "linux" or exclude the platform altogether. A possibly related issue is I can't use "safari" with the "windows" platform. For example: 

java -jar SeInterpreter.jar ../tests/holiday.json --driver=Remote --driver.browserName=safari --driver.platformName=xp --driver.url=http://<username>:<access-key>@ondemand.saucelabs.com/wd/hub/

Produces the error:

INFO: ../tests/holiday.json failed
java.lang.RuntimeException: Test run failed: unable to create driver.
at com.sebuilder.interpreter.TestRun.next(TestRun.java:79)
at com.sebuilder.interpreter.TestRun.finish(TestRun.java:127)
at com.sebuilder.interpreter.Script.run(Script.java:68)
at com.sebuilder.interpreter.SeInterpreter.main(SeInterpreter.java:93)
Caused by: org.openqa.selenium.UnsupportedCommandException: The requested combination of browser, version and OS is currently unsupported in this version of Selenium (Webdriver): "safari " on "Windows 2003"
Command duration or timeout: 390 milliseconds
Build info: version: '2.25.0', revision: '17482', time: '2012-07-18 21:09:54'
System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.8.1', java.version: '1.6.0_33'
Driver info: driver.version: RemoteWebDriver
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:188)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:145)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:498)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:182)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:110)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:128)
at com.sebuilder.interpreter.webdriverfactory.Remote.make(Remote.java:40)
at com.sebuilder.interpreter.TestRun.next(TestRun.java:77)
... 3 more

Other browsers work successfully like "chrome" and "iexplore".

Any suggestions would be helpful, thanks!

Zarkonnen

unread,
Dec 27, 2012, 3:51:21 AM12/27/12
to se-bu...@googlegroups.com
Hi Dennis,

Having checked, it appears to be --driver.platform=MAC instead of driver.platformName=mac . The values for driver.platform must be one from http://selenium.googlecode.com/svn/trunk/docs/api/java/org/openqa/selenium/Platform.html .

I'll add this information to the docs for the next Interpreter version.

You can also see the list of supported Sauce configurations here: http://saucelabs.com/rest/v1/info/browsers/webdriver

- David

dennis....@vertive.com

unread,
Jan 2, 2013, 5:26:23 PM1/2/13
to se-bu...@googlegroups.com
Thanks so much for your help! This appears to have fixed the issue.
Reply all
Reply to author
Forward
0 new messages