Hi everyone , We encounter a weird behaviour with a simple form without action specified which seems different between R_1777/R_1778 and R_1758(3.0) webtest .
The problem :
Using :
WebTest R_1777 (same problem with 1778)
apache web server (with "index.html" default page configured)
JDK 1.6
My apache web server contains two files in same directory =>
test.html =>
<html>
<head><title>test</title></head>
<body>
<form>
<input type="text" name="dummy" value="truc"/>
<input type="submit" value="Submit" />
</form>
</body>
</html>
and index.html =>
<html>
<head><title>index</title></head>
<body>
index
</body>
</html>
and i launch mySimpleTest.xml =>
<?xml version="1.0"?>
<!DOCTYPE project SYSTEM "../dtd/Project.dtd">
<project name="menu" default="all">
<target name="all" depends="test1"/>
<target name="test1" >
<webtest name="Simple test">
<config host="idssrv3" protocol="http" browser="FF3" basepath="test"
showhtmlparseroutput="true"/>
<steps>
<invoke url="test.html" />
<clickButton label="Submit"/>
<verifyTitle description="Verify that text is contained in the page"
text="test"/>
</steps>
</webtest>
</target>
</project>
This test failed, with this result =>
#
Result
Name
Parameter
Duration
1
[cid:[email protected]]
invoke
Resulting
page<file:///d:\webtest\projects\myUnitTest\results\001_SimpleTest\001_response_invoke.html?baseUrl=http%3A//idssrv3/test-with-acl/>
-> complete url
http://idssrv3/test/test.html
url
test.html
2047
2
[cid:[email protected]]
clickButton
Resulting
page<file:///d:\webtest\projects\myUnitTest\results\001_SimpleTest\002_response_clickButton.html?baseUrl=http%3A//idssrv3/test-with-acl/>
label
Submit
110
3
[cid:[email protected]]
Error<file:///d:\webtest\projects\myUnitTest\results\001_SimpleTest\WebTestReport.html#error1>
Page<file:///d:\webtest\projects\myUnitTest\results\001_SimpleTest\002_response_clickButton.html>
verifyTitle
Verify that text is contained in the page
text
test
15
Error
Message
Wrong document title found!
Current response
http://idssrv3/test/?dummy=truc
Location
d:\webtest\projects\myUnitTest\tests\mySimpleTest.xml (line: 11)
Details
expected value
test
actual value
index
When webtest submits test.html form, it redirects to the default folder page =>
index.html, instead of itself : "test.html". It's not the current behaviour
with browsers like FF3, IE6 or Chrome.
Having a look to apache logs, we found =>
with R_1777
10.24.246.196 - - [14/Aug/2009:14:20:14 +0200] "GET /test/test.html HTTP/1.1"
200 183 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1)
Gecko/2008070208 Firefox/3.0.1" - 326
10.24.246.196 - - [14/Aug/2009:14:20:16 +0200] "GET /test/?dummy=truc HTTP/1.1"
200 78 "http://idssrv3/test/test.html" "Mozilla/5.0 (Windows; U; Windows NT
5.1; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1" - 494
with R_1758
10.24.246.196 - - [14/Aug/2009:14:20:44 +0200] "GET /test/test.html HTTP/1.1"
200 183 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1)
Gecko/2008070208 Firefox/3.0.1" - 357
10.24.246.196 - - [14/Aug/2009:14:20:45 +0200] "GET /test/test.html?dummy=truc
HTTP/1.1" 200 183 "http://idssrv3/test/test.html" "Mozilla/5.0 (Windows; U;
Windows NT 5.1; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1" - 308
This really seems to be a behaviour related to latest webtest builds because we
get the correct behaviour with R_1758/3.0 webtest release and htmlunit 2.4/2.5
alone.
Thks for reading, and sorry for my bad english. i'm french and shakespeare
isn't yet my best friend =)
Best Regards
PS : could someone at Canoo have a look to the jira instance for webtest, it
seems out of order.
--
Antoine Meausoone
[email protected]<mailto:[email protected]>
________________________________
Ce message et les pi?ces jointes sont confidentiels et r?serv?s ? l'usage
exclusif de ses destinataires. Il peut ?galement ?tre prot?g? par le secret
professionnel. Si vous recevez ce message par erreur, merci d'en avertir
imm?diatement l'exp?diteur et de le d?truire. L'int?grit? du message ne pouvant
?tre assur?e sur Internet, la responsabilit? du groupe Atos Origin ne pourra
?tre recherch?e quant au contenu de ce message. Bien que les meilleurs efforts
soient faits pour maintenir cette transmission exempte de tout virus,
l'exp?diteur ne donne aucune garantie ? cet ?gard et sa responsabilit? ne
saurait ?tre recherch?e pour tout dommage r?sultant d'un virus transmis.
This e-mail and the documents attached are confidential and intended solely for
the addressee; it may also be privileged. If you receive this e-mail in error,
please notify the sender immediately and destroy it. As its integrity cannot be
secured on the Internet, the Atos Origin group liability cannot be triggered
for the message content. Although the sender endeavours to maintain a computer
virus-free network, the sender does not warrant that this transmission is
virus-free and will not be liable for any damages resulting from any virus
transmitted.
<<inline: image001.gif>>
<<inline: image002.gif>>

