aspose file tools*
The moose likes Struts and the fly likes This weeks giveaway Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "This weeks giveaway" Watch "This weeks giveaway" New topic
Author

This weeks giveaway

Carl Trusiak
Sheriff

Joined: Jun 13, 2000
Posts: 3340
This week we are giving away 4 copies of the book "Java Tools for Extreme Programming: Mastering Open Source Tools Including Ant, JUnit, and Cactus".
And the best part... The Authors, Richard Hightower and Nicholas Lesiecki, will be online to answer your questions!
Frank gave this book 9 Horseshoes! Read his review.
Thanks to the good people at Wiley Publishing for the books.

See the Book Promotion page for qualification details.
[ March 12, 2002: Message edited by: Junilu Lacar ]

I Hope This Helps
Carl Trusiak, SCJP2, SCWCD
Doug Wang
Ranch Hand

Joined: Oct 05, 2001
Posts: 445
Hi Richard and Nicholas,
Welcome! Delighted to be the first guy to say hello to you.
Thanks Rick for your kind response to the feedbacks in bookreview forum.
May you two a good time here this week.
[ March 12, 2002: Message edited by: Doug Wang ]

Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep
Axel Janssen
Ranch Hand

Joined: Jan 08, 2001
Posts: 2164
Same as Doug.
Axel
Gerry Giese
Ranch Hand

Joined: Aug 02, 2001
Posts: 247
This book looks more like what I need/want - practical tools to solve real software development issues. Finally figured out where the book review was - the link above goes to Amazon. I'm glad the book isn't purely a "rah-rah isn't XP the greatest?" type of book - there's enough of those already.
One thing I did not see discussed was how easy it is to integrate these tools into various IDEs out there. I'm using JBuilder at home and Forte 3.0 Enterprise at work. I'm pretty sure Forte has some hooks into Ant because I've seen it mentioned a few times. Are any "plugins" available to get these tools into IDEs automatically with the proper settings?
[ March 12, 2002: Message edited by: Gerry Giese ]

CJP (Certifiable Java Programmer), AMSE (Anti-Microsoft Software Engineer)
Author of Posts in the Saloon
Sri Rangan
Ranch Hand

Joined: Dec 08, 2001
Posts: 160
Is this book covering JMeter and struts?
Doug Wang
Ranch Hand

Joined: Oct 05, 2001
Posts: 445
Axel,
You cant be the same as me, for I am the first person.
Sri,
I dont think this book will cover JMeter and Struts. The book mainly cover tools that automate test and build process to facilitate XP development.
Ram Dhan Yadav K
Ranch Hand

Joined: Aug 13, 2001
Posts: 321
Hi Nocholas and Richards,
Welcome to the forum.
Hi Doug and Sri,
the book review says
This book covers the following XP subjects:
Automated unit and functional testing
Continuous integration through build and deployment automation
The value of refactoring and continuous integration
How Ant, JUnit, JUnitPerf, Cactus, HTTPUnit, and JMeter can be used to achieve the goals of the XP methodology
So JMeter is covered.
Well, i have never used these tools and just started looking at them. I am starting with and and JUnit and they are cool. It would be real helpful to find a book open source projects like this.
Now that i know what JUnit and Ant is used for, can somebody tell me what JUnitPerf, Cactus, HTTPUnit, and JMeter are used for!
thanks,


Ram Dhan Yadav (SCJP, SCWCD, SCJA-I, IBM EC(483))
"We are what we repeatedly do. Excellence, then, is not an act, but a habit."
Junilu Lacar
Bartender

Joined: Feb 26, 2001
Posts: 4679
    
    7

I didn't realize we had a book giveaway scheduled here this week. And I was thinking I had suddenly generated a lot of interest in JUnit with my little tutorial
Anyway, welcome everybody, especially the authors of the book.
Junilu Lacar
JeanLouis Marechaux
Ranch Hand

Joined: Nov 12, 2001
Posts: 906
Carl,
Your effect on this thread is very impressive !
Usually, there are about only 5 threads a week here... And until now, I was almost thinking only Junilu, Paul and I were interested in Jakarta projects

Junilu, thanks to the giveway, you are going to become a Javaranch star
[ March 12, 2002: Message edited by: Bill Bailey ]

/ JeanLouis<br /><i>"software development has been, is, and will remain fundamentally hard" (Grady Booch)</i><br /> <br />Take a look at <a href="http://www.epfwiki.net/wikis/openup/" target="_blank" rel="nofollow">Agile OpenUP</a> in the Eclipse community
Nicholas Lesiecki
Greenhorn

Joined: Mar 12, 2002
Posts: 13
Ram Dhan Yadav K,
In response to:
Now that i know what JUnit and Ant is used for, can somebody tell me what JUnitPerf, Cactus, HTTPUnit, and JMeter are used for!

  • JUnitPerf: An extension to JUnit that allows you to performance and load test code units.
  • Cactus: An extension to JUnit that allows components to be tested in a container. This enables easy unit testing of Servlets, EJB's, Custom tags, etc.
  • HTTPUnit: A functional testing framework that allows easy programmatic testing of a web-application. Handy for acceptance testing.
  • JMeter: Another black-box web testing tool, but usable as a GUI and far more suited to gathering performance metrics than to verifying a particular output.


  • To the rest of you all, thanks very much for the welcoming words!
    Cheers,


    Principal Software Engineer<br />eBlox, Inc.<br />(520) 615-9345 x104<br />Check out my new book!:<br /><a href="http://www.amazon.com/exec/obidos/ASIN/047120708X/" target="_blank" rel="nofollow"><br />Java Tools for Extreme Programming: Mastering Open Source Tools, including Ant, JUnit, and Cactus<br /></a><br /><a href="http://www.rickhightower.com/JavaXPToolkit/" target="_blank" rel="nofollow">More Info</a><br /> <br /><br />Check out my article on <a href="http://www-106.ibm.com/developerworks/java/?loc=dwmain" target="_blank" rel="nofollow">AspectJ.</a>
    Ram Dhan Yadav K
    Ranch Hand

    Joined: Aug 13, 2001
    Posts: 321
    Thanks Nicholas,
    This brings up more doubts, which i am posting in separately.
    Ilja Preuss
    author
    Sheriff

    Joined: Jul 11, 2001
    Posts: 14112
    Originally posted by Gerry Giese:
    One thing I did not see discussed was how easy it is to integrate these tools into various IDEs out there. I'm using JBuilder at home and Forte 3.0 Enterprise at work. I'm pretty sure Forte has some hooks into Ant because I've seen it mentioned a few times. Are any "plugins" available to get these tools into IDEs automatically with the proper settings?
    [ March 12, 2002: Message edited by: Gerry Giese ]

    Eclipse and IntelliJ Idea both have good integration of Ant and JUnit.


    The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
    Doug Wang
    Ranch Hand

    Joined: Oct 05, 2001
    Posts: 445
    Hi Rick,
    You said "the tools are especially helpful for J2EE development", and your book is "ideal for J2EE/XP developer". Also the case studies used in this book are J2EE-targeted(right? ). Can you please explain more on testing and building J2EE application. How does Cactus fit into this task?
    Nicholas Lesiecki
    Greenhorn

    Joined: Mar 12, 2002
    Posts: 13
    Doug,
    You asked:
    You said "the tools are especially helpful for J2EE development", and your book is "ideal for J2EE/XP developer". Also the case studies used in this book are J2EE-targeted(right? ). Can you please explain more on testing and building J2EE application. How does Cactus fit into this task?

    Ant can be used to build darn near anything. We use it to build storeBlox where I work. storeBlox provides a custom-branded web-store with a variable feature set. A significant amount of customization is provided at build time: various features are turned on and off via deployment descriptors, different sites use different JSPs, different sites use different message resources. We do much of this with Ant, which has built in support for packaging wars and ears, tasks that allow us to easily modify deployment descriptors, etc. So knowing Ant is a big help for any J2EE project. needless to say JTFXP cover ANT in depth.
    Cactus allows you to test server-side J2EE components more easily. For instance, say you have class which does some request processing:

    Using one of Cactus' test cases would allow you to write:

    You can also use Cactus to test EJBs, JSP Custom Tags, Filters, and many other J2EE components. We do about 60% of our testing at eBlox using Cactus.
    In addition to Cactus, JTFXP covers HttpUnit and JMeter--black box testing tools that allow acceptance and performance testing of web applications respectively. Since most J2EE apps have web components, these tools are handy for almost any J2EE shop.
    Does this answer your question?
    Cheers,
    Nicholas Lesiecki
    Doug Wang
    Ranch Hand

    Joined: Oct 05, 2001
    Posts: 445
    Thanks Nicholas,
    Your explanation is really a big help. So J2EE application is ready to perform automating test and build process due to the deployment descriptors and archive files (I didn't realize that before ).
    Varun Narula
    Ranch Hand

    Joined: Nov 19, 2001
    Posts: 90
    Hi Nicholas,
    Is there a standards body which defines what must be included in a testing framework just like we have the UML standards or the J2EE compatibility suite ?
    Is any organisation/foundation working on it ?


    There are only 10 types of people in this world; those who understand binary and those who dont<p>Varun Narula <br />SCJP, SCWCD, IBM-486 (UML)
    Doug Wang
    Ranch Hand

    Joined: Oct 05, 2001
    Posts: 445
    Hi Varun,
    I dont know there is such a standard. You may view JUnit as a de facto testing framework standard. Actually, as the title of JTFXP suggests, JUnit is just a tool to facilitate your testing work.
    Nicholas Lesiecki
    Greenhorn

    Joined: Mar 12, 2002
    Posts: 13
    Hi Varun,
    No I don't think there are any formal standards either in place or in progress. When you say "testing framework" what do you mean? What sort of standards would be useful or helpful?
    As Doug mentions, JUnit is a great, Open Source Java testing framework. because of its ease of use (and also because of the fame of its authors ) It has become (as Doug suggests) the de facto standard for a testing framework.
    Is that helpful?
    Cheers,
    Nicholas
    Ram Dhan Yadav K
    Ranch Hand

    Joined: Aug 13, 2001
    Posts: 321
    Hi Nocholas,
    Is JUnit used only for testing apps related to Java or can it be used with apps of other languages like c, c++ etc. Are there any other testing tools like JUnit available for other languages?
    thanks,
    Doug Wang
    Ranch Hand

    Joined: Oct 05, 2001
    Posts: 445
    Hi Ram,
    Check this page, you gonna get testing tools like JUnit for other languages, including c, c++, perl ...
    Ram Dhan Yadav K
    Ranch Hand

    Joined: Aug 13, 2001
    Posts: 321
    Hi Doug,
    Thats a very resourceful link.
    Since i started using this site for the last 8 months, my knowledge has dramatically increased. I was always so happy to find the all guru's hanging arround this forum.
    thanks,
    Gerry Giese
    Ranch Hand

    Joined: Aug 02, 2001
    Posts: 247
    Does HttpUnit or the other tools support testing using HTTPS? What about times when the site is protected and a user/pass dialog pops up? Our systems are SSL-enabled and use pop up authentication prompts based on Kerberos (I think it's an NSAPI plugin???). Our apps read the userid the Kerberos sets in the HTTP_REMOTE_USER header and operate off of that to configure roles/permissions/personalization for the session. Is this a problem for HttpUnit or the other tools?
    Rick Hightower
    Author
    Ranch Hand

    Joined: Feb 20, 2002
    Posts: 350
    Sorry about not responding earlier... I am traveling and teaching an onsite training course.
    It looks like Nick has done a real good job of answering peoples questions...
    I would suggest that if you have any more question to start breaking them out into seperate topics. This makes them easier to find.


    Rick Hightower is CTO of Mammatus which focuses on Cloud Computing, EC2, etc. Rick is invovled in Java CDI and Java EE as well. linkedin,twitter,blog
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: This weeks giveaway