I am trying to test my application using the Selenium tool through a Hudson plugin (one called sleniumhq plugin).
As a proof of concept, I decided to make a very simple test aimed at google, the test is as follows:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1 /DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="selenium.base" href="" />
<title>New Test</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">New Test</td></tr>
</thead>
<tbody>
<tr>
<td>open</td>
<td>/</td>
<td></td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td>3000</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>q</td>
<td>selenium rc</td>
</tr>
<tr>
<td>click</td>
<td>btnG</td>
<td></td>
</tr>
</tbody></table>
</body>
This test opens Google, then searches for selenium rc.
When I run it using Hudson, I get a 403 HTTP error in the browser that opens. There is no particular mistake caused by Hudson or Selen.
Here is my Hudson configuration:
browser: * iehta p>
startUrl: http: //: 4444 / selenium-server /
suiteFile: suite.html (a set that points to the test described above)
resultFile: result.html
other: -timeout 5 -debug -browserSideLog -ensureCleanSession -trustAllSSLCertificates
htmlSuiteRunner: C:\selenium\selenium-remote-control-1.0.1\selenium-server-1.0.1\selenium-server.jar
, , ? -?
!