Bookmark Topic Watch Topic
  • New Topic

junit Error - web.xml was not found

 
Kaizar Laxmidhar
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Posts: 2586
11
C++ Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please do not post duplicate topics. Carefully choose one forum.
[ June 09, 2008: Message edited by: Jan Cumps ]
 
    Bookmark Topic Watch Topic
  • New Topic