This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Testing and the fly likes Testing JEE application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "Testing JEE application" Watch "Testing JEE application" New topic
Author

Testing JEE application

andy kumar
Ranch Hand

Joined: Jun 08, 2009
Posts: 57
Hi,

I am presently using junit to test my POJO classes. I wanted to know which are the best ways to test other components of a JEE application like servlets, jsp, ejb. Also are there any other frameworks which are used to test a web app?

I was not sure in which forum to submit this question , so I am sorry if this is the wrong place.

Thanks in advance.

Thanks
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30057
    
149

Andy,
We actually have a forum just for testing questions. I'll move this for you. It'll be easy to find as the original location will link to the new one for you.

[edited to add missing word]


[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
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30057
    
149

andy kumar wrote: I wanted to know which are the best ways to test other components of a JEE application like servlets, jsp, ejb.


andy kumar wrote:Also are there any other frameworks which are used to test a web app?

Yes - they extend JUnit. You need to decide whether you want to test from a real web browser. If so, Selenium Remote Control lets you write programmatic tests that will run in your real browser. If not, a library like jWebUnit can provide a "pretend" browser. You could also use a library like Canoo or Cactus.

I think the most important thing to do is make sure you decouple your logic from the web parts so you can test it independently (and faster.)
andy kumar
Ranch Hand

Joined: Jun 08, 2009
Posts: 57
Thank you for the response.
I think I want to test from a real web browser, so I guess I will start with Selenium Remote Control.

Thanks
Andy
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Testing JEE application
 
Similar Threads
Passed OCEWSD (JEE 6) with 68%
Deployment in Clustered environment
Creating war file in eclipse
Learning JEE
Organizing Testing tool JARs Question