Hi Victor,
Clover licence stay with the sources in src/test/clover. The licence is perhaps
expired. Sometimes the clover plugin doesn't work fine if you don't use a
lifecycle goal. For example, mvn site should work, but mvn site:site-stage will
not. I don't know if it is fixed with Maven 2.0.8.
You can of course send a patch.
++
Julien
----- Message d'origine ----
De : Victor Tatai <[EMAIL PROTECTED]>
À : JWebUnit Development mail list <[email protected]>
Envoyé le : Mercredi, 28 Novembre 2007, 21h10mn 44s
Objet : Re: [JWebUnit-development] Re : Re : Re : Building 2.x
Hey Julien,
So I checked again and it turns out that my modifications were not helpful at
all, things seems to be working ok without them. Only changes I had to make was
removing the clover plugin as I don't own a clover license and altering the
javacc and exec plugins deps to
2.3-SNAPSHOT and 1.1-beta-2-SNAPSHOT respectively. Perhaps those informations
could be updated on the web site, if you want I can modify them and send you a
patch.
I am starting to take a look now at the Selenium class and tests, hope I can
help you guys there ;)
Peace,
V.
On Nov 27, 2007 6:19 AM, Julien HENRY <[EMAIL PROTECTED]> wrote:
Hi Victor,
1) I'm building with Maven 2.0.7
too. Could you explain your tweak on exec-maven-plugin?
2) In JWebUnit there are two very similar classes: WebTestCase and WebTester.
WebTester can be use as a delegation class, and WebTestCase as inheritance (for
a better explanation, please read
http://jwebunit.sourceforge.net/quickstart.html). It was double work to
maintain both classes so I now use Javacc to generate WebTestCase. I started
from java grammar javacc file, and added some code generation. For each public
method in WebTester:
public type/void methodName(ParamType1 Param1, ParamType2 Param2, ...)
I
generate the equivalent in WebTestCase:
public type/void methodName(ParamType1 Param1, ParamType2 Param2, ...) {
getTester().methodName(Param1, Param2, ...);
}
Hope I am clear enough. Feel free to ask for some details.
3) Concerning tests cases: they are in a separate module because they are used
both by jwebunit-htmlunit-plugin and jwebunit-selenium-plugin. Jetty is used to
start an embedded web server that publish the test pages, and then JUnit test
cases are run. AFAIR, tests are disabled in jwebunit-selenium-plugin
pom.xml because too many are failing.
4) To be fully functional, SeleniumTestingEngineImpl should implement all the
methods of the interface and pass all JUnit tests. Many methods are not yet
implemented either because I didn't find a way or because there is no way ;)
Just enable the tests for selenium plugin and check those that don't pass.
Don't forget to run the selenium server in a
separate console. I could manage to start it automatically, because of
classpath conflict between Jetty 6 (used for JUnit tests) and Jetty 5 (embedded
in selenium server).
++
Julien
----- Message d'origine ----
De : Victor Tatai <[EMAIL PROTECTED]>
À : JWebUnit Development mail list <
[email protected]>
Envoyé le : Lundi, 26 Novembre 2007, 22h41mn 45s
Objet : Re: [JWebUnit-development] Re : Re : Building 2.x
Hi Julien,
Thanks for your help, I was able to finally build the app, just had to tweak a
dep from the exec-maven-plugin plugin probably due to the fact I am building
with maven 2.0.7. So just I can get my bearings, I couldn't really understand
how the tests are done and how javacc is used, if you could help me there with
a brief overview I would greatly appreciate it. Also I have
seen many TODOs on the class SeleniumTestingEngineImpl, is that what is
missing for the Selenium plugin to work?
A+
V.
On Nov 23, 2007 5:46 AM, Julien HENRY <[EMAIL PROTECTED]> wrote:
Hi Victor,
Take a look at:
http://jira.codehaus.org/browse/MJAVACC-29
Solution I use is to get the sources of the plugin:
http://svn.codehaus.org/mojo/trunk/mojo/javacc-maven-plugin/
Then apply the patch proposed for MJAVACC-29:
http://jira.codehaus.org/secure/attachment/29975/path-handling.patch
Build the plugin and update JWebUnit pom to use javacc-maven-plugin
2.3-SNAPSHOT.
Do not forget to vote for the bug ;)
++
Julien
----- Message d'origine ----
De : Victor Tatai <[EMAIL PROTECTED]>
À : JWebUnit Development mail list <
[email protected]>
Envoyé le : Jeudi, 22 Novembre 2007, 21h07mn 45s
Objet : Re: [JWebUnit-development] Re : Building 2.x
Hey Julien,
So I have altered the pom.xml by including a dependency to the 2.2 version for
the javacc-maven-plugin instead of SNAPSHOT, and then I ran into the following
error when building the application:
java.lang.IllegalStateException
: basedir
C:\work\projects\jwebunit\jwebunit-webtestcase-generator\C:\work\projects\jwebunit\jwebunit-webtestcase-generator\src\main\javacc
does not exist
It seems to be a bug with the javacc plugin, but I was not able to track it
down to. I am running with JDK 5 and Maven
2.0.7.
Salut :) ,
V.
On Nov 22, 2007 6:01 AM, Julien HENRY <[EMAIL PROTECTED]> wrote:
Hi Victor,
Do not use the 2.X branch. This is a real mess. Latest development were done in
the trunk
++
Julien
----- Message d'origine ----
De : Victor Tatai <
[EMAIL PROTECTED]
>
À : [email protected]
Envoyé le : Mercredi, 21 Novembre 2007, 20h49mn 59s
Objet : [JWebUnit-development] Building
2.x
Hello,
So as Julien answered to me on the user mailing list, I am having some problems
building the 2.x branch - more specifically, these are some of the problems I
found:
- The module jwebfit seems to be completely broken
- After excluding the jwebfit module from the POM, I still get various errors
Assert**Exception on the jwebunit-htmlunit-plugin module
My build environment is Java 1.5.0_010 and Maven 2.0.7.
I would really appreciate it if someone could give me a hand on building the
branch - I am willing to spend some development time in getting
2.0 to work using both the Selenium and HtmlUnit plugins running as it would be
really useful in my current project.
Cheers,
V.
--
"Make things as simple as possible, but no simpler"
-- Albert Einstein
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
JWebUnit-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-development
--
Prof. Victor Tatai
--
"Make things as simple as possible, but no simpler"
-- Albert Einstein
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
JWebUnit-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-development
--
"Make things as simple as possible, but no simpler"
-- Albert Einstein
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
JWebUnit-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-development
--
"Make things as simple as possible, but no simpler"
-- Albert Einstein
_____________________________________________________________________________
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail -------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell. From the desktop to the data center, Linux is going
mainstream. Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
JWebUnit-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-development