Thread: [JWebUnit-development] SF.net SVN: jwebunit:[779] trunk (Page 2)
Brought to you by:
henryju
|
From: <jev...@us...> - 2008-12-08 00:57:22
|
Revision: 779
http://jwebunit.svn.sourceforge.net/jwebunit/?rev=779&view=rev
Author: jevonwright
Date: 2008-12-08 00:57:17 +0000 (Mon, 08 Dec 2008)
Log Message:
-----------
cleaning up ResponseServletTest and documentation
Modified Paths:
--------------
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/ResponseServletTest.java
trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/junit/WebTester.java
trunk/jwebunit-htmlunit-plugin/src/main/java/net/sourceforge/jwebunit/htmlunit/HtmlUnitTestingEngineImpl.java
trunk/src/site/xdoc/index.xml
Modified: trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/ResponseServletTest.java
===================================================================
--- trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/ResponseServletTest.java 2008-12-07 22:45:13 UTC (rev 778)
+++ trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/ResponseServletTest.java 2008-12-08 00:57:17 UTC (rev 779)
@@ -80,24 +80,23 @@
* Issue 1674646: add support for specifying the timeout of pages
*/
public void testTimeout() {
- //Test that timeout was fired
+ // test that timeout was fired
setTimeout(500); // specify a global timeout of 0.5 seconds (must be set before the WebConnection is initialised)
beginAt("/SimpleForm.html");
assertTitleEquals("response form");
setTextField("timeout", "1"); // server wait for 1 seconds
- boolean ok = false;
try {
submit();
+ fail("timeout was not called"); // we should not get here
} catch (RuntimeException e) {
assertTrue("timeout caused by SocketTimeoutException, but was " + e.getCause().getClass(), e.getCause() instanceof SocketTimeoutException);
- ok = true;
}
- assertTrue("Timeout wasn't fired", ok);
+
+ // close and reset the browser
closeBrowser();
- //Test that timeout wasn't fired
-
+ // test that timeout wasn't fired
setTimeout(2000); // specify a global timeout of 2 seconds (must be set before the WebConnection is initialised)
beginAt("/SimpleForm.html");
assertTitleEquals("response form");
Modified: trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/junit/WebTester.java
===================================================================
--- trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/junit/WebTester.java 2008-12-07 22:45:13 UTC (rev 778)
+++ trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/junit/WebTester.java 2008-12-08 00:57:17 UTC (rev 779)
@@ -3342,11 +3342,11 @@
* Set the timeout for the request. A timeout of 0 means
* an infinite timeout.
*
- * @param seconds the seconds in which to timeout, or 0 for infinite
+ * @param milli the milliseconds in which to timeout, or 0 for infinite
* wait (the default).
*/
- public void setTimeout(int seconds) {
- getTestingEngine().setTimeout(seconds);
+ public void setTimeout(int milli) {
+ getTestingEngine().setTimeout(milli);
}
private Image validateImage(String imageSrc, String imageAlt, File out) {
Modified: trunk/jwebunit-htmlunit-plugin/src/main/java/net/sourceforge/jwebunit/htmlunit/HtmlUnitTestingEngineImpl.java
===================================================================
--- trunk/jwebunit-htmlunit-plugin/src/main/java/net/sourceforge/jwebunit/htmlunit/HtmlUnitTestingEngineImpl.java 2008-12-07 22:45:13 UTC (rev 778)
+++ trunk/jwebunit-htmlunit-plugin/src/main/java/net/sourceforge/jwebunit/htmlunit/HtmlUnitTestingEngineImpl.java 2008-12-08 00:57:17 UTC (rev 779)
@@ -181,6 +181,7 @@
ExpectedJavascriptConfirmException,
ExpectedJavascriptPromptException {
wc = null;
+ form = null; // reset current form
if (this.expectedJavascriptAlerts.size() > 0) {
throw new ExpectedJavascriptAlertException(
((JavascriptAlert) (expectedJavascriptAlerts.get(0)))
Modified: trunk/src/site/xdoc/index.xml
===================================================================
--- trunk/src/site/xdoc/index.xml 2008-12-07 22:45:13 UTC (rev 778)
+++ trunk/src/site/xdoc/index.xml 2008-12-08 00:57:17 UTC (rev 779)
@@ -48,7 +48,6 @@
<source>
public class ExampleWebTestCase extends WebTestCase {
public ExampleWebTestCase(String name) {
- super(name);
getTestContext().setBaseUrl("http://localhost:8080/test");
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <jev...@us...> - 2008-12-08 01:20:25
|
Revision: 780
http://jwebunit.svn.sourceforge.net/jwebunit/?rev=780&view=rev
Author: jevonwright
Date: 2008-12-08 01:20:16 +0000 (Mon, 08 Dec 2008)
Log Message:
-----------
added setBaseUrl() directly to WebTester/WebTestCase
Modified Paths:
--------------
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/ButtonAssertionsTest.java
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/CharsetTest.java
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/ExpectedTableAssertionsHtmlTest.java
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/ExpectedTableAssertionsXHtmlTest.java
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/FormAssertionsTest.java
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/FormAssertionsWithLabelTest.java
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/FormSubmissionTest.java
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/FramesAndWindowsTest.java
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/HelloWorldTest.java
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/HtmlParsingTest.java
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/IElementTest.java
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/ImageTest.java
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/JavaScriptEventsTest.java
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/JavaScriptTest.java
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/NavigationTest.java
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/NonHtmlContentTest.java
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/RedirectionTest.java
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/ResourceBundleAssertionsTest.java
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/ResponseServletTest.java
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/SelectOptionsTest.java
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/TableAssertionsTest.java
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/WebAssertionsTest.java
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/WebCookieTest.java
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/XPathTest.java
trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/junit/WebTester.java
trunk/src/site/xdoc/index.xml
Modified: trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/ButtonAssertionsTest.java
===================================================================
--- trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/ButtonAssertionsTest.java 2008-12-08 00:57:17 UTC (rev 779)
+++ trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/ButtonAssertionsTest.java 2008-12-08 01:20:16 UTC (rev 780)
@@ -8,7 +8,7 @@
public void setUp() throws Exception {
super.setUp();
- getTestContext().setBaseUrl(HOST_PATH + "/ButtonAssertionsTest");
+ setBaseUrl(HOST_PATH + "/ButtonAssertionsTest");
}
public void testAssertButtonwithOneFormfound() {
Modified: trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/CharsetTest.java
===================================================================
--- trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/CharsetTest.java 2008-12-08 00:57:17 UTC (rev 779)
+++ trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/CharsetTest.java 2008-12-08 01:20:16 UTC (rev 780)
@@ -24,7 +24,7 @@
public void setUp() throws Exception {
super.setUp();
- getTestContext().setBaseUrl(HOST_PATH + "/CharsetTest");
+ setBaseUrl(HOST_PATH + "/CharsetTest");
beginAt("/charset.html_utf-8");
}
Modified: trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/ExpectedTableAssertionsHtmlTest.java
===================================================================
--- trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/ExpectedTableAssertionsHtmlTest.java 2008-12-08 00:57:17 UTC (rev 779)
+++ trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/ExpectedTableAssertionsHtmlTest.java 2008-12-08 01:20:16 UTC (rev 780)
@@ -22,7 +22,7 @@
public void setUp() throws Exception {
super.setUp();
- getTestContext().setBaseUrl(HOST_PATH + "/ExpectedTableAssertionsTest");
+ setBaseUrl(HOST_PATH + "/ExpectedTableAssertionsTest");
beginAt("/TableAssertionsTestPageHtml.html");
}
Modified: trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/ExpectedTableAssertionsXHtmlTest.java
===================================================================
--- trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/ExpectedTableAssertionsXHtmlTest.java 2008-12-08 00:57:17 UTC (rev 779)
+++ trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/ExpectedTableAssertionsXHtmlTest.java 2008-12-08 01:20:16 UTC (rev 780)
@@ -21,7 +21,7 @@
public void setUp() throws Exception {
super.setUp();
- getTestContext().setBaseUrl(HOST_PATH + "/ExpectedTableAssertionsTest");
+ setBaseUrl(HOST_PATH + "/ExpectedTableAssertionsTest");
beginAt("/TableAssertionsTestPageXHtml.html");
}
Modified: trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/FormAssertionsTest.java
===================================================================
--- trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/FormAssertionsTest.java 2008-12-08 00:57:17 UTC (rev 779)
+++ trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/FormAssertionsTest.java 2008-12-08 01:20:16 UTC (rev 780)
@@ -18,7 +18,7 @@
public void setUp() throws Exception {
super.setUp();
- getTestContext().setBaseUrl(HOST_PATH + "/FormAssertionsTest");
+ setBaseUrl(HOST_PATH + "/FormAssertionsTest");
}
public void testAssertButtonWithTextPresent() {
Modified: trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/FormAssertionsWithLabelTest.java
===================================================================
--- trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/FormAssertionsWithLabelTest.java 2008-12-08 00:57:17 UTC (rev 779)
+++ trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/FormAssertionsWithLabelTest.java 2008-12-08 01:20:16 UTC (rev 780)
@@ -17,7 +17,7 @@
public void setUp() throws Exception {
super.setUp();
- getTestContext().setBaseUrl(HOST_PATH + "/FormAssertionsTest");
+ setBaseUrl(HOST_PATH + "/FormAssertionsTest");
}
public void testAssertFormParameterPresentWithLabel() throws Throwable {
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 2008-12-08 00:57:17 UTC (rev 779)
+++ trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/FormSubmissionTest.java 2008-12-08 01:20:16 UTC (rev 780)
@@ -31,7 +31,7 @@
public void setUp() throws Exception {
super.setUp();
- getTestContext().setBaseUrl(HOST_PATH + "/FormSubmissionTest");
+ setBaseUrl(HOST_PATH + "/FormSubmissionTest");
}
public void testSetTextField() {
Modified: trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/FramesAndWindowsTest.java
===================================================================
--- trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/FramesAndWindowsTest.java 2008-12-08 00:57:17 UTC (rev 779)
+++ trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/FramesAndWindowsTest.java 2008-12-08 01:20:16 UTC (rev 780)
@@ -23,7 +23,7 @@
public void setUp() throws Exception {
super.setUp();
- getTestContext().setBaseUrl(HOST_PATH + "/FramesAndWindowsTest");
+ setBaseUrl(HOST_PATH + "/FramesAndWindowsTest");
}
/**
Modified: trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/HelloWorldTest.java
===================================================================
--- trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/HelloWorldTest.java 2008-12-08 00:57:17 UTC (rev 779)
+++ trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/HelloWorldTest.java 2008-12-08 01:20:16 UTC (rev 780)
@@ -24,7 +24,7 @@
public void setUp() throws Exception {
super.setUp();
- getTestContext().setBaseUrl(HOST_PATH);
+ setBaseUrl(HOST_PATH);
beginAt("/helloworld.html");
}
Modified: trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/HtmlParsingTest.java
===================================================================
--- trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/HtmlParsingTest.java 2008-12-08 00:57:17 UTC (rev 779)
+++ trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/HtmlParsingTest.java 2008-12-08 01:20:16 UTC (rev 780)
@@ -20,7 +20,7 @@
public void setUp() throws Exception {
super.setUp();
- getTestContext().setBaseUrl(HOST_PATH + "/HtmlTest/");
+ setBaseUrl(HOST_PATH + "/HtmlTest/");
}
public void testSimpleForm() {
Modified: trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/IElementTest.java
===================================================================
--- trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/IElementTest.java 2008-12-08 00:57:17 UTC (rev 779)
+++ trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/IElementTest.java 2008-12-08 01:20:16 UTC (rev 780)
@@ -27,7 +27,7 @@
public void setUp() throws Exception {
super.setUp();
- getTestContext().setBaseUrl(HOST_PATH + "/IElementTest");
+ setBaseUrl(HOST_PATH + "/IElementTest");
beginAt("/template.html");
}
Modified: trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/ImageTest.java
===================================================================
--- trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/ImageTest.java 2008-12-08 00:57:17 UTC (rev 779)
+++ trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/ImageTest.java 2008-12-08 01:20:16 UTC (rev 780)
@@ -26,7 +26,7 @@
public void setUp() throws Exception {
super.setUp();
- getTestContext().setBaseUrl(HOST_PATH + "/ImageTest");
+ setBaseUrl(HOST_PATH + "/ImageTest");
beginAt("/PageWithImages.html");
}
Modified: trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/JavaScriptEventsTest.java
===================================================================
--- trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/JavaScriptEventsTest.java 2008-12-08 00:57:17 UTC (rev 779)
+++ trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/JavaScriptEventsTest.java 2008-12-08 01:20:16 UTC (rev 780)
@@ -23,7 +23,7 @@
public void setUp() throws Exception {
super.setUp();
- getTestContext().setBaseUrl(HOST_PATH + "/JavaScriptEventsTest");
+ setBaseUrl(HOST_PATH + "/JavaScriptEventsTest");
}
public void testFormOnSubmit() {
Modified: trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/JavaScriptTest.java
===================================================================
--- trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/JavaScriptTest.java 2008-12-08 00:57:17 UTC (rev 779)
+++ trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/JavaScriptTest.java 2008-12-08 01:20:16 UTC (rev 780)
@@ -21,7 +21,7 @@
public void setUp() throws Exception {
super.setUp();
- getTestContext().setBaseUrl(HOST_PATH + "/JavaScriptTest");
+ setBaseUrl(HOST_PATH + "/JavaScriptTest");
}
public void testDocumentWrite() {
Modified: trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/NavigationTest.java
===================================================================
--- trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/NavigationTest.java 2008-12-08 00:57:17 UTC (rev 779)
+++ trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/NavigationTest.java 2008-12-08 01:20:16 UTC (rev 780)
@@ -26,7 +26,7 @@
public void setUp() throws Exception {
super.setUp();
- getTestContext().setBaseUrl(HOST_PATH + "/NavigationTest");
+ setBaseUrl(HOST_PATH + "/NavigationTest");
}
public void testBeginAtRelative() {
Modified: trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/NonHtmlContentTest.java
===================================================================
--- trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/NonHtmlContentTest.java 2008-12-08 00:57:17 UTC (rev 779)
+++ trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/NonHtmlContentTest.java 2008-12-08 01:20:16 UTC (rev 780)
@@ -24,7 +24,7 @@
public void setUp() throws Exception {
super.setUp();
- getTestContext().setBaseUrl(HOST_PATH + "/NonHtmlContentTest");
+ setBaseUrl(HOST_PATH + "/NonHtmlContentTest");
}
public void testTextContent() {
Modified: trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/RedirectionTest.java
===================================================================
--- trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/RedirectionTest.java 2008-12-08 00:57:17 UTC (rev 779)
+++ trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/RedirectionTest.java 2008-12-08 01:20:16 UTC (rev 780)
@@ -22,7 +22,7 @@
public void setUp() throws Exception {
super.setUp();
- getTestContext().setBaseUrl(HOST_PATH + "/RedirectionTest");
+ setBaseUrl(HOST_PATH + "/RedirectionTest");
}
public void testRedirection() {
Modified: trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/ResourceBundleAssertionsTest.java
===================================================================
--- trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/ResourceBundleAssertionsTest.java 2008-12-08 00:57:17 UTC (rev 779)
+++ trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/ResourceBundleAssertionsTest.java 2008-12-08 01:20:16 UTC (rev 780)
@@ -30,7 +30,7 @@
public void setUp() throws Exception {
super.setUp();
- getTestContext().setBaseUrl(HOST_PATH + "/ResourceBundleAssertionsTest");
+ setBaseUrl(HOST_PATH + "/ResourceBundleAssertionsTest");
getTestContext().setResourceBundleName(resourceBundleName);
beginAt("/testPage.html");
}
Modified: trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/ResponseServletTest.java
===================================================================
--- trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/ResponseServletTest.java 2008-12-08 00:57:17 UTC (rev 779)
+++ trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/ResponseServletTest.java 2008-12-08 01:20:16 UTC (rev 780)
@@ -25,7 +25,7 @@
public void setUp() throws Exception {
super.setUp();
setIgnoreFailingStatusCodes(true); // ignore failing status codes
- getTestContext().setBaseUrl(HOST_PATH + "/ResponseServletTest");
+ setBaseUrl(HOST_PATH + "/ResponseServletTest");
}
/*
Modified: trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/SelectOptionsTest.java
===================================================================
--- trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/SelectOptionsTest.java 2008-12-08 00:57:17 UTC (rev 779)
+++ trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/SelectOptionsTest.java 2008-12-08 01:20:16 UTC (rev 780)
@@ -13,7 +13,7 @@
public void setUp() throws Exception
{
super.setUp();
- getTestContext().setBaseUrl(HOST_PATH + "/SelectOptionsTest");
+ setBaseUrl(HOST_PATH + "/SelectOptionsTest");
}
public void testAssertSelectOptionsOneForm()
Modified: trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/TableAssertionsTest.java
===================================================================
--- trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/TableAssertionsTest.java 2008-12-08 00:57:17 UTC (rev 779)
+++ trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/TableAssertionsTest.java 2008-12-08 01:20:16 UTC (rev 780)
@@ -17,7 +17,7 @@
public void setUp() throws Exception {
super.setUp();
- getTestContext().setBaseUrl(HOST_PATH + "/TableAssertionsTest");
+ setBaseUrl(HOST_PATH + "/TableAssertionsTest");
beginAt("/TableAssertionsTestPage.html");
}
Modified: trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/WebAssertionsTest.java
===================================================================
--- trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/WebAssertionsTest.java 2008-12-08 00:57:17 UTC (rev 779)
+++ trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/WebAssertionsTest.java 2008-12-08 01:20:16 UTC (rev 780)
@@ -24,7 +24,7 @@
public void setUp() throws Exception {
super.setUp();
- getTestContext().setBaseUrl(HOST_PATH + "/WebAssertionsTest");
+ setBaseUrl(HOST_PATH + "/WebAssertionsTest");
beginAt("/testPage.html");
}
Modified: trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/WebCookieTest.java
===================================================================
--- trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/WebCookieTest.java 2008-12-08 00:57:17 UTC (rev 779)
+++ trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/WebCookieTest.java 2008-12-08 01:20:16 UTC (rev 780)
@@ -23,7 +23,7 @@
public void setUp() throws Exception {
super.setUp();
getTestContext().addCookie("cookie1", "Cookievalue1", "localhost");
- getTestContext().setBaseUrl(HOST_PATH);
+ setBaseUrl(HOST_PATH);
}
public void testAddCookie() {
Modified: trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/XPathTest.java
===================================================================
--- trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/XPathTest.java 2008-12-08 00:57:17 UTC (rev 779)
+++ trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/XPathTest.java 2008-12-08 01:20:16 UTC (rev 780)
@@ -21,7 +21,7 @@
public void setUp() throws Exception {
super.setUp();
- getTestContext().setBaseUrl(HOST_PATH + "/XPathTest");
+ setBaseUrl(HOST_PATH + "/XPathTest");
}
public void testAssertElementPresentByXPath() throws Throwable {
Modified: trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/junit/WebTester.java
===================================================================
--- trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/junit/WebTester.java 2008-12-08 00:57:17 UTC (rev 779)
+++ trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/junit/WebTester.java 2008-12-08 01:20:16 UTC (rev 780)
@@ -73,6 +73,24 @@
public ITestingEngine getDialog() {
return getTestingEngine();
}
+
+ /**
+ * Set the base url for the test context.
+ *
+ * @param url Base url value - A trailing "/" is appended if not provided.
+ */
+ public void setBaseUrl(String url) {
+ getTestContext().setBaseUrl(url);
+ }
+
+ /**
+ * Set the base url for the test context.
+ *
+ * @param url Base url value - A trailing "/" is appended if not provided.
+ */
+ public void setBaseUrl(URL url) {
+ getTestContext().setBaseUrl(url);
+ }
/**
* Protected version of deprecated getDialog(). Not deprecated for internal use.
Modified: trunk/src/site/xdoc/index.xml
===================================================================
--- trunk/src/site/xdoc/index.xml 2008-12-08 00:57:17 UTC (rev 779)
+++ trunk/src/site/xdoc/index.xml 2008-12-08 01:20:16 UTC (rev 780)
@@ -48,7 +48,7 @@
<source>
public class ExampleWebTestCase extends WebTestCase {
public ExampleWebTestCase(String name) {
- getTestContext().setBaseUrl("http://localhost:8080/test");
+ setBaseUrl("http://localhost:8080/test");
}
public void test1() {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <he...@us...> - 2008-12-12 18:45:12
|
Revision: 786
http://jwebunit.svn.sourceforge.net/jwebunit/?rev=786&view=rev
Author: henryju
Date: 2008-12-12 18:45:08 +0000 (Fri, 12 Dec 2008)
Log Message:
-----------
[maven-release-plugin] prepare release jwebunit-2.1
Modified Paths:
--------------
trunk/jwebunit-commons-tests/pom.xml
trunk/jwebunit-core/pom.xml
trunk/jwebunit-htmlunit-plugin/pom.xml
trunk/jwebunit-selenium-plugin/pom.xml
trunk/jwebunit-webtestcase-generator/pom.xml
trunk/pom.xml
Modified: trunk/jwebunit-commons-tests/pom.xml
===================================================================
--- trunk/jwebunit-commons-tests/pom.xml 2008-12-12 18:23:03 UTC (rev 785)
+++ trunk/jwebunit-commons-tests/pom.xml 2008-12-12 18:45:08 UTC (rev 786)
@@ -1,42 +1,42 @@
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <parent>
- <artifactId>jwebunit</artifactId>
- <groupId>net.sourceforge.jwebunit</groupId>
- <version>2.1-SNAPSHOT</version>
- <relativePath>../</relativePath>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <artifactId>jwebunit-commons-tests</artifactId>
- <name>Commons Tests</name>
- <description>All test cases that each plugin should pass.</description>
- <dependencies>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- </dependency>
- <dependency>
- <groupId>junitperf</groupId>
- <artifactId>junitperf</artifactId>
- </dependency>
- <dependency>
- <groupId>org.mortbay.jetty</groupId>
- <artifactId>jetty</artifactId>
- </dependency>
- <dependency>
- <groupId>net.sourceforge.jwebunit</groupId>
- <artifactId>jwebunit-core</artifactId>
- <version>${pom.version}</version>
- </dependency>
- <dependency>
- <groupId>commons-fileupload</groupId>
- <artifactId>commons-fileupload</artifactId>
- </dependency>
- <dependency>
- <groupId>commons-io</groupId>
- <artifactId>commons-io</artifactId>
- </dependency>
- </dependencies>
- <properties>
- <topDirectoryLocation>..</topDirectoryLocation>
- </properties>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <parent>
+ <artifactId>jwebunit</artifactId>
+ <groupId>net.sourceforge.jwebunit</groupId>
+ <version>2.1</version>
+ <relativePath>../</relativePath>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <artifactId>jwebunit-commons-tests</artifactId>
+ <name>Commons Tests</name>
+ <description>All test cases that each plugin should pass.</description>
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>junitperf</groupId>
+ <artifactId>junitperf</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.mortbay.jetty</groupId>
+ <artifactId>jetty</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>net.sourceforge.jwebunit</groupId>
+ <artifactId>jwebunit-core</artifactId>
+ <version>${pom.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>commons-fileupload</groupId>
+ <artifactId>commons-fileupload</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>commons-io</groupId>
+ <artifactId>commons-io</artifactId>
+ </dependency>
+ </dependencies>
+ <properties>
+ <topDirectoryLocation>..</topDirectoryLocation>
+ </properties>
</project>
\ No newline at end of file
Modified: trunk/jwebunit-core/pom.xml
===================================================================
--- trunk/jwebunit-core/pom.xml 2008-12-12 18:23:03 UTC (rev 785)
+++ trunk/jwebunit-core/pom.xml 2008-12-12 18:45:08 UTC (rev 786)
@@ -1,78 +1,78 @@
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <parent>
- <artifactId>jwebunit</artifactId>
- <groupId>net.sourceforge.jwebunit</groupId>
- <version>2.1-SNAPSHOT</version>
- <relativePath>../</relativePath>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <artifactId>jwebunit-core</artifactId>
- <name>Core - API</name>
- <description>
- The core API of JWebUnit. Define how tests should be written and interface for testing engines.
- </description>
- <dependencies>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- </dependency>
- <dependency>
- <groupId>regexp</groupId>
- <artifactId>regexp</artifactId>
- </dependency>
- <dependency>
- <groupId>javax.servlet</groupId>
- <artifactId>servlet-api</artifactId>
- </dependency>
- </dependencies>
- <properties>
- <topDirectoryLocation>..</topDirectoryLocation>
- </properties>
- <build>
- <plugins>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>exec-maven-plugin</artifactId>
- <executions>
- <execution>
- <phase>generate-sources</phase>
- <goals>
- <goal>java</goal>
- </goals>
- <configuration>
- <sourceRoot>
- ${project.build.directory}/generated-sources/main/java
- </sourceRoot>
- </configuration>
- </execution>
- </executions>
- <configuration>
- <mainClass>
- net.sourceforge.jwebunit.javacc.WebTestCaseGenerator
- </mainClass>
- <arguments>
- <argument>${basedir}/src/main/java</argument>
- <argument>
- ${project.build.directory}/generated-sources/main/java
- </argument>
- </arguments>
- <includePluginDependencies>
- true
- </includePluginDependencies>
- <includeProjectDependencies>
- false
- </includeProjectDependencies>
- </configuration>
- <dependencies>
- <dependency>
- <groupId>net.sourceforge.jwebunit</groupId>
- <artifactId>
- jwebunit-webtestcase-generator
- </artifactId>
- <version>${pom.version}</version>
- </dependency>
- </dependencies>
- </plugin>
- </plugins>
- </build>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <parent>
+ <artifactId>jwebunit</artifactId>
+ <groupId>net.sourceforge.jwebunit</groupId>
+ <version>2.1</version>
+ <relativePath>../</relativePath>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <artifactId>jwebunit-core</artifactId>
+ <name>Core - API</name>
+ <description>
+ The core API of JWebUnit. Define how tests should be written and interface for testing engines.
+ </description>
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>regexp</groupId>
+ <artifactId>regexp</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>servlet-api</artifactId>
+ </dependency>
+ </dependencies>
+ <properties>
+ <topDirectoryLocation>..</topDirectoryLocation>
+ </properties>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>exec-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>generate-sources</phase>
+ <goals>
+ <goal>java</goal>
+ </goals>
+ <configuration>
+ <sourceRoot>
+ ${project.build.directory}/generated-sources/main/java
+ </sourceRoot>
+ </configuration>
+ </execution>
+ </executions>
+ <configuration>
+ <mainClass>
+ net.sourceforge.jwebunit.javacc.WebTestCaseGenerator
+ </mainClass>
+ <arguments>
+ <argument>${basedir}/src/main/java</argument>
+ <argument>
+ ${project.build.directory}/generated-sources/main/java
+ </argument>
+ </arguments>
+ <includePluginDependencies>
+ true
+ </includePluginDependencies>
+ <includeProjectDependencies>
+ false
+ </includeProjectDependencies>
+ </configuration>
+ <dependencies>
+ <dependency>
+ <groupId>net.sourceforge.jwebunit</groupId>
+ <artifactId>
+ jwebunit-webtestcase-generator
+ </artifactId>
+ <version>${pom.version}</version>
+ </dependency>
+ </dependencies>
+ </plugin>
+ </plugins>
+ </build>
</project>
\ No newline at end of file
Modified: trunk/jwebunit-htmlunit-plugin/pom.xml
===================================================================
--- trunk/jwebunit-htmlunit-plugin/pom.xml 2008-12-12 18:23:03 UTC (rev 785)
+++ trunk/jwebunit-htmlunit-plugin/pom.xml 2008-12-12 18:45:08 UTC (rev 786)
@@ -1,67 +1,67 @@
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <parent>
- <artifactId>jwebunit</artifactId>
- <groupId>net.sourceforge.jwebunit</groupId>
- <version>2.1-SNAPSHOT</version>
- <relativePath>../</relativePath>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <artifactId>jwebunit-htmlunit-plugin</artifactId>
- <name>HtmlUnit Plugin</name>
- <description>HtmlUnit plugin for JWebUnit.</description>
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <testFailureIgnore>false</testFailureIgnore>
- <includes>
- <include>**/*Test.java</include>
- <include>**/*Tests.java</include>
- </includes>
- <excludes>
- <exclude>**/*AbstractTest.java</exclude>
- <exclude>**/*AbstractTests.java</exclude>
- </excludes>
- </configuration>
- </plugin>
- </plugins>
- </build>
- <dependencies>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>net.sourceforge.htmlunit</groupId>
- <artifactId>htmlunit</artifactId>
- </dependency>
- <dependency>
- <groupId>net.sourceforge.jwebunit</groupId>
- <artifactId>jwebunit-core</artifactId>
- <version>${pom.version}</version>
- </dependency>
- <dependency>
- <groupId>net.sourceforge.jwebunit</groupId>
- <artifactId>jwebunit-commons-tests</artifactId>
- <version>${pom.version}</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-api</artifactId>
- </dependency>
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-log4j12</artifactId>
- </dependency>
- <dependency>
- <groupId>javax.servlet</groupId>
- <artifactId>servlet-api</artifactId>
- </dependency>
- </dependencies>
- <properties>
- <topDirectoryLocation>..</topDirectoryLocation>
- </properties>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <parent>
+ <artifactId>jwebunit</artifactId>
+ <groupId>net.sourceforge.jwebunit</groupId>
+ <version>2.1</version>
+ <relativePath>../</relativePath>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <artifactId>jwebunit-htmlunit-plugin</artifactId>
+ <name>HtmlUnit Plugin</name>
+ <description>HtmlUnit plugin for JWebUnit.</description>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <testFailureIgnore>false</testFailureIgnore>
+ <includes>
+ <include>**/*Test.java</include>
+ <include>**/*Tests.java</include>
+ </includes>
+ <excludes>
+ <exclude>**/*AbstractTest.java</exclude>
+ <exclude>**/*AbstractTests.java</exclude>
+ </excludes>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>net.sourceforge.htmlunit</groupId>
+ <artifactId>htmlunit</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>net.sourceforge.jwebunit</groupId>
+ <artifactId>jwebunit-core</artifactId>
+ <version>${pom.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>net.sourceforge.jwebunit</groupId>
+ <artifactId>jwebunit-commons-tests</artifactId>
+ <version>${pom.version}</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-api</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-log4j12</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>servlet-api</artifactId>
+ </dependency>
+ </dependencies>
+ <properties>
+ <topDirectoryLocation>..</topDirectoryLocation>
+ </properties>
</project>
\ No newline at end of file
Modified: trunk/jwebunit-selenium-plugin/pom.xml
===================================================================
--- trunk/jwebunit-selenium-plugin/pom.xml 2008-12-12 18:23:03 UTC (rev 785)
+++ trunk/jwebunit-selenium-plugin/pom.xml 2008-12-12 18:45:08 UTC (rev 786)
@@ -1,103 +1,103 @@
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <parent>
- <artifactId>jwebunit</artifactId>
- <groupId>net.sourceforge.jwebunit</groupId>
- <version>2.1-SNAPSHOT</version>
- <relativePath>..</relativePath>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <artifactId>jwebunit-selenium-plugin</artifactId>
- <name>Selenium Plugin</name>
- <description>Selenium plugin for JWebUnit.</description>
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <testFailureIgnore>true</testFailureIgnore>
- <skip>true</skip>
- <includes>
- <include>**/*Test.java</include>
- <include>**/*Tests.java</include>
- </includes>
- <excludes>
- <exclude>**/*AbstractTest.java</exclude>
- <exclude>**/*AbstractTests.java</exclude>
- </excludes>
- </configuration>
- </plugin>
- <!-- Requires java 1.5 -->
- <!--plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>selenium-maven-plugin</artifactId>
- <executions>
- <execution>
- <id>start</id>
- <phase>process-test-classes</phase>
- <goals>
- <goal>start-server</goal>
- </goals>
- <configuration>
- <background>true</background>
- <multiWindow>true</multiWindow>
- </configuration>
- </execution>
- </executions>
- <dependencies>
- <dependency>
- <groupId>org.openqa.selenium.server</groupId>
- <artifactId>selenium-server</artifactId>
- <version>1.0-beta-1</version>
- </dependency>
- </dependencies>
- </plugin-->
- </plugins>
- </build>
- <dependencies>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.openqa.selenium.client-drivers</groupId>
- <artifactId>selenium-java-client-driver</artifactId>
- <exclusions>
- <exclusion>
- <groupId>org.openqa.selenium.server</groupId>
- <artifactId>selenium-server-coreless</artifactId>
- </exclusion>
- <exclusion>
- <groupId>org.openqa.selenium.server</groupId>
- <artifactId>selenium-server</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>net.sourceforge.jwebunit</groupId>
- <artifactId>jwebunit-core</artifactId>
- <version>${pom.version}</version>
- </dependency>
- <dependency>
- <groupId>net.sourceforge.jwebunit</groupId>
- <artifactId>jwebunit-commons-tests</artifactId>
- <version>${pom.version}</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-api</artifactId>
- </dependency>
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-log4j12</artifactId>
- </dependency>
- <dependency>
- <groupId>javax.servlet</groupId>
- <artifactId>servlet-api</artifactId>
- </dependency>
- </dependencies>
- <properties>
- <topDirectoryLocation>..</topDirectoryLocation>
- </properties>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <parent>
+ <artifactId>jwebunit</artifactId>
+ <groupId>net.sourceforge.jwebunit</groupId>
+ <version>2.1</version>
+ <relativePath>..</relativePath>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <artifactId>jwebunit-selenium-plugin</artifactId>
+ <name>Selenium Plugin</name>
+ <description>Selenium plugin for JWebUnit.</description>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <testFailureIgnore>true</testFailureIgnore>
+ <skip>true</skip>
+ <includes>
+ <include>**/*Test.java</include>
+ <include>**/*Tests.java</include>
+ </includes>
+ <excludes>
+ <exclude>**/*AbstractTest.java</exclude>
+ <exclude>**/*AbstractTests.java</exclude>
+ </excludes>
+ </configuration>
+ </plugin>
+ <!-- Requires java 1.5 -->
+ <!--plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>selenium-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>start</id>
+ <phase>process-test-classes</phase>
+ <goals>
+ <goal>start-server</goal>
+ </goals>
+ <configuration>
+ <background>true</background>
+ <multiWindow>true</multiWindow>
+ </configuration>
+ </execution>
+ </executions>
+ <dependencies>
+ <dependency>
+ <groupId>org.openqa.selenium.server</groupId>
+ <artifactId>selenium-server</artifactId>
+ <version>1.0-beta-1</version>
+ </dependency>
+ </dependencies>
+ </plugin-->
+ </plugins>
+ </build>
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.openqa.selenium.client-drivers</groupId>
+ <artifactId>selenium-java-client-driver</artifactId>
+ <exclusions>
+ <exclusion>
+ <groupId>org.openqa.selenium.server</groupId>
+ <artifactId>selenium-server-coreless</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.openqa.selenium.server</groupId>
+ <artifactId>selenium-server</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>net.sourceforge.jwebunit</groupId>
+ <artifactId>jwebunit-core</artifactId>
+ <version>${pom.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>net.sourceforge.jwebunit</groupId>
+ <artifactId>jwebunit-commons-tests</artifactId>
+ <version>${pom.version}</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-api</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-log4j12</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>servlet-api</artifactId>
+ </dependency>
+ </dependencies>
+ <properties>
+ <topDirectoryLocation>..</topDirectoryLocation>
+ </properties>
</project>
\ No newline at end of file
Modified: trunk/jwebunit-webtestcase-generator/pom.xml
===================================================================
--- trunk/jwebunit-webtestcase-generator/pom.xml 2008-12-12 18:23:03 UTC (rev 785)
+++ trunk/jwebunit-webtestcase-generator/pom.xml 2008-12-12 18:45:08 UTC (rev 786)
@@ -1,33 +1,33 @@
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <parent>
- <artifactId>jwebunit</artifactId>
- <groupId>net.sourceforge.jwebunit</groupId>
- <version>2.1-SNAPSHOT</version>
- <relativePath>../</relativePath>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <artifactId>jwebunit-webtestcase-generator</artifactId>
- <name>WebTestCase Generator</name>
- <description>A little parser that create WebTestCase from WebTester.</description>
- <properties>
- <topDirectoryLocation>..</topDirectoryLocation>
- </properties>
- <build>
- <plugins>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>javacc-maven-plugin</artifactId>
- <executions>
- <execution>
- <goals>
- <goal>javacc</goal>
- </goals>
- <configuration>
- <outputDirectory>target/generated-sources/javacc</outputDirectory>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
-</project>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <parent>
+ <artifactId>jwebunit</artifactId>
+ <groupId>net.sourceforge.jwebunit</groupId>
+ <version>2.1</version>
+ <relativePath>../</relativePath>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <artifactId>jwebunit-webtestcase-generator</artifactId>
+ <name>WebTestCase Generator</name>
+ <description>A little parser that create WebTestCase from WebTester.</description>
+ <properties>
+ <topDirectoryLocation>..</topDirectoryLocation>
+ </properties>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>javacc-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <goals>
+ <goal>javacc</goal>
+ </goals>
+ <configuration>
+ <outputDirectory>target/generated-sources/javacc</outputDirectory>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+</project>
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2008-12-12 18:23:03 UTC (rev 785)
+++ trunk/pom.xml 2008-12-12 18:45:08 UTC (rev 786)
@@ -1,492 +1,492 @@
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <groupId>net.sourceforge.jwebunit</groupId>
- <artifactId>jwebunit</artifactId>
- <name>JWebUnit</name>
- <version>2.1-SNAPSHOT</version>
- <packaging>pom</packaging>
- <description>
- JWebUnit is a Java framework that facilitates creation of
- acceptance tests for web applications. It evolved from a project
- where we were using HttpUnit and JUnit to create acceptance
- tests. As the tests were being written, they were continuously
- refactored to remove duplication and other bad smells in the
- test code. JWebUnit is the result of these refactorings.
- </description>
- <url>http://jwebunit.sourceforge.net</url>
- <issueManagement>
- <system>sourceforge</system>
- <url>http://sourceforge.net/tracker/?group_id=61302</url>
- </issueManagement>
- <inceptionYear>2002</inceptionYear>
- <modules>
- <module>jwebunit-webtestcase-generator</module>
- <module>jwebunit-core</module>
- <module>jwebunit-commons-tests</module>
- <module>jwebunit-htmlunit-plugin</module>
- <module>jwebunit-selenium-plugin</module>
- </modules>
- <mailingLists>
- <mailingList>
- <name>JWebUnit Development Mailing list</name>
- <subscribe>
- http://lists.sourceforge.net/mailman/listinfo/jwebunit-development
- </subscribe>
- <unsubscribe>
- http://lists.sourceforge.net/mailman/listinfo/jwebunit-development
- </unsubscribe>
- <archive>
- http://sourceforge.net/mailarchive/forum.php?forum_id=40831
- </archive>
- <post>jwe...@li...</post>
- </mailingList>
- <mailingList>
- <name>JWebUnit User Mailing list</name>
- <subscribe>
- http://lists.sourceforge.net/mailman/listinfo/jwebunit-users
- </subscribe>
- <unsubscribe>
- http://lists.sourceforge.net/mailman/listinfo/jwebunit-users
- </unsubscribe>
- <archive>
- http://sourceforge.net/mailarchive/forum.php?forum_id=40830
- </archive>
- <post>jwe...@li...</post>
- </mailingList>
- </mailingLists>
- <developers>
- <developer>
- <id>henryju</id>
- <name>Julien Henry</name>
- <email>henryju at users.sourceforge.net</email>
- <url />
- <organization>Capgemini</organization>
- <organizationUrl>http://www.capgemini.com</organizationUrl>
- <roles>
- <role>Developer</role>
- </roles>
- <timezone>+2</timezone>
- </developer>
- <developer>
- <id>joshlane</id>
- <name>Josh Lane</name>
- <email>joshlane at users.sourceforge.net</email>
- <url />
- <organization>Brontes Technologies</organization>
- <organizationUrl>
- http://solutions.3m.com/wps/portal/3M/en_US/LavaCOS/3MESPE-LavaCOS/
- </organizationUrl>
- <roles>
- <role>Developer</role>
- </roles>
- <timezone>-5</timezone>
- </developer>
- <developer>
- <id>jevonwright</id>
- <name>Jevon Wright</name>
- <email>jevonwright at users.sourceforge.net</email>
- <url>http://www.jevon.org</url>
- <organization />
- <organizationUrl />
- <roles>
- <role>Developer</role>
- </roles>
- <timezone>+13</timezone>
- </developer>
- </developers>
- <contributors>
- <contributor>
- <name>Jim Weaver</name>
- <email>jimweaver at users.sourceforge.net</email>
- <organization>Thoughtworks</organization>
- <roles>
- <role>All-Hands person</role>
- </roles>
- <timezone>-5</timezone>
- </contributor>
- <contributor>
- <name>Wilkes Joiner</name>
- <email>wilkesj at users.sourceforge.net</email>
- <organization />
- <roles>
- <role>All-Hands person</role>
- </roles>
- </contributor>
- <contributor>
- <name>Vivek Venugopalan</name>
- <email>vivek at magic hypen cauldron dot com</email>
- <url>http://www.magic-cauldron.com</url>
- <organization />
- <roles>
- <role>All-Hands person</role>
- </roles>
- <ti...
[truncated message content] |
|
From: <he...@us...> - 2008-12-12 18:47:22
|
Revision: 788
http://jwebunit.svn.sourceforge.net/jwebunit/?rev=788&view=rev
Author: henryju
Date: 2008-12-12 18:47:19 +0000 (Fri, 12 Dec 2008)
Log Message:
-----------
[maven-release-plugin] prepare for next development iteration
Modified Paths:
--------------
trunk/jwebunit-commons-tests/pom.xml
trunk/jwebunit-core/pom.xml
trunk/jwebunit-htmlunit-plugin/pom.xml
trunk/jwebunit-selenium-plugin/pom.xml
trunk/jwebunit-webtestcase-generator/pom.xml
trunk/pom.xml
Modified: trunk/jwebunit-commons-tests/pom.xml
===================================================================
--- trunk/jwebunit-commons-tests/pom.xml 2008-12-12 18:47:06 UTC (rev 787)
+++ trunk/jwebunit-commons-tests/pom.xml 2008-12-12 18:47:19 UTC (rev 788)
@@ -2,7 +2,7 @@
<parent>
<artifactId>jwebunit</artifactId>
<groupId>net.sourceforge.jwebunit</groupId>
- <version>2.1</version>
+ <version>2.2-SNAPSHOT</version>
<relativePath>../</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Modified: trunk/jwebunit-core/pom.xml
===================================================================
--- trunk/jwebunit-core/pom.xml 2008-12-12 18:47:06 UTC (rev 787)
+++ trunk/jwebunit-core/pom.xml 2008-12-12 18:47:19 UTC (rev 788)
@@ -2,7 +2,7 @@
<parent>
<artifactId>jwebunit</artifactId>
<groupId>net.sourceforge.jwebunit</groupId>
- <version>2.1</version>
+ <version>2.2-SNAPSHOT</version>
<relativePath>../</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Modified: trunk/jwebunit-htmlunit-plugin/pom.xml
===================================================================
--- trunk/jwebunit-htmlunit-plugin/pom.xml 2008-12-12 18:47:06 UTC (rev 787)
+++ trunk/jwebunit-htmlunit-plugin/pom.xml 2008-12-12 18:47:19 UTC (rev 788)
@@ -2,7 +2,7 @@
<parent>
<artifactId>jwebunit</artifactId>
<groupId>net.sourceforge.jwebunit</groupId>
- <version>2.1</version>
+ <version>2.2-SNAPSHOT</version>
<relativePath>../</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Modified: trunk/jwebunit-selenium-plugin/pom.xml
===================================================================
--- trunk/jwebunit-selenium-plugin/pom.xml 2008-12-12 18:47:06 UTC (rev 787)
+++ trunk/jwebunit-selenium-plugin/pom.xml 2008-12-12 18:47:19 UTC (rev 788)
@@ -2,7 +2,7 @@
<parent>
<artifactId>jwebunit</artifactId>
<groupId>net.sourceforge.jwebunit</groupId>
- <version>2.1</version>
+ <version>2.2-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Modified: trunk/jwebunit-webtestcase-generator/pom.xml
===================================================================
--- trunk/jwebunit-webtestcase-generator/pom.xml 2008-12-12 18:47:06 UTC (rev 787)
+++ trunk/jwebunit-webtestcase-generator/pom.xml 2008-12-12 18:47:19 UTC (rev 788)
@@ -2,7 +2,7 @@
<parent>
<artifactId>jwebunit</artifactId>
<groupId>net.sourceforge.jwebunit</groupId>
- <version>2.1</version>
+ <version>2.2-SNAPSHOT</version>
<relativePath>../</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2008-12-12 18:47:06 UTC (rev 787)
+++ trunk/pom.xml 2008-12-12 18:47:19 UTC (rev 788)
@@ -3,7 +3,7 @@
<groupId>net.sourceforge.jwebunit</groupId>
<artifactId>jwebunit</artifactId>
<name>JWebUnit</name>
- <version>2.1</version>
+ <version>2.2-SNAPSHOT</version>
<packaging>pom</packaging>
<description>
JWebUnit is a Java framework that facilitates creation of
@@ -180,9 +180,9 @@
</license>
</licenses>
<scm>
- <connection>scm:svn:http://jwebunit.svn.sourceforge.net/svnroot/jwebunit/tags/jwebunit-2.1</connection>
- <developerConnection>scm:svn:https://jwebunit.svn.sourceforge.net/svnroot/jwebunit/tags/jwebunit-2.1</developerConnection>
- <url>http://jwebunit.svn.sourceforge.net/viewvc/jwebunit/tags/jwebunit-2.1</url>
+ <connection>scm:svn:http://jwebunit.svn.sourceforge.net/svnroot/jwebunit/trunk</connection>
+ <developerConnection>scm:svn:https://jwebunit.svn.sourceforge.net/svnroot/jwebunit/trunk</developerConnection>
+ <url>http://jwebunit.svn.sourceforge.net/viewvc/jwebunit/trunk</url>
</scm>
<organization>
<name>SourceForge</name>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <he...@us...> - 2008-12-12 20:00:59
|
Revision: 789
http://jwebunit.svn.sourceforge.net/jwebunit/?rev=789&view=rev
Author: henryju
Date: 2008-12-12 20:00:55 +0000 (Fri, 12 Dec 2008)
Log Message:
-----------
Updated files I forgot to update before actually starting to release.
Modified Paths:
--------------
trunk/README.txt
trunk/pom.xml
trunk/src/changes/changes.xml
Modified: trunk/README.txt
===================================================================
--- trunk/README.txt 2008-12-12 18:47:19 UTC (rev 788)
+++ trunk/README.txt 2008-12-12 20:00:55 UTC (rev 789)
@@ -1,4 +1,4 @@
-The JWebUnit team is pleased to announce the JWebUnit 2.0 release!
+The JWebUnit team is pleased to announce the JWebUnit 2.1 release!
http://jwebunit.sourceforge.net
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2008-12-12 18:47:19 UTC (rev 788)
+++ trunk/pom.xml 2008-12-12 20:00:55 UTC (rev 789)
@@ -379,7 +379,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
- <version>2.5.0</version>
+ <version>2.5</version>
<reportSets>
<reportSet>
<id>aggregate</id>
Modified: trunk/src/changes/changes.xml
===================================================================
--- trunk/src/changes/changes.xml 2008-12-12 18:47:19 UTC (rev 788)
+++ trunk/src/changes/changes.xml 2008-12-12 20:00:55 UTC (rev 789)
@@ -7,7 +7,7 @@
</author>
</properties>
<body>
- <release version="2.1" date="Unknown">
+ <release version="2.1" date="December 12, 2008">
<action type="add" dev="jevonwright">
Added new IElement element interface, and methods to directly access elements by XPath.
</action>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <jev...@us...> - 2008-12-17 02:12:24
|
Revision: 791
http://jwebunit.svn.sourceforge.net/jwebunit/?rev=791&view=rev
Author: jevonwright
Date: 2008-12-17 02:11:09 +0000 (Wed, 17 Dec 2008)
Log Message:
-----------
adding a test case to make sure that cookies persist across page requests
Modified Paths:
--------------
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/WebCookieTest.java
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/util/CookiesServlet.java
trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/util/TestContext.java
Modified: trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/WebCookieTest.java
===================================================================
--- trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/WebCookieTest.java 2008-12-12 20:52:32 UTC (rev 790)
+++ trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/WebCookieTest.java 2008-12-17 02:11:09 UTC (rev 791)
@@ -52,4 +52,22 @@
beginAt("/cookies.jsp");
assertCookieValueMatch("serveurCookie", "fo*");
}
+
+ /**
+ * Test that the cookie still exists across multiple requests,
+ * even if the cookie is not explicitly set each time.
+ */
+ public void testCookieWithoutExplicitSet() {
+ beginAt("/cookies.jsp"); // beginAt also resets cookies
+ assertCookieValueEquals("serveurCookie", "foo");
+ gotoPage("/cookies.jsp?dont_set=1");
+ assertCookieValueEquals("serveurCookie", "foo"); // should still be there
+ gotoPage("/cookies.jsp?dont_set=1");
+ assertCookieValueEquals("serveurCookie", "foo"); // should still be there
+ gotoPage("/cookies.jsp?dont_set=1");
+ assertCookieValueEquals("serveurCookie", "foo"); // should still be there
+
+
+ }
+
}
\ No newline at end of file
Modified: trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/util/CookiesServlet.java
===================================================================
--- trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/util/CookiesServlet.java 2008-12-12 20:52:32 UTC (rev 790)
+++ trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/util/CookiesServlet.java 2008-12-17 02:11:09 UTC (rev 791)
@@ -52,8 +52,11 @@
out.write(HtmlHelper.getEnd());
- Cookie cookie = new Cookie("serveurCookie","foo");
- response.addCookie(cookie);
+ // to disable explicitly setting the cookie on each request
+ if (request.getParameter("dont_set") == null) {
+ Cookie cookie = new Cookie("serveurCookie","foo");
+ response.addCookie(cookie);
+ }
}
}
Modified: trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/util/TestContext.java
===================================================================
--- trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/util/TestContext.java 2008-12-12 20:52:32 UTC (rev 790)
+++ trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/util/TestContext.java 2008-12-17 02:11:09 UTC (rev 791)
@@ -127,11 +127,26 @@
* @param name cookie name.
* @param value cookie value.
* @param domain cookie domain (ie localhost or www.foo.bar).
+ * @param expiry the expiry date in seconds. -1 will delete this cookie, 0 will delete it at the end of the browser session.
*/
+ public void addCookie(String name, String value, String domain, int expiry) {
+ Cookie c = new Cookie(name, value);
+ c.setDomain(domain);
+ c.setMaxAge(expiry);
+ addCookie(c);
+ }
+
+ /**
+ * Add a cookie to the test context. These cookies are set on the conversation when you use a {WebTester#beginAt}.
+ *
+ * @param name cookie name.
+ * @param value cookie value.
+ * @param domain cookie domain (ie localhost or www.foo.bar).
+ */
public void addCookie(String name, String value, String domain) {
Cookie c = new Cookie(name, value);
c.setDomain(domain);
- cookies.add(c);
+ addCookie(c);
}
/**
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <he...@us...> - 2009-01-04 22:14:20
|
Revision: 792
http://jwebunit.svn.sourceforge.net/jwebunit/?rev=792&view=rev
Author: henryju
Date: 2009-01-04 21:53:48 +0000 (Sun, 04 Jan 2009)
Log Message:
-----------
Updated to HtmlUnit 2.4 and fixed failing JUnit tests (mainly because of HtmlUnit now dealing much more properly with spaces).
Modified Paths:
--------------
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/FormSubmissionTest.java
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/FramesAndWindowsTest.java
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/JavaScriptTest.java
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/TableAssertionsTest.java
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/util/ParamsServlet.java
trunk/jwebunit-commons-tests/src/main/resources/testcases/TableAssertionsTest/TableAssertionsTestPage.html
trunk/pom.xml
trunk/src/changes/changes.xml
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 2008-12-17 02:11:09 UTC (rev 791)
+++ trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/FormSubmissionTest.java 2009-01-04 21:53:48 UTC (rev 792)
@@ -51,7 +51,7 @@
setTextField("text", "sometext");
submit("button");
assertTextPresent("Submitted parameters");
- assertTextPresent("Params are: text=sometext");
+ assertTextPresent("Params are:\ntext=sometext");
clickLink("return");
setTextField("text", "anothertext");
submit();
@@ -116,7 +116,7 @@
checkCheckbox("checkBox", "3");
checkCheckbox("checkBox", "3"); // check for duplicates
submit();
- assertTextPresent("checkBox=1,3 ");
+ assertTextPresent("checkBox=1,3\n");
}
public void testCheckBoxDeSelectionWithSameFieldName() {
@@ -136,7 +136,7 @@
setTextField("color", "blue");
uncheckCheckbox("checkBox");
submit();
- assertTextPresent("color=blue ");
+ assertTextPresent("color=blue\n");
}
public void testRadioSelection() {
@@ -144,7 +144,7 @@
clickRadioOption("radio", "1");
assertRadioOptionSelected("radio", "1");
submit();
- assertTextPresent("radio=1 ");
+ assertTextPresent("radio=1\n");
clickLink("return");
clickRadioOption("radio", "2");
clickRadioOption("radio", "3");
@@ -152,14 +152,14 @@
assertRadioOptionNotSelected("radio", "2");
assertRadioOptionSelected("radio", "3");
submit();
- assertTextPresent("radio=3 ");
+ assertTextPresent("radio=3\n");
}
public void testSingleFormSingleUnnamedButtonSubmission() {
beginAt("/SingleUnnamedButtonForm.html");
setTextField("color", "blue");
submit();
- assertTextPresent("color=blue ");
+ assertTextPresent("color=blue\n");
}
public void testSingleNamedButtonSubmission() {
@@ -172,7 +172,7 @@
public void testSingleFormMultipleButtonSubmission() {
gotoMultiButtonPage();
submit("color");
- assertTextPresent("Params are: color=red");
+ assertTextPresent("Params are:\ncolor=red");
gotoMultiButtonPage();
submit("color", "blue");
assertTextPresent("color=blue");
@@ -252,7 +252,7 @@
beginAt("/MultiFormPage.html");
setTextField("param2", "anyvalue");
submit("button2b");
- assertTextPresent("param2=anyvalue ");
+ assertTextPresent("param2=anyvalue\n");
assertTextPresent("button2b=b2b");
}
@@ -261,7 +261,7 @@
setTextField("param2", "anyvalue");
reset();
submit("button2b");
- assertTextNotPresent("param2=anyvalue ");
+ assertTextNotPresent("param2=anyvalue\n");
assertTextPresent("button2b=b2b");
}
Modified: trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/FramesAndWindowsTest.java
===================================================================
--- trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/FramesAndWindowsTest.java 2008-12-17 02:11:09 UTC (rev 791)
+++ trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/FramesAndWindowsTest.java 2009-01-04 21:53:48 UTC (rev 792)
@@ -151,7 +151,7 @@
assertFormPresent();
setTextField("color", "red");
submit("submit");
- assertTextPresent("color=red ");
+ assertTextPresent("color=red\n");
}
public void testFormInputInInlineFrame() {
@@ -160,7 +160,7 @@
assertFormPresent();
setTextField("color", "red");
submit("submit");
- assertTextPresent("color=red ");
+ assertTextPresent("color=red\n");
}
//TODO this just posts to a new frameset inside the frame, is the test needed?
Modified: trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/JavaScriptTest.java
===================================================================
--- trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/JavaScriptTest.java 2008-12-17 02:11:09 UTC (rev 791)
+++ trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/JavaScriptTest.java 2009-01-04 21:53:48 UTC (rev 792)
@@ -26,8 +26,7 @@
public void testDocumentWrite() {
beginAt("DocumentWrite.html");
- //FIXME Fails with HtmlUnit
- //assertTextPresent("Hello World");
+ assertTextPresent("Hello World");
}
public void testAlert() {
Modified: trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/TableAssertionsTest.java
===================================================================
--- trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/TableAssertionsTest.java 2008-12-17 02:11:09 UTC (rev 791)
+++ trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/TableAssertionsTest.java 2009-01-04 21:53:48 UTC (rev 792)
@@ -144,8 +144,8 @@
public void testTableWithSpaces() throws Throwable {
assertTablePresent("tree");
- String[][] table = { { "root", "", "", "" },
- { "child1 ;semicolon", "", "child2", "" },
+ String[][] table = { { "root", " ", "" },
+ { "child1 ;semicolon", " ", "child2", " " },
{ "child1.1", "", "child2.1", "child2.2" } };
assertTableEquals("tree", table);
}
@@ -204,7 +204,7 @@
public void testTableWithSpacesMatch() throws Throwable {
assertTablePresent("tree");
- String[][] table = {{"root", "", "", ""},
+ String[][] table = {{"root", "", ""},
{"child1 ;semicolon", "", "child2", ""},
{"child1.1", "", "child2.1", "child2.2"}};
assertTableMatch("tree", table);
Modified: trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/util/ParamsServlet.java
===================================================================
--- trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/util/ParamsServlet.java 2008-12-17 02:11:09 UTC (rev 791)
+++ trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/util/ParamsServlet.java 2009-01-04 21:53:48 UTC (rev 792)
@@ -34,10 +34,10 @@
response.setContentType("text/html");
PrintWriter out = response.getWriter();
out.write(HtmlHelper.getStart("Submitted parameters"));
- out.write("<h1>Submitted parameters</h1>\n<p>Params are:");
+ out.write("<h1>Submitted parameters</h1>\n<p>Params are:<br/>");
/*
* Prints POST and GET parameters as name=value1[,value2...] separated
- * with spaces
+ * by <BR/>
*/
// Check that we have a file upload request
@@ -75,10 +75,13 @@
String contentType = item.getContentType();
boolean isInMemory = item.isInMemory();
long sizeInBytes = item.getSize();
- out.write(" " + item.getFieldName() + "=" + item.getName()
+ out.write(" " + fieldName + "=" + fileName
+ "{" + new String(item.get()) + "}");
}
+ if (iter.hasNext()) {
+ out.write("<br/>\n");
+ }
}
out.write(" </p>\n");
out.write(HtmlHelper.getLinkParagraph("return", ref));
@@ -87,7 +90,7 @@
for (; params.hasMoreElements();) {
String p = params.nextElement().toString();
String[] v = request.getParameterValues(p);
- out.write(" " + p + "=");
+ out.write(p + "=");
int n = v.length;
if (n > 0) {
out.write(v[0] != null ? v[0] : "");
@@ -95,6 +98,9 @@
out.write("," + (v[i] != null ? v[i] : ""));
}
}
+ if (params.hasMoreElements()) {
+ out.write("<br/>\n");
+ }
}
out.write(" </p>\n");
String ref = request.getHeader("Referer");
Modified: trunk/jwebunit-commons-tests/src/main/resources/testcases/TableAssertionsTest/TableAssertionsTestPage.html
===================================================================
--- trunk/jwebunit-commons-tests/src/main/resources/testcases/TableAssertionsTest/TableAssertionsTestPage.html 2008-12-17 02:11:09 UTC (rev 791)
+++ trunk/jwebunit-commons-tests/src/main/resources/testcases/TableAssertionsTest/TableAssertionsTestPage.html 2009-01-04 21:53:48 UTC (rev 792)
@@ -23,10 +23,10 @@
<table id="tree"><tbody>
<tr><td>root</td><td> </td>
- <td> </td><td> </td></tr>
+ <td><!-- Empty --></td></tr>
<tr><td><a href="">child1</a><a href=""> ;semicolon</a></td><td> </td>
<td>child2</td><td> </td></tr>
- <tr><td>child1.1</td><td> </td>
+ <tr><td>child1.1</td><td></td>
<td>child2.1</td><td>child2.2</td></tr>
</tbody>
</table>
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2008-12-17 02:11:09 UTC (rev 791)
+++ trunk/pom.xml 2009-01-04 21:53:48 UTC (rev 792)
@@ -294,7 +294,7 @@
<dependency>
<groupId>net.sourceforge.htmlunit</groupId>
<artifactId>htmlunit</artifactId>
- <version>2.3</version>
+ <version>2.4</version>
</dependency>
<dependency>
<groupId>org.openqa.selenium.client-drivers</groupId>
Modified: trunk/src/changes/changes.xml
===================================================================
--- trunk/src/changes/changes.xml 2008-12-17 02:11:09 UTC (rev 791)
+++ trunk/src/changes/changes.xml 2009-01-04 21:53:48 UTC (rev 792)
@@ -7,42 +7,47 @@
</author>
</properties>
<body>
- <release version="2.1" date="December 12, 2008">
- <action type="add" dev="jevonwright">
- Added new IElement element interface, and methods to directly access elements by XPath.
- </action>
- <action type="add" dev="jevonwright" issue="1744628">
- Added assertHeader*() and assertResponseCode*() methods.
- </action>
- <action type="add" dev="jevonwright" issue="1728676">
- Added WebTestCase(WebTester) constructor.
- </action>
- <action type="add" dev="jevonwright" issue="1519807">
- Added assertLabeledFieldEquals(id, text), assertLabel*(), and setLabeledFormElementField(id, value) methods.
- </action>
- <action type="update" dev="jevonwright">
- BC CHANGE: setFormElement(), assertFormElementEquals() methods will no longer assert that a form already exists in the page (as allowed by the HTML standard).
- </action>
- <action type="fix" dev="jevonwright" issue="1724695">
- navigator.userAgent is no longer null by default.
- Test cases now use the Firefox 3.0 user agent as the default, rather than MSIE 4.0.
- </action>
- <action type="fix" dev="jevonwright" issue="2306967" due-to="r_monson">
- Fixed proxy authentication bug in HtmlUnit implementation.
- </action>
- <action type="add" dev="jevonwright" issue="1637716">
- Added assertMatch(regexp, text) and assertNotMatch(regexp, text) methods.
- </action>
- <action type="add" dev="jevonwright" issue="1277374">
- Added assertCommentPresent(text) and assertCommentNotPresent(text) methods.
- </action>
- <action type="add" dev="jevonwright" issue="1674646">
- Added setTimeout() method.
- </action>
- <action type="fix" dev="jevonwright" issue="2404789">
- Cleaned up the quickstart documentation.
- </action>
- </release>
+ <release version="2.2" date="UNKNOW">
+ <action type="update" dev="henryju">
+ Updated to HtmlUnit 2.4.
+ </action>
+ </release>
+ <release version="2.1" date="December 12, 2008">
+ <action type="add" dev="jevonwright">
+ Added new IElement element interface, and methods to directly access elements by XPath.
+ </action>
+ <action type="add" dev="jevonwright" issue="1744628">
+ Added assertHeader*() and assertResponseCode*() methods.
+ </action>
+ <action type="add" dev="jevonwright" issue="1728676">
+ Added WebTestCase(WebTester) constructor.
+ </action>
+ <action type="add" dev="jevonwright" issue="1519807">
+ Added assertLabeledFieldEquals(id, text), assertLabel*(), and setLabeledFormElementField(id, value) methods.
+ </action>
+ <action type="update" dev="jevonwright">
+ BC CHANGE: setFormElement(), assertFormElementEquals() methods will no longer assert that a form already exists in the page (as allowed by the HTML standard).
+ </action>
+ <action type="fix" dev="jevonwright" issue="1724695">
+ navigator.userAgent is no longer null by default.
+ Test cases now use the Firefox 3.0 user agent as the default, rather than MSIE 4.0.
+ </action>
+ <action type="fix" dev="jevonwright" issue="2306967" due-to="r_monson">
+ Fixed proxy authentication bug in HtmlUnit implementation.
+ </action>
+ <action type="add" dev="jevonwright" issue="1637716">
+ Added assertMatch(regexp, text) and assertNotMatch(regexp, text) methods.
+ </action>
+ <action type="add" dev="jevonwright" issue="1277374">
+ Added assertCommentPresent(text) and assertCommentNotPresent(text) methods.
+ </action>
+ <action type="add" dev="jevonwright" issue="1674646">
+ Added setTimeout() method.
+ </action>
+ <action type="fix" dev="jevonwright" issue="2404789">
+ Cleaned up the quickstart documentation.
+ </action>
+ </release>
<release version="2.0" date="October 27, 2008">
<action type="update" dev="henryju">
Updated to HtmlUnit 2.3.
@@ -55,7 +60,7 @@
<action type="update" dev="henryju" issue="1950248" due-to="Agnes Ro">
Updated to HtmlUnit 2.1 and Java 1.5.
</action>
- </release>
+ </release>
<release version="1.5" date="april 22, 2008" description="The latest major release before Java 1.5 migration">
<action type="fix" dev="henryju" issue="1860745" due-to="Ward Bergmans">
setProxyAuthorization caused IllegalArgumentException with null username/password and not null host/port.
@@ -83,24 +88,24 @@
Rename IJWebUnitDialog in ITestingEngine.
</action>
</release>
- <release version="1.4.1" date="may 5, 2007">
- <action type="fix" dev="henryju" issue="1706395" due-to="meilon">
+ <release version="1.4.1" date="may 5, 2007">
+ <action type="fix" dev="henryju" issue="1706395" due-to="meilon">
getPageSource() now returns source of the current frame or window.
</action>
- <action type="fix" dev="henryju" issue="1708229,1710809,1712633" due-to="Jon,Joe Fisher">
+ <action type="fix" dev="henryju" issue="1708229,1710809,1712633" due-to="Jon,Joe Fisher">
setTextField now doesn't change the current working form if already set.
clickRadioOption now doesn't change the current working form if already set.
assertFormElementPresent now only searches the current working form if already set.
</action>
- </release>
- <release version="1.4" date="march 17, 2007">
- <action type="update" dev="henryju">
+ </release>
+ <release version="1.4" date="march 17, 2007">
+ <action type="update" dev="henryju">
Update to HtmlUnit 1.11.
</action>
- <action type="add" dev="henryju" issue="1677214" due-to="Dragan Pazin">
+ <action type="add" dev="henryju" issue="1677214" due-to="Dragan Pazin">
Add a new method: getElementTextByXPath.
</action>
- </release>
+ </release>
<release version="1.4-RC4" date="march 04, 2007">
<action type="add" dev="henryju" issue="993058" due-to="Chris Eldredge">
Add new ResourceBundle related methods allowing formatting of resources.
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <he...@us...> - 2009-01-21 14:11:03
|
Revision: 794
http://jwebunit.svn.sourceforge.net/jwebunit/?rev=794&view=rev
Author: henryju
Date: 2009-01-21 14:11:01 +0000 (Wed, 21 Jan 2009)
Log Message:
-----------
Fixed JUnit tests on Windows (problem with system dependent line breaks)
Modified Paths:
--------------
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/FormSubmissionTest.java
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/FramesAndWindowsTest.java
trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/junit/WebTester.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 2009-01-14 08:08:40 UTC (rev 793)
+++ trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/FormSubmissionTest.java 2009-01-21 14:11:01 UTC (rev 794)
@@ -51,7 +51,7 @@
setTextField("text", "sometext");
submit("button");
assertTextPresent("Submitted parameters");
- assertTextPresent("Params are:\ntext=sometext");
+ assertTextPresent("Params are:" + System.getProperty("line.separator") + "text=sometext");
clickLink("return");
setTextField("text", "anothertext");
submit();
@@ -116,7 +116,7 @@
checkCheckbox("checkBox", "3");
checkCheckbox("checkBox", "3"); // check for duplicates
submit();
- assertTextPresent("checkBox=1,3\n");
+ assertTextPresent("checkBox=1,3" + System.getProperty("line.separator"));
}
public void testCheckBoxDeSelectionWithSameFieldName() {
@@ -136,7 +136,7 @@
setTextField("color", "blue");
uncheckCheckbox("checkBox");
submit();
- assertTextPresent("color=blue\n");
+ assertTextPresent("color=blue" + System.getProperty("line.separator"));
}
public void testRadioSelection() {
@@ -144,7 +144,7 @@
clickRadioOption("radio", "1");
assertRadioOptionSelected("radio", "1");
submit();
- assertTextPresent("radio=1\n");
+ assertTextPresent("radio=1" + System.getProperty("line.separator"));
clickLink("return");
clickRadioOption("radio", "2");
clickRadioOption("radio", "3");
@@ -152,14 +152,14 @@
assertRadioOptionNotSelected("radio", "2");
assertRadioOptionSelected("radio", "3");
submit();
- assertTextPresent("radio=3\n");
+ assertTextPresent("radio=3" + System.getProperty("line.separator"));
}
public void testSingleFormSingleUnnamedButtonSubmission() {
beginAt("/SingleUnnamedButtonForm.html");
setTextField("color", "blue");
submit();
- assertTextPresent("color=blue\n");
+ assertTextPresent("color=blue" + System.getProperty("line.separator"));
}
public void testSingleNamedButtonSubmission() {
@@ -172,7 +172,7 @@
public void testSingleFormMultipleButtonSubmission() {
gotoMultiButtonPage();
submit("color");
- assertTextPresent("Params are:\ncolor=red");
+ assertTextPresent("Params are:" + System.getProperty("line.separator") + "color=red");
gotoMultiButtonPage();
submit("color", "blue");
assertTextPresent("color=blue");
@@ -252,7 +252,7 @@
beginAt("/MultiFormPage.html");
setTextField("param2", "anyvalue");
submit("button2b");
- assertTextPresent("param2=anyvalue\n");
+ assertTextPresent("param2=anyvalue" + System.getProperty("line.separator"));
assertTextPresent("button2b=b2b");
}
Modified: trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/FramesAndWindowsTest.java
===================================================================
--- trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/FramesAndWindowsTest.java 2009-01-14 08:08:40 UTC (rev 793)
+++ trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/FramesAndWindowsTest.java 2009-01-21 14:11:01 UTC (rev 794)
@@ -151,7 +151,7 @@
assertFormPresent();
setTextField("color", "red");
submit("submit");
- assertTextPresent("color=red\n");
+ assertTextPresent("color=red" + System.getProperty("line.separator"));
}
public void testFormInputInInlineFrame() {
@@ -160,7 +160,7 @@
assertFormPresent();
setTextField("color", "red");
submit("submit");
- assertTextPresent("color=red\n");
+ assertTextPresent("color=red" + System.getProperty("line.separator"));
}
//TODO this just posts to a new frameset inside the frame, is the test needed?
Modified: trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/junit/WebTester.java
===================================================================
--- trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/junit/WebTester.java 2009-01-14 08:08:40 UTC (rev 793)
+++ trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/junit/WebTester.java 2009-01-21 14:11:01 UTC (rev 794)
@@ -3205,7 +3205,7 @@
}
/**
- * Tell that the given alert boxe is expected.
+ * Tell that the given alert box is expected.
*
* @param message Message in the alert.
*/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <he...@us...> - 2009-01-21 14:17:28
|
Revision: 795
http://jwebunit.svn.sourceforge.net/jwebunit/?rev=795&view=rev
Author: henryju
Date: 2009-01-21 14:17:24 +0000 (Wed, 21 Jan 2009)
Log Message:
-----------
[2525065] Fixed memory leak by closing all windows when test ends.
Modified Paths:
--------------
trunk/jwebunit-htmlunit-plugin/src/main/java/net/sourceforge/jwebunit/htmlunit/HtmlUnitTestingEngineImpl.java
trunk/src/changes/changes.xml
Modified: trunk/jwebunit-htmlunit-plugin/src/main/java/net/sourceforge/jwebunit/htmlunit/HtmlUnitTestingEngineImpl.java
===================================================================
--- trunk/jwebunit-htmlunit-plugin/src/main/java/net/sourceforge/jwebunit/htmlunit/HtmlUnitTestingEngineImpl.java 2009-01-21 14:11:01 UTC (rev 794)
+++ trunk/jwebunit-htmlunit-plugin/src/main/java/net/sourceforge/jwebunit/htmlunit/HtmlUnitTestingEngineImpl.java 2009-01-21 14:17:24 UTC (rev 795)
@@ -180,7 +180,10 @@
public void closeBrowser() throws ExpectedJavascriptAlertException,
ExpectedJavascriptConfirmException,
ExpectedJavascriptPromptException {
- wc = null;
+ if (wc!=null) {
+ wc.closeAllWindows();
+ wc = null;
+ }
form = null; // reset current form
if (this.expectedJavascriptAlerts.size() > 0) {
throw new ExpectedJavascriptAlertException(
@@ -772,7 +775,7 @@
wc.setCredentialsProvider(creds);
wc.addWebWindowListener(new WebWindowListener() {
public void webWindowClosed(WebWindowEvent event) {
- if (event.getOldPage().equals(win.getEnclosedPage())) {
+ if (win==null || event.getOldPage().equals(win.getEnclosedPage())) {
win = wc.getCurrentWindow();
form = null;
}
Modified: trunk/src/changes/changes.xml
===================================================================
--- trunk/src/changes/changes.xml 2009-01-21 14:11:01 UTC (rev 794)
+++ trunk/src/changes/changes.xml 2009-01-21 14:17:24 UTC (rev 795)
@@ -8,10 +8,13 @@
</properties>
<body>
<release version="2.2" date="UNKNOW">
- <action type="update" dev="henryju">
- Updated to HtmlUnit 2.4.
- </action>
- </release>
+ <action type="fix" dev="henryju" issue="2525065" due-to="Sivan Mozes">
+ WebClient.closeAllWindows() called to prevent memory leak.
+ </action>
+ <action type="update" dev="henryju">
+ Updated to HtmlUnit 2.4.
+ </action>
+ </release>
<release version="2.1" date="December 12, 2008">
<action type="add" dev="jevonwright">
Added new IElement element interface, and methods to directly access elements by XPath.
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <he...@us...> - 2009-02-05 16:37:26
|
Revision: 796
http://jwebunit.svn.sourceforge.net/jwebunit/?rev=796&view=rev
Author: henryju
Date: 2009-02-05 16:37:19 +0000 (Thu, 05 Feb 2009)
Log Message:
-----------
[2568604] Used buffered output stream to improve WebTester.saveAs method performances.
Modified Paths:
--------------
trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/junit/WebTester.java
trunk/src/changes/changes.xml
Modified: trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/junit/WebTester.java
===================================================================
--- trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/junit/WebTester.java 2009-01-21 14:17:24 UTC (rev 795)
+++ trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/junit/WebTester.java 2009-02-05 16:37:19 UTC (rev 796)
@@ -6,10 +6,12 @@
import java.awt.Image;
import java.awt.image.BufferedImage;
+import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
+import java.io.OutputStream;
import java.io.PrintStream;
import java.net.MalformedURLException;
import java.net.URL;
@@ -2963,7 +2965,7 @@
int c=0;
try {
f.createNewFile();
- FileOutputStream out = new FileOutputStream(f);
+ OutputStream out = new BufferedOutputStream(new FileOutputStream(f));
while ((c=in.read()) != -1) out.write(c);
in.close();
out.close();
Modified: trunk/src/changes/changes.xml
===================================================================
--- trunk/src/changes/changes.xml 2009-01-21 14:17:24 UTC (rev 795)
+++ trunk/src/changes/changes.xml 2009-02-05 16:37:19 UTC (rev 796)
@@ -8,6 +8,9 @@
</properties>
<body>
<release version="2.2" date="UNKNOW">
+ <action type="fix" dev="henryju" issue="2568604" due-to="Umkhulubaas">
+ Used buffered output stream to improve WebTester.saveAs method performances.
+ </action>
<action type="fix" dev="henryju" issue="2525065" due-to="Sivan Mozes">
WebClient.closeAllWindows() called to prevent memory leak.
</action>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <he...@us...> - 2009-02-28 12:51:53
|
Revision: 797
http://jwebunit.svn.sourceforge.net/jwebunit/?rev=797&view=rev
Author: henryju
Date: 2009-02-28 12:48:03 +0000 (Sat, 28 Feb 2009)
Log Message:
-----------
[2647451] Exposed option to toggle exceptions on Javascript errors. (thanks to Kent R. Spillner)
Modified Paths:
--------------
trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/api/ITestingEngine.java
trunk/jwebunit-htmlunit-plugin/src/main/java/net/sourceforge/jwebunit/htmlunit/HtmlUnitTestingEngineImpl.java
trunk/jwebunit-selenium-plugin/src/main/java/net/sourceforge/jwebunit/selenium/SeleniumTestingEngineImpl.java
trunk/src/changes/changes.xml
Modified: trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/api/ITestingEngine.java
===================================================================
--- trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/api/ITestingEngine.java 2009-02-05 16:37:19 UTC (rev 796)
+++ trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/api/ITestingEngine.java 2009-02-28 12:48:03 UTC (rev 797)
@@ -67,6 +67,13 @@
void setScriptingEnabled(boolean value);
/**
+ * Set whether or not to throw an exception on Javascript errors.
+ *
+ * @param value true to throw an exception on Javascript errors.
+ */
+ void setThrowExceptionOnScriptError(boolean value);
+
+ /**
* Get all cookies.
*
* @return List of javax.servlet.http.Cookie.
Modified: trunk/jwebunit-htmlunit-plugin/src/main/java/net/sourceforge/jwebunit/htmlunit/HtmlUnitTestingEngineImpl.java
===================================================================
--- trunk/jwebunit-htmlunit-plugin/src/main/java/net/sourceforge/jwebunit/htmlunit/HtmlUnitTestingEngineImpl.java 2009-02-05 16:37:19 UTC (rev 796)
+++ trunk/jwebunit-htmlunit-plugin/src/main/java/net/sourceforge/jwebunit/htmlunit/HtmlUnitTestingEngineImpl.java 2009-02-28 12:48:03 UTC (rev 797)
@@ -128,6 +128,11 @@
private boolean jsEnabled = true;
/**
+ * Should throw exception on Javascript error.
+ */
+ private boolean throwExceptionOnScriptError = true;
+
+ /**
* Javascript alerts.
*/
private LinkedList<JavascriptAlert> expectedJavascriptAlerts = new LinkedList<JavascriptAlert>();
@@ -236,6 +241,13 @@
}
}
+ public void setThrowExceptionOnScriptError(boolean value) {
+ throwExceptionOnScriptError = value;
+ if (wc != null) {
+ wc.setThrowExceptionOnScriptError(throwExceptionOnScriptError);
+ }
+ }
+
public List<javax.servlet.http.Cookie> getCookies() {
List<javax.servlet.http.Cookie> result = new LinkedList<javax.servlet.http.Cookie>();
Set<Cookie> cookies = wc.getCookieManager().getCookies();
@@ -745,7 +757,7 @@
wc = new WebClient(bv);
}
wc.setJavaScriptEnabled(jsEnabled);
- wc.setThrowExceptionOnScriptError(true);
+ wc.setThrowExceptionOnScriptError(throwExceptionOnScriptError);
wc.setRedirectEnabled(true);
wc.setRefreshHandler(new ImmediateRefreshHandler());
wc.setTimeout(timeout);
Modified: trunk/jwebunit-selenium-plugin/src/main/java/net/sourceforge/jwebunit/selenium/SeleniumTestingEngineImpl.java
===================================================================
--- trunk/jwebunit-selenium-plugin/src/main/java/net/sourceforge/jwebunit/selenium/SeleniumTestingEngineImpl.java 2009-02-05 16:37:19 UTC (rev 796)
+++ trunk/jwebunit-selenium-plugin/src/main/java/net/sourceforge/jwebunit/selenium/SeleniumTestingEngineImpl.java 2009-02-28 12:48:03 UTC (rev 797)
@@ -430,6 +430,10 @@
if(value == false) throw new UnsupportedOperationException("setScriptingEnabled");
}
+ public void setThrowExceptionOnScriptError(boolean value) {
+ throw new UnsupportedOperationException("setThrowExceptionOnScriptError");
+ }
+
public void setTextField(String inputName, String text) {
String xpath1 = formSelector() + "//input[@name='" + inputName
+ "' and (@type='text' or @type='password' or @type='file')]";
Modified: trunk/src/changes/changes.xml
===================================================================
--- trunk/src/changes/changes.xml 2009-02-05 16:37:19 UTC (rev 796)
+++ trunk/src/changes/changes.xml 2009-02-28 12:48:03 UTC (rev 797)
@@ -8,6 +8,9 @@
</properties>
<body>
<release version="2.2" date="UNKNOW">
+ <action type="add" dev="henryju" issue="2647451" due-to="Kent R. Spillner">
+ Exposed option to toggle exceptions on Javascript errors.
+ </action>
<action type="fix" dev="henryju" issue="2568604" due-to="Umkhulubaas">
Used buffered output stream to improve WebTester.saveAs method performances.
</action>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <he...@us...> - 2009-03-02 18:46:17
|
Revision: 798
http://jwebunit.svn.sourceforge.net/jwebunit/?rev=798&view=rev
Author: henryju
Date: 2009-03-02 18:46:13 +0000 (Mon, 02 Mar 2009)
Log Message:
-----------
[2647451] Added JUnit test with some modifications.
Modified Paths:
--------------
trunk/jwebunit-htmlunit-plugin/pom.xml
trunk/jwebunit-htmlunit-plugin/src/main/java/net/sourceforge/jwebunit/htmlunit/HtmlUnitTestingEngineImpl.java
trunk/jwebunit-selenium-plugin/src/main/java/net/sourceforge/jwebunit/selenium/SeleniumTestingEngineImpl.java
Added Paths:
-----------
trunk/jwebunit-htmlunit-plugin/src/test/java/net/sourceforge/jwebunit/htmlunit/HtmlUnitTestingEngineImplTest.java
Modified: trunk/jwebunit-htmlunit-plugin/pom.xml
===================================================================
--- trunk/jwebunit-htmlunit-plugin/pom.xml 2009-02-28 12:48:03 UTC (rev 797)
+++ trunk/jwebunit-htmlunit-plugin/pom.xml 2009-03-02 18:46:13 UTC (rev 798)
@@ -34,6 +34,12 @@
<scope>test</scope>
</dependency>
<dependency>
+ <groupId>org.mockito</groupId>
+ <artifactId>mockito-all</artifactId>
+ <version>1.7</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
<groupId>net.sourceforge.htmlunit</groupId>
<artifactId>htmlunit</artifactId>
</dependency>
Modified: trunk/jwebunit-htmlunit-plugin/src/main/java/net/sourceforge/jwebunit/htmlunit/HtmlUnitTestingEngineImpl.java
===================================================================
--- trunk/jwebunit-htmlunit-plugin/src/main/java/net/sourceforge/jwebunit/htmlunit/HtmlUnitTestingEngineImpl.java 2009-02-28 12:48:03 UTC (rev 797)
+++ trunk/jwebunit-htmlunit-plugin/src/main/java/net/sourceforge/jwebunit/htmlunit/HtmlUnitTestingEngineImpl.java 2009-03-02 18:46:13 UTC (rev 798)
@@ -165,6 +165,21 @@
// Implementation of IJWebUnitDialog
/**
+ * Initializes default HtmlUnit testing engine implementation.
+ */
+ public HtmlUnitTestingEngineImpl() {
+ }
+
+ /**
+ * Initializes HtmlUnit testing engine implementation with web client.
+ *
+ * @param client web client
+ */
+ HtmlUnitTestingEngineImpl(WebClient client) {
+ this.wc = client;
+ }
+
+ /**
* Begin a dialog with an initial URL and test client context.
*
* @param initialURL absolute url at which to begin dialog.
Added: trunk/jwebunit-htmlunit-plugin/src/test/java/net/sourceforge/jwebunit/htmlunit/HtmlUnitTestingEngineImplTest.java
===================================================================
--- trunk/jwebunit-htmlunit-plugin/src/test/java/net/sourceforge/jwebunit/htmlunit/HtmlUnitTestingEngineImplTest.java (rev 0)
+++ trunk/jwebunit-htmlunit-plugin/src/test/java/net/sourceforge/jwebunit/htmlunit/HtmlUnitTestingEngineImplTest.java 2009-03-02 18:46:13 UTC (rev 798)
@@ -0,0 +1,19 @@
+package net.sourceforge.jwebunit.htmlunit;
+
+import junit.framework.TestCase;
+import com.gargoylesoftware.htmlunit.WebClient;
+import net.sourceforge.jwebunit.api.ITestingEngine;
+import static org.mockito.Mockito.mock;
+import static org.mockito.Mockito.verify;
+
+public class HtmlUnitTestingEngineImplTest extends TestCase {
+ public void testSetThrowExceptionOnScriptErrorShouldSetSameOnUnderlyingWebClient() throws Exception {
+ WebClient client = mock(WebClient.class);
+ ITestingEngine engine = new HtmlUnitTestingEngineImpl(client);
+
+ engine.setThrowExceptionOnScriptError(true);
+
+ verify(client).setThrowExceptionOnScriptError(true);
+ }
+
+}
Modified: trunk/jwebunit-selenium-plugin/src/main/java/net/sourceforge/jwebunit/selenium/SeleniumTestingEngineImpl.java
===================================================================
--- trunk/jwebunit-selenium-plugin/src/main/java/net/sourceforge/jwebunit/selenium/SeleniumTestingEngineImpl.java 2009-02-28 12:48:03 UTC (rev 797)
+++ trunk/jwebunit-selenium-plugin/src/main/java/net/sourceforge/jwebunit/selenium/SeleniumTestingEngineImpl.java 2009-03-02 18:46:13 UTC (rev 798)
@@ -431,7 +431,8 @@
}
public void setThrowExceptionOnScriptError(boolean value) {
- throw new UnsupportedOperationException("setThrowExceptionOnScriptError");
+ throw new UnsupportedOperationException(SeleniumTestingEngineImpl.class.getSimpleName()
+ + "#setThrowExceptionOnScriptError is not supported");
}
public void setTextField(String inputName, String text) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <he...@us...> - 2009-03-02 19:08:57
|
Revision: 799
http://jwebunit.svn.sourceforge.net/jwebunit/?rev=799&view=rev
Author: henryju
Date: 2009-03-02 19:08:46 +0000 (Mon, 02 Mar 2009)
Log Message:
-----------
[2106019] Enable partial matches of image src and alt attributes. Thanks to Kent R. Spillner.
Modified Paths:
--------------
trunk/jwebunit-core/pom.xml
trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/junit/WebTester.java
trunk/src/changes/changes.xml
Added Paths:
-----------
trunk/jwebunit-core/src/test/java/net/sourceforge/jwebunit/junit/
trunk/jwebunit-core/src/test/java/net/sourceforge/jwebunit/junit/WebTesterTest.java
Modified: trunk/jwebunit-core/pom.xml
===================================================================
--- trunk/jwebunit-core/pom.xml 2009-03-02 18:46:13 UTC (rev 798)
+++ trunk/jwebunit-core/pom.xml 2009-03-02 19:08:46 UTC (rev 799)
@@ -17,6 +17,12 @@
<artifactId>junit</artifactId>
</dependency>
<dependency>
+ <groupId>org.mockito</groupId>
+ <artifactId>mockito-all</artifactId>
+ <version>1.7</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
<groupId>regexp</groupId>
<artifactId>regexp</artifactId>
</dependency>
Modified: trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/junit/WebTester.java
===================================================================
--- trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/junit/WebTester.java 2009-03-02 18:46:13 UTC (rev 798)
+++ trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/junit/WebTester.java 2009-03-02 19:08:46 UTC (rev 799)
@@ -3324,6 +3324,11 @@
}
}
+ /**
+ * Assert there is at least one image in the page with given src and (optional) alt attributes.
+ * @param imageSrc Value of image src attribute.
+ * @param imageAlt Value of image alt attribute. Ignored when null.
+ */
public void assertImagePresent(String imageSrc, String imageAlt) {
String xpath = "//img[@src=\"" + imageSrc + "\"";
if (imageAlt!= null) {
@@ -3334,6 +3339,20 @@
}
/**
+ * Assert there is at least one image in the page with given partial src and (optional) partial alt attributes.
+ * @param partialImageSrc
+ * @param partialImageAlt
+ */
+ public void assertImagePresentPartial(String partialImageSrc, String partialImageAlt) {
+ String xpath = "//img[contains(@src, \"" + partialImageSrc + "\")";
+ if (partialImageAlt!= null) {
+ xpath += " and contains(@alt, \"" + partialImageAlt + "\")";
+ }
+ xpath += "]";
+ assertElementPresentByXPath(xpath);
+ }
+
+ /**
* @see #assertImageValidAndStore(String, String, java.io.File)
*/
public void assertImageValid(String imageSrc, String imageAlt) {
Added: trunk/jwebunit-core/src/test/java/net/sourceforge/jwebunit/junit/WebTesterTest.java
===================================================================
--- trunk/jwebunit-core/src/test/java/net/sourceforge/jwebunit/junit/WebTesterTest.java (rev 0)
+++ trunk/jwebunit-core/src/test/java/net/sourceforge/jwebunit/junit/WebTesterTest.java 2009-03-02 19:08:46 UTC (rev 799)
@@ -0,0 +1,47 @@
+package net.sourceforge.jwebunit.junit;
+
+import junit.framework.TestCase;
+import net.sourceforge.jwebunit.api.ITestingEngine;
+import static org.mockito.Mockito.mock;
+import static org.mockito.Mockito.verify;
+import static org.mockito.Mockito.when;
+
+public class WebTesterTest extends TestCase {
+ public void testAssertImageSrcContainsShouldDelegateXPathExpressionToUnderlyingTestingEngine() throws Exception {
+ String xpath = "//img[" + contains("src", "SOME URL") + "]";
+
+ ITestingEngine engine = engine(xpath, true);
+ WebTester tester = webTester(engine);
+
+ tester.assertImagePresentPartial("SOME URL", null);
+
+ verify(engine).hasElementByXPath(xpath);
+ }
+
+ public void testAssertImageContainsShouldDelegateXPathExpressionToUnderlyingTestingEngine() throws Exception {
+ String xpath = "//img[" + contains("src", "SOME URL") + " and " + contains("alt", "SOME ALT TEXT") + "]";
+
+ ITestingEngine engine = engine(xpath, true);
+ WebTester tester = webTester(engine);
+
+ tester.assertImagePresentPartial("SOME URL", "SOME ALT TEXT");
+
+ verify(engine).hasElementByXPath(xpath);
+ }
+
+ private String contains(String attribute, String substring) {
+ return "contains(@" + attribute + ", \"" + substring + "\")";
+ }
+
+ private ITestingEngine engine(String xpath, boolean hasElement) {
+ ITestingEngine mock = mock(ITestingEngine.class);
+ when(mock.hasElementByXPath(xpath)).thenReturn(hasElement);
+ return mock;
+ }
+
+ private WebTester webTester(ITestingEngine engine) {
+ WebTester tester = new WebTester();
+ tester.setDialog(engine);
+ return tester;
+ }
+}
Modified: trunk/src/changes/changes.xml
===================================================================
--- trunk/src/changes/changes.xml 2009-03-02 18:46:13 UTC (rev 798)
+++ trunk/src/changes/changes.xml 2009-03-02 19:08:46 UTC (rev 799)
@@ -8,6 +8,9 @@
</properties>
<body>
<release version="2.2" date="UNKNOW">
+ <action type="add" dev="henryju" issue="2106019" due-to="Kent R. Spillner">
+ Enable partial matches of image src and alt attributes. Added assertImagePresentPartial(String partialImageSrc, String partialImageAlt) method.
+ </action>
<action type="add" dev="henryju" issue="2647451" due-to="Kent R. Spillner">
Exposed option to toggle exceptions on Javascript errors.
</action>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <he...@us...> - 2009-04-28 14:03:27
|
Revision: 802
http://jwebunit.svn.sourceforge.net/jwebunit/?rev=802&view=rev
Author: henryju
Date: 2009-04-28 13:41:05 +0000 (Tue, 28 Apr 2009)
Log Message:
-----------
Updated to HtmlUnit 2.5 + other minor plugin upgrades.
Modified Paths:
--------------
trunk/pom.xml
trunk/src/changes/changes.xml
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2009-03-10 15:44:23 UTC (rev 801)
+++ trunk/pom.xml 2009-04-28 13:41:05 UTC (rev 802)
@@ -213,7 +213,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
- <version>2.0-beta-8</version>
+ <version>2.0-beta-9</version>
<configuration>
<autoVersionSubmodules>true</autoVersionSubmodules>
<preparationGoals>clean install</preparationGoals>
@@ -231,6 +231,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-eclipse-plugin</artifactId>
+ <version>2.6</version>
<configuration>
<downloadSources>true</downloadSources>
<downloadJavadoc>true</downloadJavadoc>
@@ -294,7 +295,7 @@
<dependency>
<groupId>net.sourceforge.htmlunit</groupId>
<artifactId>htmlunit</artifactId>
- <version>2.4</version>
+ <version>2.5</version>
</dependency>
<dependency>
<groupId>org.openqa.selenium.client-drivers</groupId>
Modified: trunk/src/changes/changes.xml
===================================================================
--- trunk/src/changes/changes.xml 2009-03-10 15:44:23 UTC (rev 801)
+++ trunk/src/changes/changes.xml 2009-04-28 13:41:05 UTC (rev 802)
@@ -8,6 +8,9 @@
</properties>
<body>
<release version="2.2" date="UNKNOW">
+ <action type="update" dev="henryju">
+ Updated to HtmlUnit 2.5.
+ </action>
<action type="add" dev="henryju" issue="2106019" due-to="Kent R. Spillner">
Enable partial matches of image src and alt attributes. Added assertImagePresentPartial(String partialImageSrc, String partialImageAlt) method.
</action>
@@ -20,9 +23,6 @@
<action type="fix" dev="henryju" issue="2525065" due-to="Sivan Mozes">
WebClient.closeAllWindows() called to prevent memory leak.
</action>
- <action type="update" dev="henryju">
- Updated to HtmlUnit 2.4.
- </action>
</release>
<release version="2.1" date="December 12, 2008">
<action type="add" dev="jevonwright">
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <he...@us...> - 2009-05-15 08:09:47
|
Revision: 803
http://jwebunit.svn.sourceforge.net/jwebunit/?rev=803&view=rev
Author: henryju
Date: 2009-05-15 08:09:37 +0000 (Fri, 15 May 2009)
Log Message:
-----------
Prepared the 2.2 release.
Modified Paths:
--------------
trunk/README.txt
trunk/src/changes/changes.xml
trunk/src/site/xdoc/how-to-release.xml
Modified: trunk/README.txt
===================================================================
--- trunk/README.txt 2009-04-28 13:41:05 UTC (rev 802)
+++ trunk/README.txt 2009-05-15 08:09:37 UTC (rev 803)
@@ -1,4 +1,4 @@
-The JWebUnit team is pleased to announce the JWebUnit 2.1 release!
+The JWebUnit team is pleased to announce the JWebUnit 2.2 release!
http://jwebunit.sourceforge.net
Modified: trunk/src/changes/changes.xml
===================================================================
--- trunk/src/changes/changes.xml 2009-04-28 13:41:05 UTC (rev 802)
+++ trunk/src/changes/changes.xml 2009-05-15 08:09:37 UTC (rev 803)
@@ -7,7 +7,7 @@
</author>
</properties>
<body>
- <release version="2.2" date="UNKNOW">
+ <release version="2.2" date="May 15, 2009">
<action type="update" dev="henryju">
Updated to HtmlUnit 2.5.
</action>
Modified: trunk/src/site/xdoc/how-to-release.xml
===================================================================
--- trunk/src/site/xdoc/how-to-release.xml 2009-04-28 13:41:05 UTC (rev 802)
+++ trunk/src/site/xdoc/how-to-release.xml 2009-05-15 08:09:37 UTC (rev 803)
@@ -15,6 +15,7 @@
<li>Ensure you repository is up to date by running: <tt>svn update</tt></li>
<li>Edit <tt>src/changes/changes.xml</tt> to set release date instead of "unknow"</li>
<li>Update readme.txt (at least update the version number)</li>
+ <li>Commit the changes</li>
</ul>
</p>
<p>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <he...@us...> - 2009-05-15 08:31:39
|
Revision: 804
http://jwebunit.svn.sourceforge.net/jwebunit/?rev=804&view=rev
Author: henryju
Date: 2009-05-15 08:31:32 +0000 (Fri, 15 May 2009)
Log Message:
-----------
[maven-release-plugin] prepare release jwebunit-2.2
Modified Paths:
--------------
trunk/jwebunit-commons-tests/pom.xml
trunk/jwebunit-core/pom.xml
trunk/jwebunit-htmlunit-plugin/pom.xml
trunk/jwebunit-selenium-plugin/pom.xml
trunk/jwebunit-webtestcase-generator/pom.xml
trunk/pom.xml
Modified: trunk/jwebunit-commons-tests/pom.xml
===================================================================
--- trunk/jwebunit-commons-tests/pom.xml 2009-05-15 08:09:37 UTC (rev 803)
+++ trunk/jwebunit-commons-tests/pom.xml 2009-05-15 08:31:32 UTC (rev 804)
@@ -1,42 +1,42 @@
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <parent>
- <artifactId>jwebunit</artifactId>
- <groupId>net.sourceforge.jwebunit</groupId>
- <version>2.2-SNAPSHOT</version>
- <relativePath>../</relativePath>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <artifactId>jwebunit-commons-tests</artifactId>
- <name>Commons Tests</name>
- <description>All test cases that each plugin should pass.</description>
- <dependencies>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- </dependency>
- <dependency>
- <groupId>junitperf</groupId>
- <artifactId>junitperf</artifactId>
- </dependency>
- <dependency>
- <groupId>org.mortbay.jetty</groupId>
- <artifactId>jetty</artifactId>
- </dependency>
- <dependency>
- <groupId>net.sourceforge.jwebunit</groupId>
- <artifactId>jwebunit-core</artifactId>
- <version>${pom.version}</version>
- </dependency>
- <dependency>
- <groupId>commons-fileupload</groupId>
- <artifactId>commons-fileupload</artifactId>
- </dependency>
- <dependency>
- <groupId>commons-io</groupId>
- <artifactId>commons-io</artifactId>
- </dependency>
- </dependencies>
- <properties>
- <topDirectoryLocation>..</topDirectoryLocation>
- </properties>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <parent>
+ <artifactId>jwebunit</artifactId>
+ <groupId>net.sourceforge.jwebunit</groupId>
+ <version>2.2</version>
+ <relativePath>../</relativePath>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <artifactId>jwebunit-commons-tests</artifactId>
+ <name>Commons Tests</name>
+ <description>All test cases that each plugin should pass.</description>
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>junitperf</groupId>
+ <artifactId>junitperf</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.mortbay.jetty</groupId>
+ <artifactId>jetty</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>net.sourceforge.jwebunit</groupId>
+ <artifactId>jwebunit-core</artifactId>
+ <version>${pom.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>commons-fileupload</groupId>
+ <artifactId>commons-fileupload</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>commons-io</groupId>
+ <artifactId>commons-io</artifactId>
+ </dependency>
+ </dependencies>
+ <properties>
+ <topDirectoryLocation>..</topDirectoryLocation>
+ </properties>
</project>
\ No newline at end of file
Modified: trunk/jwebunit-core/pom.xml
===================================================================
--- trunk/jwebunit-core/pom.xml 2009-05-15 08:09:37 UTC (rev 803)
+++ trunk/jwebunit-core/pom.xml 2009-05-15 08:31:32 UTC (rev 804)
@@ -1,84 +1,84 @@
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <parent>
- <artifactId>jwebunit</artifactId>
- <groupId>net.sourceforge.jwebunit</groupId>
- <version>2.2-SNAPSHOT</version>
- <relativePath>../</relativePath>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <artifactId>jwebunit-core</artifactId>
- <name>Core - API</name>
- <description>
- The core API of JWebUnit. Define how tests should be written and interface for testing engines.
- </description>
- <dependencies>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- </dependency>
- <dependency>
- <groupId>org.mockito</groupId>
- <artifactId>mockito-all</artifactId>
- <version>1.7</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>regexp</groupId>
- <artifactId>regexp</artifactId>
- </dependency>
- <dependency>
- <groupId>javax.servlet</groupId>
- <artifactId>servlet-api</artifactId>
- </dependency>
- </dependencies>
- <properties>
- <topDirectoryLocation>..</topDirectoryLocation>
- </properties>
- <build>
- <plugins>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>exec-maven-plugin</artifactId>
- <executions>
- <execution>
- <phase>generate-sources</phase>
- <goals>
- <goal>java</goal>
- </goals>
- <configuration>
- <sourceRoot>
- ${project.build.directory}/generated-sources/main/java
- </sourceRoot>
- </configuration>
- </execution>
- </executions>
- <configuration>
- <mainClass>
- net.sourceforge.jwebunit.javacc.WebTestCaseGenerator
- </mainClass>
- <arguments>
- <argument>${basedir}/src/main/java</argument>
- <argument>
- ${project.build.directory}/generated-sources/main/java
- </argument>
- </arguments>
- <includePluginDependencies>
- true
- </includePluginDependencies>
- <includeProjectDependencies>
- false
- </includeProjectDependencies>
- </configuration>
- <dependencies>
- <dependency>
- <groupId>net.sourceforge.jwebunit</groupId>
- <artifactId>
- jwebunit-webtestcase-generator
- </artifactId>
- <version>${pom.version}</version>
- </dependency>
- </dependencies>
- </plugin>
- </plugins>
- </build>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <parent>
+ <artifactId>jwebunit</artifactId>
+ <groupId>net.sourceforge.jwebunit</groupId>
+ <version>2.2</version>
+ <relativePath>../</relativePath>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <artifactId>jwebunit-core</artifactId>
+ <name>Core - API</name>
+ <description>
+ The core API of JWebUnit. Define how tests should be written and interface for testing engines.
+ </description>
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.mockito</groupId>
+ <artifactId>mockito-all</artifactId>
+ <version>1.7</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>regexp</groupId>
+ <artifactId>regexp</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>servlet-api</artifactId>
+ </dependency>
+ </dependencies>
+ <properties>
+ <topDirectoryLocation>..</topDirectoryLocation>
+ </properties>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>exec-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>generate-sources</phase>
+ <goals>
+ <goal>java</goal>
+ </goals>
+ <configuration>
+ <sourceRoot>
+ ${project.build.directory}/generated-sources/main/java
+ </sourceRoot>
+ </configuration>
+ </execution>
+ </executions>
+ <configuration>
+ <mainClass>
+ net.sourceforge.jwebunit.javacc.WebTestCaseGenerator
+ </mainClass>
+ <arguments>
+ <argument>${basedir}/src/main/java</argument>
+ <argument>
+ ${project.build.directory}/generated-sources/main/java
+ </argument>
+ </arguments>
+ <includePluginDependencies>
+ true
+ </includePluginDependencies>
+ <includeProjectDependencies>
+ false
+ </includeProjectDependencies>
+ </configuration>
+ <dependencies>
+ <dependency>
+ <groupId>net.sourceforge.jwebunit</groupId>
+ <artifactId>
+ jwebunit-webtestcase-generator
+ </artifactId>
+ <version>${pom.version}</version>
+ </dependency>
+ </dependencies>
+ </plugin>
+ </plugins>
+ </build>
</project>
\ No newline at end of file
Modified: trunk/jwebunit-htmlunit-plugin/pom.xml
===================================================================
--- trunk/jwebunit-htmlunit-plugin/pom.xml 2009-05-15 08:09:37 UTC (rev 803)
+++ trunk/jwebunit-htmlunit-plugin/pom.xml 2009-05-15 08:31:32 UTC (rev 804)
@@ -1,73 +1,73 @@
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <parent>
- <artifactId>jwebunit</artifactId>
- <groupId>net.sourceforge.jwebunit</groupId>
- <version>2.2-SNAPSHOT</version>
- <relativePath>../</relativePath>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <artifactId>jwebunit-htmlunit-plugin</artifactId>
- <name>HtmlUnit Plugin</name>
- <description>HtmlUnit plugin for JWebUnit.</description>
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <testFailureIgnore>false</testFailureIgnore>
- <includes>
- <include>**/*Test.java</include>
- <include>**/*Tests.java</include>
- </includes>
- <excludes>
- <exclude>**/*AbstractTest.java</exclude>
- <exclude>**/*AbstractTests.java</exclude>
- </excludes>
- </configuration>
- </plugin>
- </plugins>
- </build>
- <dependencies>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.mockito</groupId>
- <artifactId>mockito-all</artifactId>
- <version>1.7</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>net.sourceforge.htmlunit</groupId>
- <artifactId>htmlunit</artifactId>
- </dependency>
- <dependency>
- <groupId>net.sourceforge.jwebunit</groupId>
- <artifactId>jwebunit-core</artifactId>
- <version>${pom.version}</version>
- </dependency>
- <dependency>
- <groupId>net.sourceforge.jwebunit</groupId>
- <artifactId>jwebunit-commons-tests</artifactId>
- <version>${pom.version}</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-api</artifactId>
- </dependency>
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-log4j12</artifactId>
- </dependency>
- <dependency>
- <groupId>javax.servlet</groupId>
- <artifactId>servlet-api</artifactId>
- </dependency>
- </dependencies>
- <properties>
- <topDirectoryLocation>..</topDirectoryLocation>
- </properties>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <parent>
+ <artifactId>jwebunit</artifactId>
+ <groupId>net.sourceforge.jwebunit</groupId>
+ <version>2.2</version>
+ <relativePath>../</relativePath>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <artifactId>jwebunit-htmlunit-plugin</artifactId>
+ <name>HtmlUnit Plugin</name>
+ <description>HtmlUnit plugin for JWebUnit.</description>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <testFailureIgnore>false</testFailureIgnore>
+ <includes>
+ <include>**/*Test.java</include>
+ <include>**/*Tests.java</include>
+ </includes>
+ <excludes>
+ <exclude>**/*AbstractTest.java</exclude>
+ <exclude>**/*AbstractTests.java</exclude>
+ </excludes>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.mockito</groupId>
+ <artifactId>mockito-all</artifactId>
+ <version>1.7</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>net.sourceforge.htmlunit</groupId>
+ <artifactId>htmlunit</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>net.sourceforge.jwebunit</groupId>
+ <artifactId>jwebunit-core</artifactId>
+ <version>${pom.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>net.sourceforge.jwebunit</groupId>
+ <artifactId>jwebunit-commons-tests</artifactId>
+ <version>${pom.version}</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-api</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-log4j12</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>servlet-api</artifactId>
+ </dependency>
+ </dependencies>
+ <properties>
+ <topDirectoryLocation>..</topDirectoryLocation>
+ </properties>
</project>
\ No newline at end of file
Modified: trunk/jwebunit-selenium-plugin/pom.xml
===================================================================
--- trunk/jwebunit-selenium-plugin/pom.xml 2009-05-15 08:09:37 UTC (rev 803)
+++ trunk/jwebunit-selenium-plugin/pom.xml 2009-05-15 08:31:32 UTC (rev 804)
@@ -1,103 +1,103 @@
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <parent>
- <artifactId>jwebunit</artifactId>
- <groupId>net.sourceforge.jwebunit</groupId>
- <version>2.2-SNAPSHOT</version>
- <relativePath>..</relativePath>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <artifactId>jwebunit-selenium-plugin</artifactId>
- <name>Selenium Plugin</name>
- <description>Selenium plugin for JWebUnit.</description>
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <testFailureIgnore>true</testFailureIgnore>
- <skip>true</skip>
- <includes>
- <include>**/*Test.java</include>
- <include>**/*Tests.java</include>
- </includes>
- <excludes>
- <exclude>**/*AbstractTest.java</exclude>
- <exclude>**/*AbstractTests.java</exclude>
- </excludes>
- </configuration>
- </plugin>
- <!-- Requires java 1.5 -->
- <!--plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>selenium-maven-plugin</artifactId>
- <executions>
- <execution>
- <id>start</id>
- <phase>process-test-classes</phase>
- <goals>
- <goal>start-server</goal>
- </goals>
- <configuration>
- <background>true</background>
- <multiWindow>true</multiWindow>
- </configuration>
- </execution>
- </executions>
- <dependencies>
- <dependency>
- <groupId>org.openqa.selenium.server</groupId>
- <artifactId>selenium-server</artifactId>
- <version>1.0-beta-1</version>
- </dependency>
- </dependencies>
- </plugin-->
- </plugins>
- </build>
- <dependencies>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.openqa.selenium.client-drivers</groupId>
- <artifactId>selenium-java-client-driver</artifactId>
- <exclusions>
- <exclusion>
- <groupId>org.openqa.selenium.server</groupId>
- <artifactId>selenium-server-coreless</artifactId>
- </exclusion>
- <exclusion>
- <groupId>org.openqa.selenium.server</groupId>
- <artifactId>selenium-server</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>net.sourceforge.jwebunit</groupId>
- <artifactId>jwebunit-core</artifactId>
- <version>${pom.version}</version>
- </dependency>
- <dependency>
- <groupId>net.sourceforge.jwebunit</groupId>
- <artifactId>jwebunit-commons-tests</artifactId>
- <version>${pom.version}</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-api</artifactId>
- </dependency>
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-log4j12</artifactId>
- </dependency>
- <dependency>
- <groupId>javax.servlet</groupId>
- <artifactId>servlet-api</artifactId>
- </dependency>
- </dependencies>
- <properties>
- <topDirectoryLocation>..</topDirectoryLocation>
- </properties>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <parent>
+ <artifactId>jwebunit</artifactId>
+ <groupId>net.sourceforge.jwebunit</groupId>
+ <version>2.2</version>
+ <relativePath>..</relativePath>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <artifactId>jwebunit-selenium-plugin</artifactId>
+ <name>Selenium Plugin</name>
+ <description>Selenium plugin for JWebUnit.</description>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <testFailureIgnore>true</testFailureIgnore>
+ <skip>true</skip>
+ <includes>
+ <include>**/*Test.java</include>
+ <include>**/*Tests.java</include>
+ </includes>
+ <excludes>
+ <exclude>**/*AbstractTest.java</exclude>
+ <exclude>**/*AbstractTests.java</exclude>
+ </excludes>
+ </configuration>
+ </plugin>
+ <!-- Requires java 1.5 -->
+ <!--plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>selenium-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>start</id>
+ <phase>process-test-classes</phase>
+ <goals>
+ <goal>start-server</goal>
+ </goals>
+ <configuration>
+ <background>true</background>
+ <multiWindow>true</multiWindow>
+ </configuration>
+ </execution>
+ </executions>
+ <dependencies>
+ <dependency>
+ <groupId>org.openqa.selenium.server</groupId>
+ <artifactId>selenium-server</artifactId>
+ <version>1.0-beta-1</version>
+ </dependency>
+ </dependencies>
+ </plugin-->
+ </plugins>
+ </build>
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.openqa.selenium.client-drivers</groupId>
+ <artifactId>selenium-java-client-driver</artifactId>
+ <exclusions>
+ <exclusion>
+ <groupId>org.openqa.selenium.server</groupId>
+ <artifactId>selenium-server-coreless</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.openqa.selenium.server</groupId>
+ <artifactId>selenium-server</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>net.sourceforge.jwebunit</groupId>
+ <artifactId>jwebunit-core</artifactId>
+ <version>${pom.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>net.sourceforge.jwebunit</groupId>
+ <artifactId>jwebunit-commons-tests</artifactId>
+ <version>${pom.version}</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-api</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-log4j12</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>servlet-api</artifactId>
+ </dependency>
+ </dependencies>
+ <properties>
+ <topDirectoryLocation>..</topDirectoryLocation>
+ </properties>
</project>
\ No newline at end of file
Modified: trunk/jwebunit-webtestcase-generator/pom.xml
===================================================================
--- trunk/jwebunit-webtestcase-generator/pom.xml 2009-05-15 08:09:37 UTC (rev 803)
+++ trunk/jwebunit-webtestcase-generator/pom.xml 2009-05-15 08:31:32 UTC (rev 804)
@@ -1,33 +1,33 @@
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <parent>
- <artifactId>jwebunit</artifactId>
- <groupId>net.sourceforge.jwebunit</groupId>
- <version>2.2-SNAPSHOT</version>
- <relativePath>../</relativePath>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <artifactId>jwebunit-webtestcase-generator</artifactId>
- <name>WebTestCase Generator</name>
- <description>A little parser that create WebTestCase from WebTester.</description>
- <properties>
- <topDirectoryLocation>..</topDirectoryLocation>
- </properties>
- <build>
- <plugins>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>javacc-maven-plugin</artifactId>
- <executions>
- <execution>
- <goals>
- <goal>javacc</goal>
- </goals>
- <configuration>
- <outputDirectory>target/generated-sources/javacc</outputDirectory>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
-</project>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <parent>
+ <artifactId>jwebunit</artifactId>
+ <groupId>net.sourceforge.jwebunit</groupId>
+ <version>2.2</version>
+ <relativePath>../</relativePath>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <artifactId>jwebunit-webtestcase-generator</artifactId>
+ <name>WebTestCase Generator</name>
+ <description>A little parser that create WebTestCase from WebTester.</description>
+ <properties>
+ <topDirectoryLocation>..</topDirectoryLocation>
+ </properties>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>javacc-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <goals>
+ <goal>javacc</goal>
+ </goals>
+ <configuration>
+ <outputDirectory>target/generated-sources/javacc</outputDirectory>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+</project>
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2009-05-15 08:09:37 UTC (rev 803)
+++ trunk/pom.xml 2009-05-15 08:31:32 UTC (rev 804)
@@ -1,493 +1,493 @@
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <groupId>net.sourceforge.jwebunit</groupId>
- <artifactId>jwebunit</artifactId>
- <name>JWebUnit</name>
- <version>2.2-SNAPSHOT</version>
- <packaging>pom</packaging>
- <description>
- JWebUnit is a Java framework that facilitates creation of
- acceptance tests for web applications. It evolved from a project
- where we were using HttpUnit and JUnit to create acceptance
- tests. As the tests were being written, they were continuously
- refactored to remove duplication and other bad smells in the
- test code. JWebUnit is the result of these refactorings.
- </description>
- <url>http://jwebunit.sourceforge.net</url>
- <issueManagement>
- <system>sourceforge</system>
- <url>http://sourceforge.net/tracker/?group_id=61302</url>
- </issueManagement>
- <inceptionYear>2002</inceptionYear>
- <modules>
- <module>jwebunit-webtestcase-generator</module>
- <module>jwebunit-core</module>
- <module>jwebunit-commons-tests</module>
- <module>jwebunit-htmlunit-plugin</module>
- <module>jwebunit-selenium-plugin</module>
- </modules>
- <mailingLists>
- <mailingList>
- <name>JWebUnit Development Mailing list</name>
- <subscribe>
- http://lists.sourceforge.net/mailman/listinfo/jwebunit-development
- </subscribe>
- <unsubscribe>
- http://lists.sourceforge.net/mailman/listinfo/jwebunit-development
- </unsubscribe>
- <archive>
- http://sourceforge.net/mailarchive/forum.php?forum_id=40831
- </archive>
- <post>jwe...@li...</post>
- </mailingList>
- <mailingList>
- <name>JWebUnit User Mailing list</name>
- <subscribe>
- http://lists.sourceforge.net/mailman/listinfo/jwebunit-users
- </subscribe>
- <unsubscribe>
- http://lists.sourceforge.net/mailman/listinfo/jwebunit-users
- </unsubscribe>
- <archive>
- http://sourceforge.net/mailarchive/forum.php?forum_id=40830
- </archive>
- <post>jwe...@li...</post>
- </mailingList>
- </mailingLists>
- <developers>
- <developer>
- <id>henryju</id>
- <name>Julien Henry</name>
- <email>henryju at users.sourceforge.net</email>
- <url />
- <organization>Capgemini</organization>
- <organizationUrl>http://www.capgemini.com</organizationUrl>
- <roles>
- <role>Developer</role>
- </roles>
- <timezone>+2</timezone>
- </developer>
- <developer>
- <id>joshlane</id>
- <name>Josh Lane</name>
- <email>joshlane at users.sourceforge.net</email>
- <url />
- <organization>Brontes Technologies</organization>
- <organizationUrl>
- http://solutions.3m.com/wps/portal/3M/en_US/LavaCOS/3MESPE-LavaCOS/
- </organizationUrl>
- <roles>
- <role>Developer</role>
- </roles>
- <timezone>-5</timezone>
- </developer>
- <developer>
- <id>jevonwright</id>
- <name>Jevon Wright</name>
- <email>jevonwright at users.sourceforge.net</email>
- <url>http://www.jevon.org</url>
- <organization />
- <organizationUrl />
- <roles>
- <role>Developer</role>
- </roles>
- <timezone>+1...
[truncated message content] |
|
From: <he...@us...> - 2009-05-15 08:32:22
|
Revision: 806
http://jwebunit.svn.sourceforge.net/jwebunit/?rev=806&view=rev
Author: henryju
Date: 2009-05-15 08:32:19 +0000 (Fri, 15 May 2009)
Log Message:
-----------
[maven-release-plugin] prepare for next development iteration
Modified Paths:
--------------
trunk/jwebunit-commons-tests/pom.xml
trunk/jwebunit-core/pom.xml
trunk/jwebunit-htmlunit-plugin/pom.xml
trunk/jwebunit-selenium-plugin/pom.xml
trunk/jwebunit-webtestcase-generator/pom.xml
trunk/pom.xml
Modified: trunk/jwebunit-commons-tests/pom.xml
===================================================================
--- trunk/jwebunit-commons-tests/pom.xml 2009-05-15 08:31:55 UTC (rev 805)
+++ trunk/jwebunit-commons-tests/pom.xml 2009-05-15 08:32:19 UTC (rev 806)
@@ -2,7 +2,7 @@
<parent>
<artifactId>jwebunit</artifactId>
<groupId>net.sourceforge.jwebunit</groupId>
- <version>2.2</version>
+ <version>2.3-SNAPSHOT</version>
<relativePath>../</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Modified: trunk/jwebunit-core/pom.xml
===================================================================
--- trunk/jwebunit-core/pom.xml 2009-05-15 08:31:55 UTC (rev 805)
+++ trunk/jwebunit-core/pom.xml 2009-05-15 08:32:19 UTC (rev 806)
@@ -2,7 +2,7 @@
<parent>
<artifactId>jwebunit</artifactId>
<groupId>net.sourceforge.jwebunit</groupId>
- <version>2.2</version>
+ <version>2.3-SNAPSHOT</version>
<relativePath>../</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Modified: trunk/jwebunit-htmlunit-plugin/pom.xml
===================================================================
--- trunk/jwebunit-htmlunit-plugin/pom.xml 2009-05-15 08:31:55 UTC (rev 805)
+++ trunk/jwebunit-htmlunit-plugin/pom.xml 2009-05-15 08:32:19 UTC (rev 806)
@@ -2,7 +2,7 @@
<parent>
<artifactId>jwebunit</artifactId>
<groupId>net.sourceforge.jwebunit</groupId>
- <version>2.2</version>
+ <version>2.3-SNAPSHOT</version>
<relativePath>../</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Modified: trunk/jwebunit-selenium-plugin/pom.xml
===================================================================
--- trunk/jwebunit-selenium-plugin/pom.xml 2009-05-15 08:31:55 UTC (rev 805)
+++ trunk/jwebunit-selenium-plugin/pom.xml 2009-05-15 08:32:19 UTC (rev 806)
@@ -2,7 +2,7 @@
<parent>
<artifactId>jwebunit</artifactId>
<groupId>net.sourceforge.jwebunit</groupId>
- <version>2.2</version>
+ <version>2.3-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Modified: trunk/jwebunit-webtestcase-generator/pom.xml
===================================================================
--- trunk/jwebunit-webtestcase-generator/pom.xml 2009-05-15 08:31:55 UTC (rev 805)
+++ trunk/jwebunit-webtestcase-generator/pom.xml 2009-05-15 08:32:19 UTC (rev 806)
@@ -2,7 +2,7 @@
<parent>
<artifactId>jwebunit</artifactId>
<groupId>net.sourceforge.jwebunit</groupId>
- <version>2.2</version>
+ <version>2.3-SNAPSHOT</version>
<relativePath>../</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2009-05-15 08:31:55 UTC (rev 805)
+++ trunk/pom.xml 2009-05-15 08:32:19 UTC (rev 806)
@@ -3,7 +3,7 @@
<groupId>net.sourceforge.jwebunit</groupId>
<artifactId>jwebunit</artifactId>
<name>JWebUnit</name>
- <version>2.2</version>
+ <version>2.3-SNAPSHOT</version>
<packaging>pom</packaging>
<description>
JWebUnit is a Java framework that facilitates creation of
@@ -180,9 +180,9 @@
</license>
</licenses>
<scm>
- <connection>scm:svn:http://jwebunit.svn.sourceforge.net/svnroot/jwebunit/tags/jwebunit-2.2</connection>
- <developerConnection>scm:svn:https://jwebunit.svn.sourceforge.net/svnroot/jwebunit/tags/jwebunit-2.2</developerConnection>
- <url>http://jwebunit.svn.sourceforge.net/viewvc/jwebunit/tags/jwebunit-2.2</url>
+ <connection>scm:svn:http://jwebunit.svn.sourceforge.net/svnroot/jwebunit/trunk</connection>
+ <developerConnection>scm:svn:https://jwebunit.svn.sourceforge.net/svnroot/jwebunit/trunk</developerConnection>
+ <url>http://jwebunit.svn.sourceforge.net/viewvc/jwebunit/trunk</url>
</scm>
<organization>
<name>SourceForge</name>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <he...@us...> - 2009-06-05 15:14:08
|
Revision: 810
http://jwebunit.svn.sourceforge.net/jwebunit/?rev=810&view=rev
Author: henryju
Date: 2009-06-05 15:14:01 +0000 (Fri, 05 Jun 2009)
Log Message:
-----------
Updated to Selenium 1.0
Modified Paths:
--------------
trunk/jwebunit-selenium-plugin/pom.xml
trunk/pom.xml
trunk/src/changes/changes.xml
Modified: trunk/jwebunit-selenium-plugin/pom.xml
===================================================================
--- trunk/jwebunit-selenium-plugin/pom.xml 2009-06-01 23:03:34 UTC (rev 809)
+++ trunk/jwebunit-selenium-plugin/pom.xml 2009-06-05 15:14:01 UTC (rev 810)
@@ -60,18 +60,8 @@
<scope>test</scope>
</dependency>
<dependency>
- <groupId>org.openqa.selenium.client-drivers</groupId>
+ <groupId>org.seleniumhq.selenium.client-drivers</groupId>
<artifactId>selenium-java-client-driver</artifactId>
- <exclusions>
- <exclusion>
- <groupId>org.openqa.selenium.server</groupId>
- <artifactId>selenium-server-coreless</artifactId>
- </exclusion>
- <exclusion>
- <groupId>org.openqa.selenium.server</groupId>
- <artifactId>selenium-server</artifactId>
- </exclusion>
- </exclusions>
</dependency>
<dependency>
<groupId>net.sourceforge.jwebunit</groupId>
@@ -100,4 +90,4 @@
<properties>
<topDirectoryLocation>..</topDirectoryLocation>
</properties>
-</project>
\ No newline at end of file
+</project>
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2009-06-01 23:03:34 UTC (rev 809)
+++ trunk/pom.xml 2009-06-05 15:14:01 UTC (rev 810)
@@ -192,7 +192,7 @@
<repository>
<id>selenium</id>
<name>Selenium release repository</name>
- <url>http://archiva.openqa.org/repository/releases/</url>
+ <url>http://nexus.openqa.org/content/repositories/releases</url>
</repository>
</repositories>
<build>
@@ -298,9 +298,9 @@
<version>2.5</version>
</dependency>
<dependency>
- <groupId>org.openqa.selenium.client-drivers</groupId>
+ <groupId>org.seleniumhq.selenium.client-drivers</groupId>
<artifactId>selenium-java-client-driver</artifactId>
- <version>1.0-beta-1</version>
+ <version>1.0</version>
</dependency>
<dependency>
<groupId>regexp</groupId>
Modified: trunk/src/changes/changes.xml
===================================================================
--- trunk/src/changes/changes.xml 2009-06-01 23:03:34 UTC (rev 809)
+++ trunk/src/changes/changes.xml 2009-06-05 15:14:01 UTC (rev 810)
@@ -7,6 +7,11 @@
</author>
</properties>
<body>
+ <release version="2.3" date="UNKNOW">
+ <action type="update" dev="henryju">
+ Updated to Selenium RC 1.0.
+ </action>
+ </release>
<release version="2.2" date="May 15, 2009">
<action type="update" dev="henryju">
Updated to HtmlUnit 2.5.
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <he...@us...> - 2009-08-05 14:02:04
|
Revision: 811
http://jwebunit.svn.sourceforge.net/jwebunit/?rev=811&view=rev
Author: henryju
Date: 2009-08-05 14:01:57 +0000 (Wed, 05 Aug 2009)
Log Message:
-----------
[2832635] Code fix based on Findbugs analysis (thanks fantayeneh for the patch).
Modified Paths:
--------------
trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/junit/WebTester.java
trunk/jwebunit-htmlunit-plugin/src/main/java/net/sourceforge/jwebunit/htmlunit/HtmlUnitTestingEngineImpl.java
Modified: trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/junit/WebTester.java
===================================================================
--- trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/junit/WebTester.java 2009-06-05 15:14:01 UTC (rev 810)
+++ trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/junit/WebTester.java 2009-08-05 14:01:57 UTC (rev 811)
@@ -3418,10 +3418,10 @@
// read and compare bytes pair-wise
InputStream i1 = f1.openStream();
InputStream i2 = f2.openStream();
- if (f1 == null) {
+ if (i1 == null) {
throw new IOException(f1.toString() + " can't be opened.");
}
- if (f2 == null) {
+ if (i2 == null) {
throw new IOException(f2.toString() + " can't be opened.");
}
int b1, b2;
Modified: trunk/jwebunit-htmlunit-plugin/src/main/java/net/sourceforge/jwebunit/htmlunit/HtmlUnitTestingEngineImpl.java
===================================================================
--- trunk/jwebunit-htmlunit-plugin/src/main/java/net/sourceforge/jwebunit/htmlunit/HtmlUnitTestingEngineImpl.java 2009-06-05 15:14:01 UTC (rev 810)
+++ trunk/jwebunit-htmlunit-plugin/src/main/java/net/sourceforge/jwebunit/htmlunit/HtmlUnitTestingEngineImpl.java 2009-08-05 14:01:57 UTC (rev 811)
@@ -85,8 +85,8 @@
import com.gargoylesoftware.htmlunit.html.HtmlTable;
import com.gargoylesoftware.htmlunit.html.HtmlTableCell;
import com.gargoylesoftware.htmlunit.html.HtmlTableRow;
-import com.gargoylesoftware.htmlunit.html.HtmlTextArea;
import com.gargoylesoftware.htmlunit.html.HtmlTableRow.CellIterator;
+import com.gargoylesoftware.htmlunit.html.HtmlTextArea;
import com.gargoylesoftware.htmlunit.xml.XmlPage;
/**
@@ -277,8 +277,7 @@
} else {
Date now = Calendar.getInstance().getTime();
// Convert milli-second to second
- Long second = new Long(
- (expire.getTime() - now.getTime()) / 1000);
+ Long second = Long.valueOf((expire.getTime() - now.getTime()) / 1000);
c.setMaxAge(second.intValue());
}
c.setPath(cookie.getPath());
@@ -896,11 +895,8 @@
// Deal with custom request header
Map<String, String> requestHeaders = getTestContext().getRequestHeaders();
- for (String nextRequestHeaderName : requestHeaders.keySet()) {
- String nextRequestHeaderValue = (String) requestHeaders
- .get(nextRequestHeaderName);
-
- wc.addRequestHeader(nextRequestHeaderName, nextRequestHeaderValue);
+ for (Map.Entry<String, String> requestHeader : requestHeaders.entrySet()) {
+ wc.addRequestHeader(requestHeader.getKey(), requestHeader.getValue());
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <he...@us...> - 2009-08-14 22:57:21
|
Revision: 812
http://jwebunit.svn.sourceforge.net/jwebunit/?rev=812&view=rev
Author: henryju
Date: 2009-08-14 22:57:11 +0000 (Fri, 14 Aug 2009)
Log Message:
-----------
Updated JUnit version to 4.7 as it is now fully retrocompatible with JUnit 3.x (thanks to Geneho Kim for the suggestion)
Modified Paths:
--------------
trunk/jwebunit-commons-tests/pom.xml
trunk/jwebunit-core/pom.xml
trunk/jwebunit-htmlunit-plugin/pom.xml
trunk/jwebunit-selenium-plugin/pom.xml
trunk/jwebunit-webtestcase-generator/pom.xml
trunk/pom.xml
Modified: trunk/jwebunit-commons-tests/pom.xml
===================================================================
--- trunk/jwebunit-commons-tests/pom.xml 2009-08-05 14:01:57 UTC (rev 811)
+++ trunk/jwebunit-commons-tests/pom.xml 2009-08-14 22:57:11 UTC (rev 812)
@@ -2,7 +2,7 @@
<parent>
<artifactId>jwebunit</artifactId>
<groupId>net.sourceforge.jwebunit</groupId>
- <version>2.3-SNAPSHOT</version>
+ <version>3.0-SNAPSHOT</version>
<relativePath>../</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Modified: trunk/jwebunit-core/pom.xml
===================================================================
--- trunk/jwebunit-core/pom.xml 2009-08-05 14:01:57 UTC (rev 811)
+++ trunk/jwebunit-core/pom.xml 2009-08-14 22:57:11 UTC (rev 812)
@@ -2,7 +2,7 @@
<parent>
<artifactId>jwebunit</artifactId>
<groupId>net.sourceforge.jwebunit</groupId>
- <version>2.3-SNAPSHOT</version>
+ <version>3.0-SNAPSHOT</version>
<relativePath>../</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Modified: trunk/jwebunit-htmlunit-plugin/pom.xml
===================================================================
--- trunk/jwebunit-htmlunit-plugin/pom.xml 2009-08-05 14:01:57 UTC (rev 811)
+++ trunk/jwebunit-htmlunit-plugin/pom.xml 2009-08-14 22:57:11 UTC (rev 812)
@@ -2,7 +2,7 @@
<parent>
<artifactId>jwebunit</artifactId>
<groupId>net.sourceforge.jwebunit</groupId>
- <version>2.3-SNAPSHOT</version>
+ <version>3.0-SNAPSHOT</version>
<relativePath>../</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Modified: trunk/jwebunit-selenium-plugin/pom.xml
===================================================================
--- trunk/jwebunit-selenium-plugin/pom.xml 2009-08-05 14:01:57 UTC (rev 811)
+++ trunk/jwebunit-selenium-plugin/pom.xml 2009-08-14 22:57:11 UTC (rev 812)
@@ -2,7 +2,7 @@
<parent>
<artifactId>jwebunit</artifactId>
<groupId>net.sourceforge.jwebunit</groupId>
- <version>2.3-SNAPSHOT</version>
+ <version>3.0-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Modified: trunk/jwebunit-webtestcase-generator/pom.xml
===================================================================
--- trunk/jwebunit-webtestcase-generator/pom.xml 2009-08-05 14:01:57 UTC (rev 811)
+++ trunk/jwebunit-webtestcase-generator/pom.xml 2009-08-14 22:57:11 UTC (rev 812)
@@ -2,7 +2,7 @@
<parent>
<artifactId>jwebunit</artifactId>
<groupId>net.sourceforge.jwebunit</groupId>
- <version>2.3-SNAPSHOT</version>
+ <version>3.0-SNAPSHOT</version>
<relativePath>../</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2009-08-05 14:01:57 UTC (rev 811)
+++ trunk/pom.xml 2009-08-14 22:57:11 UTC (rev 812)
@@ -3,7 +3,7 @@
<groupId>net.sourceforge.jwebunit</groupId>
<artifactId>jwebunit</artifactId>
<name>JWebUnit</name>
- <version>2.3-SNAPSHOT</version>
+ <version>3.0-SNAPSHOT</version>
<packaging>pom</packaging>
<description>
JWebUnit is a Java framework that facilitates creation of
@@ -270,7 +270,7 @@
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
- <version>3.8.2</version>
+ <version>4.7</version>
</dependency>
<dependency>
<groupId>junitperf</groupId>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: Jevon W. <je...@je...> - 2009-08-14 23:01:58
|
Hi, Do we really need to mark the new version as 3.0, if there are no incompatible changes? Jevon On Sat, Aug 15, 2009 at 10:57 AM, <he...@us...> wrote: > Revision: 812 > http://jwebunit.svn.sourceforge.net/jwebunit/?rev=812&view=rev > Author: henryju > Date: 2009-08-14 22:57:11 +0000 (Fri, 14 Aug 2009) > > Log Message: > ----------- > Updated JUnit version to 4.7 as it is now fully retrocompatible with JUnit 3.x (thanks to Geneho Kim for the suggestion) > > Modified Paths: > -------------- > trunk/jwebunit-commons-tests/pom.xml > trunk/jwebunit-core/pom.xml > trunk/jwebunit-htmlunit-plugin/pom.xml > trunk/jwebunit-selenium-plugin/pom.xml > trunk/jwebunit-webtestcase-generator/pom.xml > trunk/pom.xml > > Modified: trunk/jwebunit-commons-tests/pom.xml > =================================================================== > --- trunk/jwebunit-commons-tests/pom.xml 2009-08-05 14:01:57 UTC (rev 811) > +++ trunk/jwebunit-commons-tests/pom.xml 2009-08-14 22:57:11 UTC (rev 812) > @@ -2,7 +2,7 @@ > <parent> > <artifactId>jwebunit</artifactId> > <groupId>net.sourceforge.jwebunit</groupId> > - <version>2.3-SNAPSHOT</version> > + <version>3.0-SNAPSHOT</version> > <relativePath>../</relativePath> > </parent> > <modelVersion>4.0.0</modelVersion> > > Modified: trunk/jwebunit-core/pom.xml > =================================================================== > --- trunk/jwebunit-core/pom.xml 2009-08-05 14:01:57 UTC (rev 811) > +++ trunk/jwebunit-core/pom.xml 2009-08-14 22:57:11 UTC (rev 812) > @@ -2,7 +2,7 @@ > <parent> > <artifactId>jwebunit</artifactId> > <groupId>net.sourceforge.jwebunit</groupId> > - <version>2.3-SNAPSHOT</version> > + <version>3.0-SNAPSHOT</version> > <relativePath>../</relativePath> > </parent> > <modelVersion>4.0.0</modelVersion> > > Modified: trunk/jwebunit-htmlunit-plugin/pom.xml > =================================================================== > --- trunk/jwebunit-htmlunit-plugin/pom.xml 2009-08-05 14:01:57 UTC (rev 811) > +++ trunk/jwebunit-htmlunit-plugin/pom.xml 2009-08-14 22:57:11 UTC (rev 812) > @@ -2,7 +2,7 @@ > <parent> > <artifactId>jwebunit</artifactId> > <groupId>net.sourceforge.jwebunit</groupId> > - <version>2.3-SNAPSHOT</version> > + <version>3.0-SNAPSHOT</version> > <relativePath>../</relativePath> > </parent> > <modelVersion>4.0.0</modelVersion> > > Modified: trunk/jwebunit-selenium-plugin/pom.xml > =================================================================== > --- trunk/jwebunit-selenium-plugin/pom.xml 2009-08-05 14:01:57 UTC (rev 811) > +++ trunk/jwebunit-selenium-plugin/pom.xml 2009-08-14 22:57:11 UTC (rev 812) > @@ -2,7 +2,7 @@ > <parent> > <artifactId>jwebunit</artifactId> > <groupId>net.sourceforge.jwebunit</groupId> > - <version>2.3-SNAPSHOT</version> > + <version>3.0-SNAPSHOT</version> > <relativePath>..</relativePath> > </parent> > <modelVersion>4.0.0</modelVersion> > > Modified: trunk/jwebunit-webtestcase-generator/pom.xml > =================================================================== > --- trunk/jwebunit-webtestcase-generator/pom.xml 2009-08-05 14:01:57 UTC (rev 811) > +++ trunk/jwebunit-webtestcase-generator/pom.xml 2009-08-14 22:57:11 UTC (rev 812) > @@ -2,7 +2,7 @@ > <parent> > <artifactId>jwebunit</artifactId> > <groupId>net.sourceforge.jwebunit</groupId> > - <version>2.3-SNAPSHOT</version> > + <version>3.0-SNAPSHOT</version> > <relativePath>../</relativePath> > </parent> > <modelVersion>4.0.0</modelVersion> > > Modified: trunk/pom.xml > =================================================================== > --- trunk/pom.xml 2009-08-05 14:01:57 UTC (rev 811) > +++ trunk/pom.xml 2009-08-14 22:57:11 UTC (rev 812) > @@ -3,7 +3,7 @@ > <groupId>net.sourceforge.jwebunit</groupId> > <artifactId>jwebunit</artifactId> > <name>JWebUnit</name> > - <version>2.3-SNAPSHOT</version> > + <version>3.0-SNAPSHOT</version> > <packaging>pom</packaging> > <description> > JWebUnit is a Java framework that facilitates creation of > @@ -270,7 +270,7 @@ > <dependency> > <groupId>junit</groupId> > <artifactId>junit</artifactId> > - <version>3.8.2</version> > + <version>4.7</version> > </dependency> > <dependency> > <groupId>junitperf</groupId> > > > This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > JWebUnit-development mailing list > JWe...@li... > https://lists.sourceforge.net/lists/listinfo/jwebunit-development > > |
|
From: Julien H. <he...@ya...> - 2009-08-14 23:13:05
|
Hi, If Clint contribute a whole new JUnit 4 package with new API, I would prefer to bump the version to emphasize the change. If we release with "only" the JUnit dependency upgrade, I don't mind staying on 2.3. I suggest to discuss it before next release according to the changelog ;) ++ Julien ________________________________ De : Jevon Wright <je...@je...> À : JWebUnit Development mail list <jwe...@li...> Envoyé le : Samedi, 15 Août 2009, 1h01mn 39s Objet : Re: [JWebUnit-development] SF.net SVN: jwebunit:[812] trunk Hi, Do we really need to mark the new version as 3.0, if there are no incompatible changes? Jevon On Sat, Aug 15, 2009 at 10:57 AM, <he...@us...> wrote: > Revision: 812 > http://jwebunit.svn.sourceforge.net/jwebunit/?rev=812&view=rev > Author: henryju > Date: 2009-08-14 22:57:11 +0000 (Fri, 14 Aug 2009) > > Log Message: > ----------- > Updated JUnit version to 4.7 as it is now fully retrocompatible with JUnit 3.x (thanks to Geneho Kim for the suggestion) > > Modified Paths: > -------------- > trunk/jwebunit-commons-tests/pom.xml > trunk/jwebunit-core/pom.xml > trunk/jwebunit-htmlunit-plugin/pom.xml > trunk/jwebunit-selenium-plugin/pom.xml > trunk/jwebunit-webtestcase-generator/pom.xml > trunk/pom.xml > > Modified: trunk/jwebunit-commons-tests/pom.xml > =================================================================== > --- trunk/jwebunit-commons-tests/pom.xml 2009-08-05 14:01:57 UTC (rev 811) > +++ trunk/jwebunit-commons-tests/pom.xml 2009-08-14 22:57:11 UTC (rev 812) > @@ -2,7 +2,7 @@ > <parent> > <artifactId>jwebunit</artifactId> > <groupId>net.sourceforge.jwebunit</groupId> > - <version>2.3-SNAPSHOT</version> > + <version>3.0-SNAPSHOT</version> > <relativePath>../</relativePath> > </parent> > <modelVersion>4.0.0</modelVersion> > > Modified: trunk/jwebunit-core/pom.xml > =================================================================== > --- trunk/jwebunit-core/pom.xml 2009-08-05 14:01:57 UTC (rev 811) > +++ trunk/jwebunit-core/pom.xml 2009-08-14 22:57:11 UTC (rev 812) > @@ -2,7 +2,7 @@ > <parent> > <artifactId>jwebunit</artifactId> > <groupId>net.sourceforge.jwebunit</groupId> > - <version>2.3-SNAPSHOT</version> > + <version>3.0-SNAPSHOT</version> > <relativePath>../</relativePath> > </parent> > <modelVersion>4.0.0</modelVersion> > > Modified: trunk/jwebunit-htmlunit-plugin/pom.xml > =================================================================== > --- trunk/jwebunit-htmlunit-plugin/pom.xml 2009-08-05 14:01:57 UTC (rev 811) > +++ trunk/jwebunit-htmlunit-plugin/pom.xml 2009-08-14 22:57:11 UTC (rev 812) > @@ -2,7 +2,7 @@ > <parent> > <artifactId>jwebunit</artifactId> > <groupId>net.sourceforge.jwebunit</groupId> > - <version>2.3-SNAPSHOT</version> > + <version>3.0-SNAPSHOT</version> > <relativePath>../</relativePath> > </parent> > <modelVersion>4.0.0</modelVersion> > > Modified: trunk/jwebunit-selenium-plugin/pom.xml > =================================================================== > --- trunk/jwebunit-selenium-plugin/pom.xml 2009-08-05 14:01:57 UTC (rev 811) > +++ trunk/jwebunit-selenium-plugin/pom.xml 2009-08-14 22:57:11 UTC (rev 812) > @@ -2,7 +2,7 @@ > <parent> > <artifactId>jwebunit</artifactId> > <groupId>net.sourceforge.jwebunit</groupId> > - <version>2.3-SNAPSHOT</version> > + <version>3.0-SNAPSHOT</version> > <relativePath>..</relativePath> > </parent> > <modelVersion>4.0.0</modelVersion> > > Modified: trunk/jwebunit-webtestcase-generator/pom.xml > =================================================================== > --- trunk/jwebunit-webtestcase-generator/pom.xml 2009-08-05 14:01:57 UTC (rev 811) > +++ trunk/jwebunit-webtestcase-generator/pom.xml 2009-08-14 22:57:11 UTC (rev 812) > @@ -2,7 +2,7 @@ > <parent> > <artifactId>jwebunit</artifactId> > <groupId>net.sourceforge.jwebunit</groupId> > - <version>2.3-SNAPSHOT</version> > + <version>3.0-SNAPSHOT</version> > <relativePath>../</relativePath> > </parent> > <modelVersion>4.0.0</modelVersion> > > Modified: trunk/pom.xml > =================================================================== > --- trunk/pom.xml 2009-08-05 14:01:57 UTC (rev 811) > +++ trunk/pom.xml 2009-08-14 22:57:11 UTC (rev 812) > @@ -3,7 +3,7 @@ > <groupId>net.sourceforge.jwebunit</groupId> > <artifactId>jwebunit</artifactId> > <name>JWebUnit</name> > - <version>2.3-SNAPSHOT</version> > + <version>3.0-SNAPSHOT</version> > <packaging>pom</packaging> > <description> > JWebUnit is a Java framework that facilitates creation of > @@ -270,7 +270,7 @@ > <dependency> > <groupId>junit</groupId> > <artifactId>junit</artifactId> > - <version>3.8.2</version> > + <version>4.7</version> > </dependency> > <dependency> > <groupId>junitperf</groupId> > > > This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > JWebUnit-development mailing list > JWe...@li... > https://lists.sourceforge.net/lists/listinfo/jwebunit-development > > ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ JWebUnit-development mailing list JWe...@li... https://lists.sourceforge.net/lists/listinfo/jwebunit-development |
|
From: Jevon W. <je...@je...> - 2009-08-14 23:17:37
|
Agreed :-) Jevon On Sat, Aug 15, 2009 at 11:12 AM, Julien HENRY<he...@ya...> wrote: > Hi, > > If Clint contribute a whole new JUnit 4 package with new API, I would prefer > to bump the version to emphasize the change. > > If we release with "only" the JUnit dependency upgrade, I don't mind staying > on 2.3. I suggest to discuss it before next release according to the > changelog ;) > > ++ > > Julien > > ________________________________ > De : Jevon Wright <je...@je...> > À : JWebUnit Development mail list > <jwe...@li...> > Envoyé le : Samedi, 15 Août 2009, 1h01mn 39s > Objet : Re: [JWebUnit-development] SF.net SVN: jwebunit:[812] trunk > > Hi, > > Do we really need to mark the new version as 3.0, if there are no > incompatible changes? > > Jevon > > On Sat, Aug 15, 2009 at 10:57 AM, <he...@us...> wrote: >> Revision: 812 >> http://jwebunit.svn.sourceforge.net/jwebunit/?rev=812&view=rev >> Author: henryju >> Date: 2009-08-14 22:57:11 +0000 (Fri, 14 Aug 2009) >> >> Log Message: >> ----------- >> Updated JUnit version to 4.7 as it is now fully retrocompatible with JUnit >> 3.x (thanks to Geneho Kim for the suggestion) >> >> Modified Paths: >> -------------- >> trunk/jwebunit-commons-tests/pom.xml >> trunk/jwebunit-core/pom.xml >> trunk/jwebunit-htmlunit-plugin/pom.xml >> trunk/jwebunit-selenium-plugin/pom.xml >> trunk/jwebunit-webtestcase-generator/pom.xml >> trunk/pom.xml >> >> Modified: trunk/jwebunit-commons-tests/pom.xml >> =================================================================== >> --- trunk/jwebunit-commons-tests/pom.xml 2009-08-05 14:01:57 UTC >> (rev 811) >> +++ trunk/jwebunit-commons-tests/pom.xml 2009-08-14 22:57:11 UTC >> (rev 812) >> @@ -2,7 +2,7 @@ >> <parent> >> <artifactId>jwebunit</artifactId> >> <groupId>net.sourceforge.jwebunit</groupId> >> - <version>2.3-SNAPSHOT</version> >> + <version>3.0-SNAPSHOT</version> >> <relativePath>../</relativePath> >> </parent> >> <modelVersion>4.0.0</modelVersion> >> >> Modified: trunk/jwebunit-core/pom.xml >> =================================================================== >> --- trunk/jwebunit-core/pom.xml 2009-08-05 14:01:57 UTC (rev 811) >> +++ trunk/jwebunit-core/pom.xml 2009-08-14 22:57:11 UTC (rev 812) >> @@ -2,7 +2,7 @@ >> <parent> >> <artifactId>jwebunit</artifactId> >> <groupId>net.sourceforge.jwebunit</groupId> >> - <version>2.3-SNAPSHOT</version> >> + <version>3.0-SNAPSHOT</version> >> <relativePath>../</relativePath> >> </parent> >> <modelVersion>4.0.0</modelVersion> >> >> Modified: trunk/jwebunit-htmlunit-plugin/pom.xml >> =================================================================== >> --- trunk/jwebunit-htmlunit-plugin/pom.xml 2009-08-05 14:01:57 UTC >> (rev 811) >> +++ trunk/jwebunit-htmlunit-plugin/pom.xml 2009-08-14 22:57:11 UTC >> (rev 812) >> @@ -2,7 +2,7 @@ >> <parent> >> <artifactId>jwebunit</artifactId> >> <groupId>net.sourceforge.jwebunit</groupId> >> - <version>2.3-SNAPSHOT</version> >> + <version>3.0-SNAPSHOT</version> >> <relativePath>../</relativePath> >> </parent> >> <modelVersion>4.0.0</modelVersion> >> >> Modified: trunk/jwebunit-selenium-plugin/pom.xml >> =================================================================== >> --- trunk/jwebunit-selenium-plugin/pom.xml 2009-08-05 14:01:57 UTC >> (rev 811) >> +++ trunk/jwebunit-selenium-plugin/pom.xml 2009-08-14 22:57:11 UTC >> (rev 812) >> @@ -2,7 +2,7 @@ >> <parent> >> <artifactId>jwebunit</artifactId> >> <groupId>net.sourceforge.jwebunit</groupId> >> - <version>2.3-SNAPSHOT</version> >> + <version>3.0-SNAPSHOT</version> >> <relativePath>..</relativePath> >> </parent> >> <modelVersion>4.0.0</modelVersion> >> >> Modified: trunk/jwebunit-webtestcase-generator/pom.xml >> =================================================================== >> --- trunk/jwebunit-webtestcase-generator/pom.xml 2009-08-05 >> 14:01:57 UTC (rev 811) >> +++ trunk/jwebunit-webtestcase-generator/pom.xml 2009-08-14 >> 22:57:11 UTC (rev 812) >> @@ -2,7 +2,7 @@ >> <parent> >> <artifactId>jwebunit</artifactId> >> <groupId>net.sourceforge.jwebunit</groupId> >> - <version>2.3-SNAPSHOT</version> >> + <version>3.0-SNAPSHOT</version> >> <relativePath>../</relativePath> >> </parent> >> <modelVersion>4.0.0</modelVersion> >> >> Modified: trunk/pom.xml >> =================================================================== >> --- trunk/pom.xml 2009-08-05 14:01:57 UTC (rev 811) >> +++ trunk/pom.xml 2009-08-14 22:57:11 UTC (rev 812) >> @@ -3,7 +3,7 @@ >> <groupId>net.sourceforge.jwebunit</groupId> >> <artifactId>jwebunit</artifactId> >> <name>JWebUnit</name> >> - <version>2.3-SNAPSHOT</version> >> + <version>3.0-SNAPSHOT</version> >> <packaging>pom</packaging> >> <description> >> JWebUnit is a Java framework that facilitates creation of >> @@ -270,7 +270,7 @@ >> <dependency> >> <groupId>junit</groupId> >> <artifactId>junit</artifactId> >> - <version>3.8.2</version> >> + <version>4.7</version> >> </dependency> >> <dependency> >> <groupId>junitperf</groupId> >> >> >> This was sent by the SourceForge.net collaborative development platform, >> the world's largest Open Source development site. >> >> >> ------------------------------------------------------------------------------ >> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 >> 30-Day >> trial. Simplify your report design, integration and deployment - and focus >> on >> what you do best, core application coding. Discover what's new with >> Crystal Reports now. http://p.sf.net/sfu/bobj-july >> _______________________________________________ >> JWebUnit-development mailing list >> JWe...@li... >> https://lists.sourceforge.net/lists/listinfo/jwebunit-development >> >> > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > JWebUnit-development mailing list > JWe...@li... > https://lists.sourceforge.net/lists/listinfo/jwebunit-development > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > JWebUnit-development mailing list > JWe...@li... > https://lists.sourceforge.net/lists/listinfo/jwebunit-development > > |
|
From: <he...@us...> - 2009-09-03 12:56:37
|
Revision: 813
http://jwebunit.svn.sourceforge.net/jwebunit/?rev=813&view=rev
Author: henryju
Date: 2009-09-03 12:56:30 +0000 (Thu, 03 Sep 2009)
Log Message:
-----------
Updated to HtmlUnit 2.6. Removed deprecated methods.
Modified Paths:
--------------
trunk/jwebunit-htmlunit-plugin/src/main/java/net/sourceforge/jwebunit/htmlunit/HtmlUnitElementImpl.java
trunk/jwebunit-htmlunit-plugin/src/main/java/net/sourceforge/jwebunit/htmlunit/HtmlUnitTestingEngineImpl.java
trunk/pom.xml
trunk/src/changes/changes.xml
Modified: trunk/jwebunit-htmlunit-plugin/src/main/java/net/sourceforge/jwebunit/htmlunit/HtmlUnitElementImpl.java
===================================================================
--- trunk/jwebunit-htmlunit-plugin/src/main/java/net/sourceforge/jwebunit/htmlunit/HtmlUnitElementImpl.java 2009-08-14 22:57:11 UTC (rev 812)
+++ trunk/jwebunit-htmlunit-plugin/src/main/java/net/sourceforge/jwebunit/htmlunit/HtmlUnitElementImpl.java 2009-09-03 12:56:30 UTC (rev 813)
@@ -121,7 +121,7 @@
* @see net.sourceforge.jwebunit.api.IElement#setAttribute(java.lang.String)
*/
public void setAttribute(String string) {
- element.setAttributeValue(string, "1");
+ element.setAttributeNS(null, string, "1");
}
@@ -133,7 +133,7 @@
// for HtmlInputs, we want to run any onChange code if the value changes
((HtmlInput) element).setValueAttribute(value);
} else {
- element.setAttributeValue(string, value);
+ element.setAttributeNS(null, string, value);
}
}
Modified: trunk/jwebunit-htmlunit-plugin/src/main/java/net/sourceforge/jwebunit/htmlunit/HtmlUnitTestingEngineImpl.java
===================================================================
--- trunk/jwebunit-htmlunit-plugin/src/main/java/net/sourceforge/jwebunit/htmlunit/HtmlUnitTestingEngineImpl.java 2009-08-14 22:57:11 UTC (rev 812)
+++ trunk/jwebunit-htmlunit-plugin/src/main/java/net/sourceforge/jwebunit/htmlunit/HtmlUnitTestingEngineImpl.java 2009-09-03 12:56:30 UTC (rev 813)
@@ -63,7 +63,6 @@
import com.gargoylesoftware.htmlunit.WebWindowEvent;
import com.gargoylesoftware.htmlunit.WebWindowListener;
import com.gargoylesoftware.htmlunit.WebWindowNotFoundException;
-import com.gargoylesoftware.htmlunit.html.ClickableElement;
import com.gargoylesoftware.htmlunit.html.DomComment;
import com.gargoylesoftware.htmlunit.html.DomNode;
import com.gargoylesoftware.htmlunit.html.FrameWindow;
@@ -150,7 +149,7 @@
/**
* The default browser version.
*/
- BrowserVersion defaultBrowserVersion = BrowserVersion.FIREFOX_2;
+ BrowserVersion defaultBrowserVersion = BrowserVersion.FIREFOX_3;
/**
* Should we ignore failing status codes?
@@ -670,7 +669,7 @@
public URL getPageURL() {
- return win.getEnclosedPage().getWebResponse().getUrl();
+ return win.getEnclosedPage().getWebResponse().getRequestSettings().getUrl();
}
public String getPageSource() {
@@ -705,7 +704,7 @@
.getWebResponse();
result.append(wr.getStatusCode()).append(" ").append(
wr.getStatusMessage()).append("\n");
- result.append("Location: ").append(wr.getUrl()).append("\n");
+ result.append("Location: ").append(wr.getRequestSettings().getUrl()).append("\n");
for (NameValuePair h : wr.getResponseHeaders()) {
result.append(h.getName()).append(": ").append(h.getValue())
.append("\n");
@@ -757,8 +756,10 @@
*/
BrowserVersion bv;
if (testContext.getUserAgent() != null) {
- bv = new BrowserVersion(BrowserVersion.INTERNET_EXPLORER,
- "4.0", testContext.getUserAgent(), "1.2", 6);
+ bv = new BrowserVersion(
+ BrowserVersion.NETSCAPE, "5.0 (Windows; en-US)",
+ testContext.getUserAgent(),
+ 3);
} else {
bv = defaultBrowserVersion; // use default (which includes a full UserAgent string)
}
@@ -1030,7 +1031,7 @@
private HtmlForm getForm(String nameOrID, int index) {
List<HtmlForm> forms = new ArrayList<HtmlForm>();
for (HtmlForm form : getCurrentPage().getForms()) {
- if (nameOrID.equals(form.getIdAttribute())
+ if (nameOrID.equals(form.getId())
|| nameOrID.equals(form.getNameAttribute())) {
forms.add(form);
}
@@ -1043,63 +1044,6 @@
}
}
- private HtmlForm getFormWithInput(String inputName) {
- // Search in Working form if available
- if (form != null) {
- if (!form.getHtmlElementsByAttribute("input",
- "name", inputName).isEmpty()) {
- return form;
- }
- if (!form.getTextAreasByName(inputName).isEmpty()) {
- return form;
- }
- } else {
- if (hasForm()) {
- for (HtmlForm form : getForms()) {
- List<HtmlElement> inputElements = new LinkedList<HtmlElement>();
- inputElements.addAll(form.getHtmlElementsByAttribute("input",
- "name", inputName));
- if (inputElements.isEmpty()) {
- inputElements.addAll(form.getTextAreasByName(inputName));
- }
- if (!inputElements.isEmpty()) {
- setWorkingForm(form);
- return form;
- }
- }
- }
- }
- return null;
- }
-
- private HtmlForm getFormWithSelect(String selectName) {
- // Search in Working form if available
- if (form != null) {
- try {
- if (form.getSelectByName(selectName) != null) {
- return form;
- }
- } catch (ElementNotFoundException e) {
- // Nothing
- }
- } else {
- if (hasForm()) {
- for (int i = 0; i < getForms().size(); i++) {
- HtmlForm form = (HtmlForm) getForms().get(i);
- try {
- if (form.getSelectByName(selectName) != null) {
- setWorkingForm(form);
- return form;
- }
- } catch (ElementNotFoundException e) {
- // Nothing
- }
- }
- }
- }
- return null;
- }
-
private List<HtmlForm> getForms() {
HtmlPage page = (HtmlPage) win.getEnclosedPage();
return page.getForms();
@@ -1163,7 +1107,7 @@
* @param buttonName name of button.
* @return the button
*/
- public ClickableElement getSubmitButton(String buttonName) {
+ public HtmlElement getSubmitButton(String buttonName) {
List<HtmlElement> btns = new LinkedList<HtmlElement>();
if (form != null) {
btns.addAll(getForm().getInputsByName(buttonName));
@@ -1237,7 +1181,7 @@
* @param buttonValue button value.
* @return HtmlSubmitInput, HtmlImageInput or HtmlButton
*/
- public ClickableElement getSubmitButton(String buttonName,
+ public HtmlElement getSubmitButton(String buttonName,
String buttonValue) {
List<HtmlElement> btns = new LinkedList<HtmlElement>();
if (form != null) {
@@ -1325,14 +1269,14 @@
*
* @param buttonId
*/
- private ClickableElement getButton(String buttonId) {
+ private HtmlElement getButton(String buttonId) {
HtmlElement btn = null;
try {
btn = getCurrentPage().getHtmlElementById(buttonId);
if (btn instanceof HtmlButton || btn instanceof HtmlButtonInput
|| btn instanceof HtmlSubmitInput
|| btn instanceof HtmlResetInput)
- return (ClickableElement) btn;
+ return btn;
} catch (ElementNotFoundException e) {
return null;
}
@@ -1363,7 +1307,7 @@
* @return the ClickableElement with the specified text or null if
* no such button is found.
*/
- public ClickableElement getButtonWithText(String buttonValueText) {
+ public HtmlElement getButtonWithText(String buttonValueText) {
List<? extends HtmlElement> l = ((HtmlPage) win.getEnclosedPage()).getDocumentElement()
.getHtmlElementsByTagNames(
Arrays.asList(new String[] { "button", "input" }));
@@ -1371,14 +1315,14 @@
if ( e instanceof HtmlButton )
{
if (((HtmlButton) e).asText().equals(buttonValueText))
- return (ClickableElement) e;
+ return e;
}
else if ( e instanceof HtmlButtonInput ||
e instanceof HtmlSubmitInput ||
e instanceof HtmlResetInput )
{
- if ( buttonValueText.equals(e.getAttributeValue("value")) )
- return (ClickableElement)e;
+ if ( buttonValueText.equals(e.getAttribute("value")) )
+ return e;
}
}
return null;
@@ -1526,11 +1470,11 @@
* @param buttonName name of the button to use for submission.
*/
public void submit(String buttonName) {
- List<ClickableElement> l = new LinkedList<ClickableElement>();
+ List<HtmlElement> l = new LinkedList<HtmlElement>();
l.addAll(getForm().getInputsByName(buttonName));
l.addAll(getForm().getButtonsByName(buttonName));
try {
- for (ClickableElement o : l) {
+ for (HtmlElement o : l) {
if (o instanceof HtmlSubmitInput) {
HtmlSubmitInput inpt = (HtmlSubmitInput) o;
inpt.click();
@@ -1571,7 +1515,7 @@
* @param buttonValue value/label of the button to use for submission
*/
public void submit(String buttonName, String buttonValue) {
- List<ClickableElement> l = new LinkedList<ClickableElement>();
+ List<HtmlElement> l = new LinkedList<HtmlElement>();
l.addAll(getForm().getInputsByName(buttonName));
l.addAll(getForm().getButtonsByName(buttonName));
try {
@@ -1856,11 +1800,7 @@
throw new RuntimeException("No element found with xpath \"" + xpath
+ "\"");
try {
- ClickableElement c = (ClickableElement) e;
- c.click();
- } catch (ClassCastException exp) {
- throw new RuntimeException("Element with xpath \"" + xpath
- + "\" is not clickable", exp);
+ e.click();
} catch (IOException exp) {
throw new RuntimeException("Click failed", exp);
}
@@ -1870,7 +1810,7 @@
HtmlElement e = getHtmlElementByXPath(xpath);
if (e == null)
return null;
- return e.getAttributeValue(attribut);
+ return e.getAttribute(attribut);
}
@@ -1889,7 +1829,7 @@
* @param buttonId
*/
public void clickButton(String buttonId) {
- ClickableElement btn = getButton(buttonId);
+ HtmlElement btn = getButton(buttonId);
try {
btn.click();
} catch (Exception e) {
@@ -1904,7 +1844,7 @@
* content by converting it to text. or an HTML <button> tag.
*/
public void clickButtonWithText(String buttonValueText) {
- ClickableElement b = getButtonWithText(buttonValueText);
+ HtmlElement b = getButtonWithText(buttonValueText);
if (b != null) {
try {
b.click();
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2009-08-14 22:57:11 UTC (rev 812)
+++ trunk/pom.xml 2009-09-03 12:56:30 UTC (rev 813)
@@ -295,7 +295,7 @@
<dependency>
<groupId>net.sourceforge.htmlunit</groupId>
<artifactId>htmlunit</artifactId>
- <version>2.5</version>
+ <version>2.6</version>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium.client-drivers</groupId>
Modified: trunk/src/changes/changes.xml
===================================================================
--- trunk/src/changes/changes.xml 2009-08-14 22:57:11 UTC (rev 812)
+++ trunk/src/changes/changes.xml 2009-09-03 12:56:30 UTC (rev 813)
@@ -7,8 +7,14 @@
</author>
</properties>
<body>
- <release version="2.3" date="UNKNOW">
+ <release version="2.3" date="UNKNOW" description="Updated to JUnit 4.7">
<action type="update" dev="henryju">
+ Updated to HtmlUnit 2.6.
+ </action>
+ <action type="update" dev="henryju">
+ Updated to JUnit 4.7.
+ </action>
+ <action type="update" dev="henryju">
Updated to Selenium RC 1.0.
</action>
</release>
@@ -65,7 +71,7 @@
Cleaned up the quickstart documentation.
</action>
</release>
- <release version="2.0" date="October 27, 2008">
+ <release version="2.0" date="October 27, 2008" description="First release that requires Java 1.4+">
<action type="update" dev="henryju">
Updated to HtmlUnit 2.3.
</action>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <jev...@us...> - 2009-11-30 06:34:47
|
Revision: 815
http://jwebunit.svn.sourceforge.net/jwebunit/?rev=815&view=rev
Author: jevonwright
Date: 2009-11-30 06:34:35 +0000 (Mon, 30 Nov 2009)
Log Message:
-----------
issue 2697234: Make HtmlUnit objects accessible
Modified Paths:
--------------
trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/junit/WebTester.java
trunk/jwebunit-htmlunit-plugin/src/main/java/net/sourceforge/jwebunit/htmlunit/HtmlUnitTestingEngineImpl.java
Modified: trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/junit/WebTester.java
===================================================================
--- trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/junit/WebTester.java 2009-11-30 06:23:59 UTC (rev 814)
+++ trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/junit/WebTester.java 2009-11-30 06:34:35 UTC (rev 815)
@@ -57,7 +57,7 @@
private ITestingEngine testingEngine = null;
private TestContext testContext = null;
-
+
/**
* This is the testing engine key that the webtester will use to find the correct testing engine from the registry.
*/
@@ -70,7 +70,7 @@
* which is, htmlunit.
*
* @return IJWebUnitDialog instance used to wrapper htmlunit conversation.
- * @deprecated You should not use plugin specific fonctionality. Please ask for a new core feature instead.
+ * @deprecated You should not use plugin specific functionality. Please ask for a new core feature instead.
*/
public ITestingEngine getDialog() {
return getTestingEngine();
Modified: trunk/jwebunit-htmlunit-plugin/src/main/java/net/sourceforge/jwebunit/htmlunit/HtmlUnitTestingEngineImpl.java
===================================================================
--- trunk/jwebunit-htmlunit-plugin/src/main/java/net/sourceforge/jwebunit/htmlunit/HtmlUnitTestingEngineImpl.java 2009-11-30 06:23:59 UTC (rev 814)
+++ trunk/jwebunit-htmlunit-plugin/src/main/java/net/sourceforge/jwebunit/htmlunit/HtmlUnitTestingEngineImpl.java 2009-11-30 06:34:35 UTC (rev 815)
@@ -905,10 +905,29 @@
* Return the window with the given name in the current conversation.
*
* @param windowName
+ * @throws WebWindowNotFoundException if the window could not be found
*/
- private WebWindow getWindow(String windowName) {
+ public WebWindow getWindow(String windowName) {
return wc.getWebWindowByName(windowName);
}
+
+ /**
+ * Return the currently opened window (issue 2697234).
+ *
+ * @return the currently opened window
+ */
+ public WebWindow getCurrentWindow() {
+ return win;
+ }
+
+ /**
+ * Return the current web client (issue 2697234).
+ *
+ * @return the current web client
+ */
+ public WebClient getWebClient() {
+ return wc;
+ }
private HtmlElement getHtmlElement(String anID) {
try {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|