Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Testing and the fly likes junit Error - web.xml was not found 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
Reply locked New topic
Author

junit Error - web.xml was not found

Kaizar Laxmidhar
Greenhorn

Joined: Feb 25, 2004
Posts: 10
Hi,

I am new to junit, I am trying to create StrutsTestCase for my application but facing below error while running the test case.
junit. framework. AssertionFailedError : The /WEB-INF/web.xml was not found.
Your help will be appriciated.
Here is the code

setConfigFile("/WEB-INF/struts-config.xml");
setRequestPathInfo("/CalendarSearchAction.do");
addRequestParameter("OutboundDay","20");
addRequestParameter("OutboundMonth","7");
addRequestParameter("OutboundYear","2008");
actionPerform();

Regards,
Kaizar
Jan Cumps
Bartender

Joined: Dec 20, 2006
Posts: 2491
    
    8

Please do not post duplicate topics. Carefully choose one forum.
[ June 09, 2008: Message edited by: Jan Cumps ]

OCUP UML fundamental and ITIL foundation
youtube channel
 
 
subject: junit Error - web.xml was not found
 
Similar Threads
in Eclipse - web.xml not found
How do I set value in my test case method for testing Action Class?
Run junit CactusStrutsTestCase with Tomcat
struts test case problem
StrutsTestCase problem