Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

testing JSP applications with JUnit

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to test a JSP application deployed in apache tomcat server using JUnit. I have tested console Java applications using JUnit but have no idea about how to test JSP applications using JUnit.

Plz guide me .
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Tommy and welcome to the JavaRanch!
First of all I'd like to point you to our naming policy (which does not allow obviously fake display names) and to Your Profile where you can edit the displayed name. Thanks for cooperating

Originally posted by tommy here:
I want to test a JSP application deployed in apache tomcat server using JUnit. I have tested console Java applications using JUnit but have no idea about how to test JSP applications using JUnit.


You can't test JSP code with JUnit. What you can do is use TagUnit for testing your custom taglibs and one of Jakarta Cactus/HttpUnit/jWebUnit/JUnitEE for testing your web application when it's deployed on the server.

Take a look at the abovementioned projects' tutorials for a general overview of how they're used.
 
incandescent light gives off an efficient form of heat. You must be THIS smart to ride this ride. Tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic