Use of SeleniumXml

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Use of SeleniumXml

Gil Portenseigne
Hi,

Following the SeleniumXml Integration by Brett G. Palmer (thanks for
this improvment) in OFBIZ -2116, I tried to use this testtool but i
found problems.
Indeed, the first time i tried to launch the example test, errors
occured :

Caused by: java.lang.ClassNotFoundException: javolution.util.FastMap

first and then :
Caused by: java.lang.ClassNotFoundException:
org.ofbiz.base.util.UtilGenerics

So i decided to add in the runSeleniumXml.sh the good library, adding :
export CP=$CP:$OFBIZ_HOME/framework/base/lib/javolution-5.2.3.jar
export CP=$CP:$OFBIZ_HOME/framework/base/build/lib/ofbiz-base.jar

After that I managed to use it so, do my correction is the good way to
act ?

The last remaining problem is a certificate problem which has expired...

If you have a solution about that it would be great, firefox can't
remember the added exception...

Thanks,

Gil

Patch :
Index: framework/testtools/runSeleniumXml.sh
===================================================================
--- framework/testtools/runSeleniumXml.sh (revision 813471)
+++ framework/testtools/runSeleniumXml.sh (working copy)
@@ -9,6 +9,8 @@
export CP=$CP:$OFBIZ_HOME/framework/base/lib/junit.jar
export CP=$CP:
$OFBIZ_HOME/framework/base/lib/commons/commons-lang-2.3.jar
export CP=$CP:$OFBIZ_HOME/framework/base/lib/log4j-1.2.15.jar
+export CP=$CP:$OFBIZ_HOME/framework/base/lib/javolution-5.2.3.jar
+export CP=$CP:$OFBIZ_HOME/framework/base/build/lib/ofbiz-base.jar
echo $CP


Reply | Threaded
Open this post in threaded view
|

Re: Use of SeleniumXml

Brett
Gil,

Yes, that is a good approach to fix the ClassNotFoundException.  I am in the
process of submitting another patch to the project with updates to the
SeleniumXml framework and more example tests.

I am also updating the SeleniumServer library.  Remembering the certificate
exception was a problem previously with Selenium as they use their own
Firefox configuration at runtime which doesn't remember use preferences or
plugins.

Another work around is to disable https for testing and just use the
standard http://localhost:8080 URL.


Brett

On Fri, Sep 11, 2009 at 9:03 AM, gil portenseigne <
[hidden email]> wrote:

> Hi,
>
> Following the SeleniumXml Integration by Brett G. Palmer (thanks for
> this improvment) in OFBIZ -2116, I tried to use this testtool but i
> found problems.
> Indeed, the first time i tried to launch the example test, errors
> occured :
>
> Caused by: java.lang.ClassNotFoundException: javolution.util.FastMap
>
> first and then :
> Caused by: java.lang.ClassNotFoundException:
> org.ofbiz.base.util.UtilGenerics
>
> So i decided to add in the runSeleniumXml.sh the good library, adding :
> export CP=$CP:$OFBIZ_HOME/framework/base/lib/javolution-5.2.3.jar
> export CP=$CP:$OFBIZ_HOME/framework/base/build/lib/ofbiz-base.jar
>
> After that I managed to use it so, do my correction is the good way to
> act ?
>
> The last remaining problem is a certificate problem which has expired...
>
> If you have a solution about that it would be great, firefox can't
> remember the added exception...
>
> Thanks,
>
> Gil
>
> Patch :
> Index: framework/testtools/runSeleniumXml.sh
> ===================================================================
> --- framework/testtools/runSeleniumXml.sh (revision 813471)
> +++ framework/testtools/runSeleniumXml.sh (working copy)
> @@ -9,6 +9,8 @@
> export CP=$CP:$OFBIZ_HOME/framework/base/lib/junit.jar
> export CP=$CP:
> $OFBIZ_HOME/framework/base/lib/commons/commons-lang-2.3.jar
> export CP=$CP:$OFBIZ_HOME/framework/base/lib/log4j-1.2.15.jar
> +export CP=$CP:$OFBIZ_HOME/framework/base/lib/javolution-5.2.3.jar
> +export CP=$CP:$OFBIZ_HOME/framework/base/build/lib/ofbiz-base.jar
> echo $CP
>
>
>