Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to run cactus test in one step ?

 
Jimmy Jin
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am now writing test for my jsp-tag.
Right now I am writing cactus tests as follows:
Each time I modifies the src code or the test code, I should copy the jar file to the TOMCAT_HOME/webapps/test, and then restart the tomcat server, at last running the test....
It is really boring to do it again and again, so I ask help here.
Is there any easy way to run the tests.... thx for your help.
Maybe the cactus plugin for eclipse is one possible solution, but the src-code I download from cvs.apache.org doesn't compile, the build.xml file is too difficult for me.
You may give either the compiled version of cactus plugin or give me an example of ant build.xml file to automate the whole process (I mean deploy the test automatically, maybe will restart the tomcat automatically too).
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34084
337
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jimmy,
Apache has a release version of the plugin. You just have to put in the plugin directory and restart eclipse.
 
Jimmy Jin
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jeanne:
There is no download link on that page acutally...
(at least I can not find it).
Right now I war my test-cases and then copy it into TOMCAT_HOME/webapps directory using ANT, and then running the test via browser.
But I do wanna automate the whole process by ANT only..
Could you help me on the cactify and cactus task in ANT.
thx for your help.
 
Jimmy Jin
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Another question when running cactus test on the tomcat container (5.0),
the following exception occurs:
2004-4-12 14:59:48 org.apache.jasper.runtime.PageContextImpl release
Warning: Internal error flushing the buffer in release()
can you tell me why it occurs, and how to solve it..
thx
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34084
337
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jimmy,
The link I gave was the installation instructions. The actual download link is here. Just scroll down a bit to get to the eclipse integration section. I haven't yet used cactus in ant.
 
Jimmy Jin
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The download link is not clickable~
I have made the cactus work under ANT now :-)
thx for your help..
 
Brant Levinson
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Jimmy Jin:
Another question when running cactus test on the tomcat container (5.0),
the following exception occurs:

2004-4-12 14:59:48 org.apache.jasper.runtime.PageContextImpl release
Warning: Internal error flushing the buffer in release()

can you tell me why it occurs, and how to solve it..
thx


Did you figure out what causes this error?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic