; run the following code i m getting following failures:
> > > >
> > > > 1.junit.framework.AssertionFailedError: The /WEB-INF/web.xml was not
> > > found.
> > > > 2.junit.framework.AssertionFailedError: No tests found in
> &
mework.AssertionFailedError: The /WEB-INF/web.xml was not
> > found.
> > > 2.junit.framework.AssertionFailedError: No tests found in
> > > servletunit.struts.MockStrutsTestCase
> > >
> > > can anybody plz tell me whats a problem? is ther anyth
edError: The /WEB-INF/web.xml was not
> found.
> > 2.junit.framework.AssertionFailedError: No tests found in
> > servletunit.struts.MockStrutsTestCase
> >
> > can anybody plz tell me whats a problem? is ther anything reqd to write
> in
> > web.xml for StrutstestCases?
> >
edError: The /WEB-INF/web.xml was not
> found.
> > 2.junit.framework.AssertionFailedError: No tests found in
> > servletunit.struts.MockStrutsTestCase
> >
> > can anybody plz tell me whats a problem? is ther anything reqd to write
> in
> > web.xml for StrutstestCases?
> >
nit.framework.AssertionFailedError: The /WEB-INF/web.xml was not found.
> 2.junit.framework.AssertionFailedError: No tests found in
> servletunit.struts.MockStrutsTestCase
>
> can anybody plz tell me whats a problem? is ther anything reqd to write in
> web.xml
.junit.framework.AssertionFailedError: The /WEB-INF/web.xml was not found.
2.junit.framework.AssertionFailedError: No tests found in
servletunit.struts.MockStrutsTestCase
can anybody plz tell me whats a problem? is ther anything reqd to write in
web.xml for StrutstestCases?
import
U need to set the contect path of ur application:
setContextDirectory(new File(Your_Application_ContextPath));
-Original Message-
From: Phil Zoio [mailto:[EMAIL PROTECTED]
Sent: Monday, April 24, 2006 3:39 PM
To: Struts Users Mailing List
Subject: Re: StrutsTestCases
You should be able
You should be able to solve the problem by adding the WEB-INF directory
onto your classpath. I couldn't get it to work otherwise
Chaitanya Parkhi wrote:
hi guys i hav created a java file by using MockObjectStrutsTestCases which
tests for a simple login form which takes Login Name & password as
A web application that is packed as a war file and deployed to Tomcat or
JBoss can work properly without having web.xml. Since you are using struts
and jsp. You need tell the server what is the servlet parser as well as
someother info. So make sure there is a "VALID" web.xml in your application
fol
hi guys i hav created a java file by using MockObjectStrutsTestCases which
tests for a simple login form which takes Login Name & password as a
input.in this file i hav following method
public void testSuccessfulLogin() {
setConfigFile("/WEB-INF/struts-config.xml");
setRequestPat
hi guys i hav created a java file by using MockObjectStrutsTestCases which
tests for a simple login form which takes Login Name & password as a
input.in this file i hav following method
public void testSuccessfulLogin() {
setConfigFile("/WEB-INF/struts-config.xml");
setRequestPat
11 matches
Mail list logo