Hi Jian/Haroon,

Great news !! I succeeded in getting my Tellurium java test case executed
successfully. There was issue with Groovy eclipse plugin I hope.

However still when I am using TelluriumConfig.groovy I get exception

java.lang.NullPointerException: Cannot invoke method
getActiveSeleniumSession() on null object

Refer the attachments.

regards,
Ravi


On Wed, Jun 17, 2009 at 6:37 PM, Jian Fang <[email protected]> wrote:

> Could you zip your sample project and send it to us. We will take a look.
>
> Thanks,
>
> Jian
>
>
> On Wed, Jun 17, 2009 at 2:16 AM, Ravi Chaddha <[email protected]>wrote:
>
>> Well, this is strange. I already did what Jian & Haroon mentioned. I was
>> getting errors in your reference project too. May be I need to find some one
>> in my company who has worked with Groovy. I doubt there's any. But lemme
>> check.
>>
>> regards,
>> Ravi
>>
>>
>> On Wed, Jun 17, 2009 at 2:41 AM, Haroon Rasheed <[email protected]>wrote:
>>
>>> You also need to Add Groovy Nature to your project to make it work in
>>> Eclipse.
>>> Right Click on the project  > Groovy > Add Groovy Nature
>>>
>>> You need to perform the following steps as well.
>>>
>>>    - Bring up the Project Properties.
>>>    - Click on Java Build Path > Source.
>>>    - Change the Project/bin to Project/bin-groovy.
>>>
>>> Let me know if this does not work.
>>>
>>>
>>> Cheers
>>> Haroon
>>>
>>> 2009/6/16 Jian Fang <[email protected]>
>>>
>>> BTW, one way to test is to download one of our reference projects since
>>>> the reference has project meta files checked in.
>>>> You can try to open the reference project to see if you have any problem
>>>> to compile it.
>>>>
>>>> On Tue, Jun 16, 2009 at 3:55 PM, Jian Fang <[email protected]>wrote:
>>>>
>>>>> Seems Eclipse does not recognize Groovy file at all, for example, it does 
>>>>> not know what "def" is.
>>>>>
>>>>> Please check your class path and make sure Groovy-1.6.0.jar is included 
>>>>> in your Eclipse project class path.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Thanks,
>>>>>
>>>>> Jian
>>>>>
>>>>>
>>>>>
>>>>> On Tue, Jun 16, 2009 at 3:21 PM, Ravi Chaddha 
>>>>> <[email protected]>wrote:
>>>>>
>>>>>> Hello Haroon,
>>>>>>
>>>>>> Attached file contains compilation errors.
>>>>>>
>>>>>> regards,
>>>>>> Ravi
>>>>>>
>>>>>>
>>>>>> On Wed, Jun 17, 2009 at 12:27 AM, Haroon Rasheed <
>>>>>> [email protected]> wrote:
>>>>>>
>>>>>>> Hi Ravi,
>>>>>>> Can you please post the stack trace as well for the compilation
>>>>>>> error. It might helps us in identifying the problem.
>>>>>>>
>>>>>>>
>>>>>>> Cheers
>>>>>>> Haroon
>>>>>>>
>>>>>>> 2009/6/16 Ravi Chaddha <[email protected]>
>>>>>>>
>>>>>>>>  Hi Jian,
>>>>>>>>
>>>>>>>> I gave a try today again but still the same compilation issues in
>>>>>>>> groovy file in eclipse.
>>>>>>>>
>>>>>>>> The only difference was last time there were errors while eclipse
>>>>>>>> groovy plugin installation and this time there was no error in plugin
>>>>>>>> installation.
>>>>>>>>
>>>>>>>> regards,
>>>>>>>> Ravi
>>>>>>>>
>>>>>>>> On Fri, May 29, 2009 at 9:58 PM, Jian Fang <
>>>>>>>> [email protected]> wrote:
>>>>>>>>
>>>>>>>>> Ravi,
>>>>>>>>>
>>>>>>>>> Here are the guides for an Eclipse project,
>>>>>>>>>
>>>>>>>>> http://code.google.com/p/aost/wiki/CustomTelluriumEclipseProject
>>>>>>>>>
>>>>>>>>> http://code.google.com/p/aost/wiki/TelluriumReferenceProjectEclipseSetup
>>>>>>>>>
>>>>>>>>> But be aware that you should use Groovy 1.6 now.
>>>>>>>>>
>>>>>>>>> The best way to create a Tellurium project is to use Tellurium
>>>>>>>>> Maven archetypes if you are familiar with Maven
>>>>>>>>>
>>>>>>>>> http://code.google.com/p/aost/wiki/TelluriumMavenArchetypes
>>>>>>>>> http://code.google.com/p/aost/wiki/TenMinutesToTellurium
>>>>>>>>>
>>>>>>>>> Please let us know if you still have problems.
>>>>>>>>>
>>>>>>>>> Thanks,
>>>>>>>>>
>>>>>>>>> Jian
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Fri, May 29, 2009 at 12:19 PM, Ravi Chaddha <
>>>>>>>>> [email protected]> wrote:
>>>>>>>>>
>>>>>>>>>>
>>>>>>>>
>>>>>>>>> I am using Eclipse 3.2 and want to use tellurium with Java. Can
>>>>>>>>>> some one please direct me as I get errors when extending DSLContext 
>>>>>>>>>> that
>>>>>>>>>> it's an abstract class and I'll have to implement abstract methods. 
>>>>>>>>>> However
>>>>>>>>>> I do not see any such implementation of any abstract methods in the 
>>>>>>>>>> examples
>>>>>>>>>> on google code site examples. Another error is when I write
>>>>>>>>>> ui.Container(..... that syntax is incorrect. These are just few 
>>>>>>>>>> there are
>>>>>>>>>> many errors I am getting.
>>>>>>>>>>
>>>>>>>>>> Conceptually I like this framework very much and even I designed
>>>>>>>>>> my own GUIMap concept for Selenium tests. I want to use this tool. 
>>>>>>>>>> Kindly
>>>>>>>>>> guide.
>>>>>>>>>>
>>>>>>>>>> regards,
>>>>>>>>>> Ravi Chaddha
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> regards,
>>>>>>>> Ravi Chaddha
>>>>>>>> +91-9971336371
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> regards,
>>>>>> Ravi Chaddha
>>>>>> +91-9971336371
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>
>>
>> --
>> regards,
>> Ravi Chaddha
>> +91-9971336371
>>
>>
>>
>
> >
>


-- 
regards,
Ravi Chaddha
+91-9971336371

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

java.lang.NullPointerException: Cannot invoke method getActiveSeleniumSession() 
on null object
        at 
org.codehaus.groovy.runtime.NullObject.invokeMethod(NullObject.java:77)
        at 
org.codehaus.groovy.runtime.InvokerHelper.invokePogoMethod(InvokerHelper.java:743)
        at 
org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:720)
        at 
org.codehaus.groovy.runtime.callsite.NullCallSite.call(NullCallSite.java:17)
        at 
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:43)
        at 
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
        at 
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:120)
        at 
org.tellurium.connector.SeleniumConnector.disconnectSeleniumServer(SeleniumConnector.groovy:88)
        at 
org.tellurium.connector.SeleniumConnector$disconnectSeleniumServer.call(Unknown 
Source)
        at 
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:43)
        at 
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
        at 
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:120)
        at 
org.tellurium.framework.TelluriumFramework.stop(TelluriumFramework.groovy:143)
        at 
org.tellurium.test.java.TelluriumJavaTestCase.tearDownForClass(TelluriumJavaTestCase.java:31)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.junit.internal.runners.ClassRoadie.runAfters(ClassRoadie.java:65)
        at 
org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:40)
        at 
org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42)
        at 
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:45)
        at 
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
        at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
        at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
        at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
        at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)

Reply via email to