Ross Rowe commented on Bug JENKINS-25757

The Jenkins plugin uses the results of the Sauce REST API to present the list of platforms available under Sauce (https://saucelabs.com/rest/v1/info/browsers/webdriver), and the platform value that is supplies is a fine-grained value (eg. Windows 2008, Windows 2012, etc). The Platform enum included as part of the Selenium source code is a course-grained value and represents the broader platform which is to be used, and doesn't necessarily have a 1-1 relationship with the available Sauce platforms (eg. for the iOS and Android devices).

The preferred approach to set the platform on the capabilities is to use the platform value directly without converting it, eg.

capabilities.setCapability("platform", System.getenv("SELENIUM_PLATFORM"))

however Selenium 2.44.0 introduced a change whereby the Selenium code would attempt to convert this value into a Platform enum value. This change should've been reverted in Selenium 2.45.0, so the code listed about should now work.

The value for the SELENIUM_PLATFORM environment variable is the same as the 'os' attribute in the SAUCE_ONDEMAND_BROWSERS environment variable, ideally they should have similar names, but at this stage it would be difficult to change their names without impacting multiple users.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to