Hi Catalin, I reproduced your problem in my Linux box with Netbean 6.9.1. Seems the Groovy plugin for NetBeans 6.9 has some problems to create Groovy classes. I turned off the "save on compile" option as suggested by one thread in the NetBeans forum, but it did not work either. I didn't really use NetBeans for a Groovy project and I was really frustrated by its Groovy plugin.
Since IntelliJ IDE has the best Groovy support and it has a community version with Groovy support, I strongly suggest you to use IntelliJ IDE for your Tellurium testing project instead of struggling with Netbeans. Here is a wiki guide on how to use Tellurium with IntelliJ IDEA. http://code.google.com/p/aost/wiki/CustomTelluriumIntelliJProject In the meanwhile, we will try to figure out if there is any way to work around this problem with NetBeans 6.9, it may take some time. Thanks, Jian On Tue, Oct 19, 2010 at 6:19 PM, Catalin Marin <[email protected]>wrote: > I really don't know what seems to be the problem. I've tried this on 3 > different environments. Maybe I'm doing something wrong. It is necessary to > Maven, because I didn't use it? > > Here is what I did: > 1. Download and install Netbeans 6.9 > 2. Create a Java application > 3. Downloaded tellurium-0.7.0.tar.gz > 4. Create a module package and added GoogleSearchModule.groovy file in > Source Packages > 5. Added GoogleSearchJUnitTestCase.java file in Test Packages > 6. Added all needed libraries > 7. Added the TelluriumConfigu.groovy file in the root directory of the > GoogleSearch project > > I'm attaching a screenshot with the libraries I've added and the error. > > Regards, > -- > Catalin > > On Wed, Oct 20, 2010 at 12:42 AM, Jian Fang <[email protected]>wrote: > >> Just did a quick run with my NetBeans 6.9.1 and seems the tests have no >> problem to compile and I >> can run them. I first did "Clean and Build project" and then run by the >> command "Test File" in the Run menu. >> >> Any environment problem with your computer? >> >> Thanks, >> >> Jian >> >> >> On Tue, Oct 19, 2010 at 5:30 PM, Catalin Marin <[email protected] >> > wrote: >> >>> Thank you! I will also investigate this issue further and let you know >>> how it goes. >>> >>> Regards, >>> -- >>> Catalin >>> >>> >>> On Wed, Oct 20, 2010 at 12:29 AM, Jian Fang <[email protected]>wrote: >>> >>>> Thanks. I will look at it tonight. >>>> >>>> Regards, >>>> >>>> Jian >>>> >>>> >>>> On Tue, Oct 19, 2010 at 5:26 PM, Catalin Marin < >>>> [email protected]> wrote: >>>> >>>>> Sure, you can find attached the zip package from the project. It's a >>>>> test project using the source code from the tellurium-0.7.0.tar.gz >>>>> archive. >>>>> >>>>> I will join your group because I'm intending to use tellurium from now >>>>> on. >>>>> >>>>> Regards, >>>>> -- >>>>> Catalin >>>>> >>>>> >>>>> On Wed, Oct 20, 2010 at 12:23 AM, Jian Fang >>>>> <[email protected]>wrote: >>>>> >>>>>> You are welcome to post the questions to Tellurium user group at >>>>>> >>>>>> http://groups.google.com/group/tellurium-users >>>>>> >>>>>> Haroon, did you see this problem before? >>>>>> >>>>>> Catalin, could you package the whole project source (exclude the jar >>>>>> files) to me so that I can try it out with Netbeans 6.9 tonight? >>>>>> >>>>>> Thanks, >>>>>> >>>>>> Jian >>>>>> >>>>>> >>>>>> On Tue, Oct 19, 2010 at 5:16 PM, Catalin Marin < >>>>>> [email protected]> wrote: >>>>>> >>>>>>> Hi again, >>>>>>> >>>>>>> I've added all jars in the project, but now I'm receiving the >>>>>>> following error "GoogleSearchJUnitTestCase caused an ERROR: >>>>>>> java.lang.ExceptionInInitializerError at >>>>>>> GoogleSearchJUnitTestCase.initUi(GoogleSearchJUnitTestCase.java:28)". I >>>>>>> really don't know what I'm doing wrong. >>>>>>> >>>>>>> Regards, >>>>>>> -- >>>>>>> Catalin >>>>>>> >>>>>>> >>>>>>> On Wed, Oct 20, 2010 at 12:11 AM, Jian Fang < >>>>>>> [email protected]> wrote: >>>>>>> >>>>>>>> Yes, you need to include all the dependent jars in the 0.7.0 release >>>>>>>> package. More details here: >>>>>>>> >>>>>>>> http://code.google.com/p/aost/wiki/Tellurium070Released >>>>>>>> >>>>>>>> Thanks, >>>>>>>> >>>>>>>> Jian >>>>>>>> >>>>>>>> >>>>>>>> On Tue, Oct 19, 2010 at 5:04 PM, Catalin Marin < >>>>>>>> [email protected]> wrote: >>>>>>>> >>>>>>>>> Hi Jian, >>>>>>>>> >>>>>>>>> Yes, I have groovy plugin installed. I followed the steps from >>>>>>>>> here >>>>>>>>> http://code.google.com/p/aost/wiki/CustomTelluriumNetBeansProject . >>>>>>>>> I've added the following libraries: selenium-server-1.0.1-te3.jar, >>>>>>>>> selenium-java-client-driver-1.0.1.jar, junit-4.7.jar, >>>>>>>>> tellurium-udl-0.7.0.jar and tellurium-core-0.7.0.jar. Did I miss some >>>>>>>>> libraries? >>>>>>>>> >>>>>>>>> Thanks, >>>>>>>>> -- >>>>>>>>> Catalin >>>>>>>>> >>>>>>>>> >>>>>>>>> On Tue, Oct 19, 2010 at 11:43 PM, Jian Fang < >>>>>>>>> [email protected]> wrote: >>>>>>>>> >>>>>>>>>> Hi Catalin, >>>>>>>>>> >>>>>>>>>> Do you have Groovy plugin installed for your Netbeans? Tellurium >>>>>>>>>> uses Groovy for its UI module class. >>>>>>>>>> >>>>>>>>>> Thanks, >>>>>>>>>> >>>>>>>>>> Jian >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> On Tue, Oct 19, 2010 at 4:35 PM, Catalin Marin < >>>>>>>>>> [email protected]> wrote: >>>>>>>>>> >>>>>>>>>>> Hello, >>>>>>>>>>> >>>>>>>>>>> I'm trying to make the GoogleSearch project using Netbeans, but >>>>>>>>>>> I'm not able to run the test. Everything is OK, there are no errors >>>>>>>>>>> in the >>>>>>>>>>> code, all libraries/dependencies are added, but when I run the >>>>>>>>>>> test, I >>>>>>>>>>> receive the following error: "Unknown caused an ERROR" at line 23 >>>>>>>>>>> "public >>>>>>>>>>> class TelluriumDownloadsPageJUnitTestCase extends >>>>>>>>>>> TelluriumJUnitTestCase". >>>>>>>>>>> I'm using Netbeans 6.9. >>>>>>>>>>> >>>>>>>>>>> Regards, >>>>>>>>>>> -- >>>>>>>>>>> Catalin >>>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>> >>>>>> >>>>> >>>> >>> >> > -- You received this message because you are subscribed to the Google Groups "tellurium-users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/tellurium-users?hl=en.
