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
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: 2500
    
    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
 
Don't get me started about those stupid light bulbs.
 
subject: junit Error - web.xml was not found