Revision: 493
Author: henryju
Date: 2006-06-22 05:23:09 -0700 (Thu, 22 Jun 2006)
ViewCVS: http://svn.sourceforge.net/jwebunit/?rev=493&view=rev
Log Message:
-----------
Add test case for <input type="file">. Doesn't work with HttpUnit (internal
bug).
Modified Paths:
--------------
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/FormSubmissionTest.java
Modified:
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/FormSubmissionTest.java
===================================================================
---
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/FormSubmissionTest.java
2006-06-22 11:52:54 UTC (rev 492)
+++
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/FormSubmissionTest.java
2006-06-22 12:23:09 UTC (rev 493)
@@ -25,7 +25,7 @@
getTestContext().setBaseUrl(HOST_PATH + "/FormSubmissionTest");
}
- public void testSetInputField() {
+ public void testSetTextField() {
beginAt("/SingleNamedButtonForm.html");
setTextField("color", "blue");
submit("button");
@@ -38,7 +38,15 @@
assertTextPresent("Params are: color=red");
}
- public void testCheckBoxSelection() {
+ public void testSetFileField() {
+ beginAt("/SingleNamedButtonForm.html");
+ setTextField("file", "c:\\test.txt");
+ submit("button");
+ assertTextPresent("Submitted parameters");
+ assertTextPresent("file=test.txt");
+ }
+
+ public void testCheckBoxSelection() {
beginAt("/SingleNamedButtonForm.html");
checkCheckbox("checkBox"); //Fail with httpunit because of
hidden field with same name
setTextField("color", "blue");
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
Jwebunit-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-development