Hi,

webdefault.xml is the web.xml for your test application, so you need to provide one and set the tapestry.app-package context parameter etc.

-Filip

On 2008-04-12 12:47, Stellit wrote:
I have wrote a simple test with AbstractIntegrationTestSuite and selenium. I run my test with TestNG within eclipse, but I got the folloing message all
the time.

^^^^^^^^^^
Starting Jetty instance on port 9999 (/ mapped to
/Users/stellit/Documents/workspace/ajax-test/src/main/webapp)
[WARN] WebApplicationContext Configuration error on
/Users/stellit/Documents/workspace/ajax-test/src/main/webapp
java.io.FileNotFoundException:
/Users/stellit/Documents/workspace/ajax-test/src/test/conf/webdefault.xml
(No such file or directory)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:106)
        at java.io.FileInputStream.<init>(FileInputStream.java:66)
^^^^^^^^^^^^^^^
My Test Class looks like this:

~~~~~~~~~~~~~~~~
package org.hamster.loginapp.test.ajax;

import org.apache.tapestry.test.AbstractIntegrationTestSuite;
import org.testng.annotations.Test;

public class HelloTest extends AbstractIntegrationTestSuite {
        public HelloTest() {
                super("/src/main/webapp");
        }

         @Test
         public void integration_test() throws Exception {
         open(BASE_URL);
         assertTextPresent("Tapestry");
         }

}
~~~~~~~~~~~~~~~~~~~~~~~~

Why it always finds webdefault.xml? How should I fix this?


regard, stellit

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to