aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 2476
    
    7

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: junit Error - web.xml was not found
 
Similar Threads
How do I set value in my test case method for testing Action Class?
StrutsTestCase problem
in Eclipse - web.xml not found
struts test case problem
Run junit CactusStrutsTestCase with Tomcat