aspose file tools*
The moose likes Testing and the fly likes Cactus plugin ??? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Testing
Bookmark "Cactus plugin ???" Watch "Cactus plugin ???" New topic
Author

Cactus plugin ???

kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1373
I am going to test my web application using cactus. Any cactus plugin is there for Rational Software Architect (ie: Eclipse plugin)? I checked this url http://jakarta.apache.org/cactus/integration/eclipse/index.html, it shows The Eclipse plugin is a work in progress. In the past it was working, but since we moved to the new Ant integration it has been broken. This requires a rewrite of the plugin code to fix. In the meantime, we have removed the plugin download. Sorry about that. Any help will be much welcome. , i am seeing the same message for the past 6 months.
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Why do you need a plugin? Maybe there's a good enough non-plugin alternative for what you're trying to accomplish.


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1373
Hi Lasse, can you elaborate more about good enough non-plugin alternative ?
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
What I meant is that I don't really know why you want a plugin since I haven't personally longed after such a thing -- I've written Cactus tests just like any other Java code in Eclipse and run them with Ant just like any other JUnit tests.
[ May 27, 2006: Message edited by: Lasse Koskela ]
kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1373
My project architecture is Struts for presentation, Spring for business layer & Hiberante for DAO layer. I would like to test end-to-end(from Presentation to database) in-container testing. I evaluated junit, cactus & strutstestcase. junit doesn't support in-container testing. Cactus supports in-container testing, but not able to test Struts layer(presentation layer). Any input ? Which testing framework supports all layers end-to-end testing ?
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Cactus tests (or any other in-container tests) are not end-to-end testing per se. At least not according to the definition I've used.

If by end-to-end you mean testing the whole system going in from the presentation layer and reaching all the way down to the actual database, then I'd recommend looking at HttpUnit, jWebUnit, HtmlUnit, Canoo WebTest, or perhaps Selenium. These are products that exercise your application over the wire through the HTTP protocol.
kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1373
Hi Lasse, Out of these 5 testing frameworks (HttpUnit, jWebUnit, HtmlUnit, Canoo WebTest, Selenium), which one is the best for end-to-end testing ?
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Originally posted by kri shan:
Hi Lasse, Out of these 5 testing frameworks (HttpUnit, jWebUnit, HtmlUnit, Canoo WebTest, Selenium), which one is the best for end-to-end testing ?

"Best" according to what criteria? Each of them has their own advantages and disadvantages over the others. Asking which of the five is the best is like asking what's the best Java IDE--you'll get almost as many answers as there are replies. The best you can do is take each of them for a test-drive and decide for yourself, which feels most suited for your specific use.

There are some major differences between the five, though:
  • Selenium is the only one which executes tests in a real browser rather than simulating HTTP traffic. This makes Selenium the best choice for testing JavaScript-heavy web applications which might prove troublesome for the other frameworks.
  • Canoo WebTest is the only one which uses XML for describing tests. For me, this is a disadvantage but your mileage may vary.
  • HttpUnit, jWebUnit and HtmlUnit are pretty similar in their capability. The API's are just different.

  • Rajan Chinna
    Ranch Hand

    Joined: Jul 01, 2004
    Posts: 320
    Can't we accomplish end-2-end unit test using cactus by writing test suites?

    By the way is it good practise to roll unit test case code to production environment too?
    Lasse Koskela
    author
    Sheriff

    Joined: Jan 23, 2002
    Posts: 11962
        
        5
    Originally posted by Rajan Chinna:
    Can't we accomplish end-2-end unit test using cactus by writing test suites?

    Cactus tests execute inside the application's JVM. Thus, if you're talking about a web application, it's not "end-to-end" in the sense that you'd be accessing the UI. It might be "end-to-end" in the sense of accessing the business logic and everything underneath, though.

    Originally posted by Rajan Chinna:
    By the way is it good practise to roll unit test case code to production environment too?

    In general, I'd say that deploying unit test code to production is not a good thing.

    Having said that, there are benefits to deploying certain kinds of automated tests into production along with the application. They could be "diagnostics" or "environment tests", identifying things like missing environment variables, missing configuration files, etc. You could also deploy some kind of functional tests as long as they don't mess with the production system's state.

    Also, one needs to remember to check the license of the testing libraries used when deploying test code to production. Some libraries might have a viral license that would require you to open source your production code as well, which might not be acceptable for you.
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: Cactus plugin ???