Hey setya

I got this problem once when running maven too......I just cleaned and
recompiled before running the tests and that made the problem go away

Hopefully that might work

Regards

Ajay Ravichandran

On Wed, Oct 14, 2009 at 8:42 AM, Setya <[email protected]> wrote:

>
> Hi all,
>
> When running Tellurium based tests as JUnit Ant task, the following
> exception occurs:
>
>    [junit] Testcase: testSearchCommunityMember2
> (com.telkom.sdp.test.communitymember.TestSearchCommunityMemberPage):
> Caused an ERROR
>    [junit] initialize must be called for meta class of class
> org.tellurium.client.SeleniumClient(class
> org.tellurium.client.SeleniumClientMetaClass) to complete
> initialisation process before any invocation or field/property access
> can be done
>    [junit] java.lang.IllegalStateException: initialize must be called
> for meta class of class org.tellurium.client.SeleniumClient(class
> org.tellurium.client.SeleniumClientMetaClass) to complete
> initialisation process before any invocation or field/property access
> can be done
>    [junit]     at groovy.lang.MetaClassImpl.checkInitalised
> (MetaClassImpl.java:1435)
>    [junit]     at groovy.lang.MetaClassImpl.getProperty
> (MetaClassImpl.java:1501)
>    [junit]     at groovy.lang.MetaClassImpl.getProperty
> (MetaClassImpl.java:3275)
>    [junit]     at
>
> org.codehaus.groovy.runtime.callsite.PogoMetaClassGetPropertySite.getProperty
> (PogoMetaClassGetPropertySite.java:48)
>    [junit]     at
>
> org.codehaus.groovy.runtime.callsite.GetEffectivePogoPropertySite.callGetProperty
> (GetEffectivePogoPropertySite.java:29)
>    [junit]     at org.tellurium.dispatch.Dispatcher.invokeMethod
> (Dispatcher.groovy:22)
>    [junit]     at
> org.codehaus.groovy.runtime.callsite.PogoInterceptableSite.call
> (PogoInterceptableSite.java:46)
>    [junit]     at
> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall
> (CallSiteArray.java:43)
>    [junit]     at
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call
> (AbstractCallSite.java:116)
>    [junit]     at
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call
> (AbstractCallSite.java:124)
>    [junit]     at org.tellurium.access.Accessor.getXpathCount
> (Accessor.groovy:218)
>    [junit]     at org.tellurium.access.Accessor$getXpathCount.call
> (Unknown Source)
>    [junit]     at
> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall
> (CallSiteArray.java:43)
>    [junit]     at
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call
> (AbstractCallSite.java:116)
>    [junit]     at
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call
> (AbstractCallSite.java:124)
>    [junit]     at org.tellurium.object.Table.getTableMaxRowNumByXPath
> (Table.groovy:366)
>    [junit]     at org.tellurium.object.Table
> $getTableMaxRowNumByXPath.call(Unknown Source)
>    [junit]     at
> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall
> (CallSiteArray.java:43)
>    [junit]     at
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call
> (AbstractCallSite.java:116)
>    [junit]     at
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call
> (AbstractCallSite.java:124)
>    [junit]     at
> org.tellurium.dsl.BaseDslContext.getTableMaxRowNumByXPath
> (BaseDslContext.groovy:826)
>    [junit]     at org.tellurium.dsl.BaseDslContext
> $getTableMaxRowNumByXPath.callCurrent(Unknown Source)
>    [junit]     at
> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent
> (CallSiteArray.java:47)
>    [junit]     at
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent
> (AbstractCallSite.java:142)
>    [junit]     at
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent
> (AbstractCallSite.java:150)
>    [junit]     at org.tellurium.dsl.BaseDslContext.getTableMaxRowNum
> (BaseDslContext.groovy:995)
>    [junit]     at org.tellurium.dsl.BaseDslContext
> $getTableMaxRowNum.callCurrent(Unknown Source)
>    [junit]     at
> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent
> (CallSiteArray.java:47)
>    [junit]     at
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent
> (AbstractCallSite.java:142)
>    [junit]     at
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent
> (AbstractCallSite.java:150)
>    [junit]     at
>
> com.telkom.sdp.module.communitymember.SearchCommunityMemberPage.getSearchResultRowCount
> (SearchCommunityMemberPage.groovy:98)
>    [junit]     at
>
> com.telkom.sdp.test.communitymember.TestSearchCommunityMemberPage.getSearchResultRowCount
> (TestSearchCommunityMemberPage.java:184)
>    [junit]     at
> com.telkom.sdp.test.AbstractPaginationUITest.assertSearchResult
> (AbstractPaginationUITest.java:28)
>    [junit]     at
>
> com.telkom.sdp.test.communitymember.TestSearchCommunityMemberPage.testSearchCommunityMember2
> (TestSearchCommunityMemberPage.java:123)
>    [junit]     at
>
> org.eclipse.ant.internal.ui.antsupport.EclipseSingleCheckExecutor.executeTargets
> (EclipseSingleCheckExecutor.java:30)
>    [junit]     at
>
> org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets
> (EclipseDefaultExecutor.java:32)
>    [junit]     at
> org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run
> (InternalAntRunner.java:423)
>    [junit]     at
> org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main
> (InternalAntRunner.java:137)
>    [junit] Test
> com.telkom.sdp.test.communitymember.TestSearchCommunityMemberPage
> FAILED
>
> After further digging into the groovy module file, the exception is
> thrown when method DslContext#getTableMaxRowNum(uid) is invoked.
>
> Strangely, when I run the test from within Eclipse, everything is OK.
>
> Has anybody encountered similiar exception before ?
>
> Any help would be greatly appreciated.
>
> Regards,
>
> Setya
> >
>

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

Reply via email to