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 ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: