Hi everybody,

I can't get JWebUnit started. I have all the jars from the 
jwebunit-1.4.1 in my classpath, including the jwebunit-core-1.4.1.jar 
and the jwebunit-htmlunit-plugin-1.4.1.jar and my local Tomcat is running.

My Test Case looks like this:
public class LoginTest extends WebTestCase {

        public LoginTest(String name) {
                
                super(name);
                
getTestContext().setBaseUrl("http://localhost:8080/modulverwaltung";);
        }

//...
        
        public static void main(String[] args) {
                
                LoginTest test = new LoginTest("LoginTest");
        }
}

When I run the main-method (from within eclipse), I get following message:
Exception in thread "main" java.lang.NullPointerException
        at 
net.sourceforge.jwebunit.junit.WebTestCase.getTestContext(WebTestCase.java:106)
        at test.LoginTest.<init>(LoginTest.java:15)
        at test.LoginTest.main(LoginTest.java:33)

Anybody got an idea what's wrong?

Best regards,

Abid Hussain

-- 

Abid Hussain
Mail: [EMAIL PROTECTED]
Web: http://www.abid76.de

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
JWebUnit-users mailing list
JWebUnit-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jwebunit-users

Reply via email to