wood burning stoves*
The moose likes Testing and the fly likes How to run cactus test in one step ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "How to run cactus test in one step ?" Watch "How to run cactus test in one step ?" New topic
Author

How to run cactus test in one step ?

Jimmy Jin
Greenhorn

Joined: Feb 14, 2004
Posts: 8
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30136
    
150

Jimmy,
Apache has a release version of the plugin. You just have to put in the plugin directory and restart eclipse.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Jimmy Jin
Greenhorn

Joined: Feb 14, 2004
Posts: 8
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

Joined: Feb 14, 2004
Posts: 8
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30136
    
150

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

Joined: Feb 14, 2004
Posts: 8
The download link is not clickable~
I have made the cactus work under ANT now :-)
thx for your help..
Brant Levinson
Greenhorn

Joined: Nov 03, 2004
Posts: 1
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?
 
 
subject: How to run cactus test in one step ?
 
Similar Threads
JUnit and AbstractTestCase Problem
ServletTestCase::request is not accessible my test class, which extends jspTestCase.
Need help for cobertura report generation
Sun AVK
Testing with cactus and EJB