Hudsonプラグイン(sleniumhqプラグインと呼ばれるプラグイン)を介してSeleniumツールを使用してアプリケーションをテストしようとしています。
概念実証として、グーグルをターゲットにした非常に単純なテストを作成することにしました。テストは次のとおりです。
<?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>
このテストはGoogleを開き、セレンrcを検索します。
Hudsonを使用して実行すると、開いているブラウザでHTTPエラー403が発生します。HudsonまたはSeleniumによって発生する特定のエラーはありません。
これが私のハドソン構成です:
ブラウザ:* iehta
startUrl:http://:4444 / selenium-server /
suiteFile:suite.html(前述のテストを指すスイート)
resultFile:result.html
その他:-timeout 5 -debug -browserSideLog -ensureCleanSession -trustAllSSLCertificates
htmlSuiteRunner:C:\ selenium \ selenium-remote-control-1.0.1 \ selenium-server-1.0.1 \ selenium-server.jar
あなたたちはすでにそのような問題に直面していますか?それはユーザー権利の定義か何かにリンクされていますか?
よろしくお願いします!