Hi,
Please note that if you have only jwebunit-httpunit-plugin-XXX.jar in your classpath, you don't need to specify "setTestingEngineKey(TestingEngineRegistry.TESTING_ENGINE_HTMLUNIT)". Indeed, TestingEngineRegistry will try to use the first plugin he finds if no one is explicitly specified.
If you are using eclipse, you can download jwebunit-core-XXX-src.jar and trace your test to find exactly what part of the code raise the NPE.
++
Julien
Please note that if you have only jwebunit-httpunit-plugin-XXX.jar in your classpath, you don't need to specify "setTestingEngineKey(TestingEngineRegistry.TESTING_ENGINE_HTMLUNIT)". Indeed, TestingEngineRegistry will try to use the first plugin he finds if no one is explicitly specified.
If you are using eclipse, you can download jwebunit-core-XXX-src.jar and trace your test to find exactly what part of the code raise the NPE.
++
Julien
----- Message d'origine ----
De : amit h <[EMAIL PROTECTED]>
À : Usage problems for jWebUnit <[email protected]>
Envoyé le : Jeudi, 15 Juin 2006, 3h41mn 20s
Objet : Re: [Jwebunit-users] Problem using some methods of api
Hi ,
I included all the required packages and now when I run my old test which was written with api 1.2 , the tests do not run.
Also now I have to include the TestingEngineRegistry for writing the test.
But Im geting a null pointer exception, I think when I use the following method for initialising the TestingEngine
setTestingEngineKey(TestingEngineRegistry.TESTING_ENGINE_HTMLUNIT);
The method is returing null.
I tried initialising the TestingEngine in constructor and also in setup(), but Im getting the same null pointer exception and the test does not run.
Kindly help...
Julien Henry <[EMAIL PROTECTED]> wrote:
De : amit h <[EMAIL PROTECTED]>
À : Usage problems for jWebUnit <[email protected]>
Envoyé le : Jeudi, 15 Juin 2006, 3h41mn 20s
Objet : Re: [Jwebunit-users] Problem using some methods of api
Hi ,
I included all the required packages and now when I run my old test which was written with api 1.2 , the tests do not run.
Also now I have to include the TestingEngineRegistry for writing the test.
But Im geting a null pointer exception, I think when I use the following method for initialising the TestingEngine
setTestingEngineKey(TestingEngineRegistry.TESTING_ENGINE_HTMLUNIT);
The method is returing null.
I tried initialising the TestingEngine in constructor and also in setup(), but Im getting the same null pointer exception and the test does not run.
Kindly help...
Julien Henry <[EMAIL PROTECTED]> wrote:
Hi,
You need regexp-1.3 from Apache. You can find it on ibiblio :
http://www.ibiblio.org/maven2/regexp/regexp/1.3/
++
Julien
amit h a �crit :
> Hi ,
>
> I added new jars to the class library and now the methods seems to work.
> But now Im getting some exception, which Im unable to fix, the
> exception is
>
> java.lang.NoClassDefFoundError: org/apache/regexp/RESyntaxException
>
> I tried fixing the exception, but couldn't get any success.
> Can u help me with this exception.
>
>
> */Julien Henry /* wrote:
>
>
> Hi,
>
> JWebUnit is currently deeply modified, and the site correspond to the
> latest snapshot. You can ether use SVN to get the source and build it
> with Maven, use our private Maven repository :
> http://jwebunit.sourceforge.net/m2-repo-snapshots/
> For example, if you want to use HtmlUnit plugin, you need
> jwebunit-core-XXX.jar, jwebunit-htmlunit-plugin-XXX.jar and all
> HtmlUnit
> dependencies, that you can find on HtmlUnit plugin page :
> http://jwebunit.sourceforge.net/jwebunit-htmlunit-plugin/dependencies.html
>
> ++
> Julien
>
> amit h a �crit :
> > Hi ,
> >
> > Im using jwebunit1.2 with eclipse, and I have noticed that a lot of
> > methods which are described in net.sourceforge.jwebunit javadocs
> are
> > not available when Im creating an object of say WebTestCase and
> want
> > to call method assertElementPresentByXPath() its not recognised
> as a
> > method and is not available for use.
> > Can u tell me if Im doing something wrong or if i need to
> include some
> > lib....
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam protection around
> > http://mail.yahoo.com
> >
> >
> ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Jwebunit-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/jwebunit-users
> >
>
> This message contains information that may be privileged or
> confidential and is the property of the Capgemini Group. It is
> intended only for the person to whom it is addressed. If you are
> not the intended recipient, you are not authorized to read, print,
> retain, copy, disseminate, distribute, or use this message or any
> part thereof. If you receive this message in error, please notify
> the sender immediately and delete all copies of this message.
>
>
>
> _______________________________________________
> Jwebunit-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jwebunit-users
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Jwebunit-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jwebunit-users
>
This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
_______________________________________________
Jwebunit-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-users
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
Jwebunit-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-users
Jwebunit-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-users
_______________________________________________ Jwebunit-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jwebunit-users
