[java-idp-integration-tests] 09/14: Support SELENIUM_DEVICE sys prop or env var used to select iOS device
Tom Zeller
tzeller at dragonacea.biz
Thu Jun 17 13:55:53 UTC 2021
This is an automated email from the git hooks/post-receive script.
tzeller pushed a commit to branch main
in repository java-idp-integration-tests.
View the commit online:
http://git.shibboleth.net/view/?p=java-idp-integration-tests.git;a=commit;h=8623f7a6ec06560c562177854658eb2753484871
commit 8623f7a6ec06560c562177854658eb2753484871
Author: Tom Zeller <tzeller at dragonacea.biz>
AuthorDate: Thu Jun 17 08:12:15 2021 -0500
Support SELENIUM_DEVICE sys prop or env var used to select iOS device
---
.../java/net/shibboleth/idp/test/BaseIntegrationTest.java | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/src/test/java/net/shibboleth/idp/test/BaseIntegrationTest.java b/src/test/java/net/shibboleth/idp/test/BaseIntegrationTest.java
index 284dbb9..f90aec4 100644
--- a/src/test/java/net/shibboleth/idp/test/BaseIntegrationTest.java
+++ b/src/test/java/net/shibboleth/idp/test/BaseIntegrationTest.java
@@ -1519,6 +1519,10 @@ public abstract class BaseIntegrationTest
if (browserData.getOS() != null) {
desiredCapabilities.setCapability("platform", browserData.getOS());
}
+ // browser device
+ if (browserData.getDevice() != null) {
+ desiredCapabilities.setCapability("deviceName", browserData.getDevice());
+ }
}
if (desiredCapabilities.getBrowserName() == BrowserType.FIREFOX) {
@@ -1592,9 +1596,11 @@ public abstract class BaseIntegrationTest
log.trace("System property SELENIUM_PLATFORM '{}'", System.getProperty("SELENIUM_PLATFORM"));
log.trace("System property SELENIUM_BROWSER '{}'", System.getProperty("SELENIUM_BROWSER"));
log.trace("System property SELENIUM_VERSION '{}'", System.getProperty("SELENIUM_VERSION"));
+ log.trace("System property SELENIUM_DEVICE '{}'", System.getProperty("SELENIUM_DEVICE"));
log.trace("Environment variable SELENIUM_PLATFORM '{}'", System.getenv("SELENIUM_PLATFORM"));
log.trace("Environment variable SELENIUM_BROWSER '{}'", System.getenv("SELENIUM_BROWSER"));
log.trace("Environment variable SELENIUM_VERSION '{}'", System.getenv("SELENIUM_VERSION"));
+ log.trace("Environment variable SELENIUM_DEVICE '{}'", System.getenv("SELENIUM_DEVICE"));
final String platform = System.getProperty("SELENIUM_PLATFORM", System.getenv("SELENIUM_PLATFORM"));
log.debug("Found SELENIUM_PLATFORM '{}'", platform);
@@ -1605,6 +1611,9 @@ public abstract class BaseIntegrationTest
final String version = System.getProperty("SELENIUM_VERSION", System.getenv("SELENIUM_VERSION"));
log.debug("Found SELENIUM_VERSION '{}'", version);
+ final String device = System.getProperty("SELENIUM_DEVICE", System.getenv("SELENIUM_DEVICE"));
+ log.debug("Found SELENIUM_DEVICE '{}'", device);
+
final BrowserData browserData = new BrowserData();
if (platform != null) {
@@ -1628,6 +1637,10 @@ public abstract class BaseIntegrationTest
browserData.setVersion(version);
}
+ if (device != null) {
+ browserData.setDevice(device);
+ }
+
data.add(new Object[] {browserData});
}
for (final Object[] array : data) {
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list