Tag Archives: Oracle Developer Cloud Service

How to use Selenium with Oracle Developer Cloud Service

Colleague of mine wrote about how he used Oracle Developer Cloud Service configuring Selenium tests.

First he set the below screenshot variables in the hudson job configuration.

ecegbjda

Next , in the selenium java test case , he set the proxy with below code.

String PROXY = “ch3-opc-proxy.usdc2.oraclecloud.com:80″;
org.openqa.selenium.Proxy proxy = new org.openqa.selenium.Proxy();
proxy.setHttpProxy(PROXY)
.setFtpProxy(PROXY)
.setSslProxy(PROXY);
DesiredCapabilities cap = new DesiredCapabilities();
cap.setCapability(CapabilityType.PROXY, proxy);

Last, executed the test with Maven 3 with the selenium dependencies included.

<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>2.45.0</version>
<scope>test</scope>
</dependency>

Advertisements
Tagged ,