I am trying to test a link in the prelogin page of a struts based
application.

 public void setUp() {
        getTestContext()
            .setBaseUrl(
        "https://myserver/application";);
    }

   
    public void testForgetPasswordLink() {
        beginAt("/login.do");
        clickLinkWithText("Forgot your password"); 
        assertTitleEquals("Forgot Your Password");         
    }

this are the exception I'm getting:

<system-err><![CDATA[java.lang.reflect.InvocationTargetException
        at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
        at
com.meterware.httpunit.parsing.NekoHTMLParser.parse(NekoHTMLParser.java:41)
        at com.meterware.httpunit.HTMLPage.parse(HTMLPage.java:244)

......

Testcase: testForgetPasswordLink took 0.313 sec
        Caused an ERROR
java.lang.reflect.InvocationTargetException
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
        at
com.meterware.httpunit.javascript.JavaScriptEngineFactory.associate(JavaScri
ptEngineFactory.java:51)
        at com.meterware.httpunit.FrameHolder.<init>(FrameHolder.java:44)
        at com.meterware.httpunit.WebWindow.<init>(WebWindow.java:218)


I have all the jars needed in the classpath, but I do not know how to point
to the struts-config file. 
complaining for Unknown Source, I guess.

Anyone can help me?

Thanks! 


-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
Jwebunit-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jwebunit-users

Reply via email to