Certainly, we will update reference projects and include more examples. Please be patient.
Thanks, Jian On Mon, Sep 7, 2009 at 10:49 PM, Harihara Vinayakaram <[email protected]>wrote: > Hi > Are the examples / reference projects not updated . A code snippet would > certainly help > > Regards > Hari > > > On Mon, Sep 7, 2009 at 7:44 PM, John <[email protected]> wrote: > >> >> Please see the thread here, >> >> >> http://groups.google.com/group/tellurium-users/browse_thread/thread/8807410b1e44599b >> >> On Sep 7, 9:55 am, Harihara Vinayakaram <[email protected]> wrote: >> > Hi >> > I see the following methods missing : >> > useJavascriptXPathLibrary(); >> > registerNamespace >> > >> > I did an svn update and then did cd core ; ant ; copied the resultant >> > tellurium-0.7.0.jar into my workspace. >> > These methods are present in the source. My error stack looks like this >> > >> > 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.dispatch.Dispatcher.invokeMethod(Dispatcher.groovy:31) >> > at >> org.codehaus.groovy.runtime.callsite.PogoInterceptableSite.call(PogoInterceptableSite.java:46) >> > at >> org.codehaus.groovy.runtime.callsite.PogoInterceptableSite.callCurrent(PogoInterceptableSite.java:56) >> > at >> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:47) >> > at >> org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:142) >> > at >> org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:154) >> > at >> org.tellurium.dispatch.Dispatcher.methodMissing(Dispatcher.groovy:39) >> > at >> groovy.lang.MetaClassImpl.invokeMissingMethod(MetaClassImpl.java:825) >> > at >> groovy.lang.MetaClassImpl.invokePropertyOrMissing(MetaClassImpl.java:1103) >> > at >> groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1063) >> > at >> groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:892) >> > at >> groovy.lang.DelegatingMetaClass.invokeMethod(DelegatingMetaClass.java:142) >> > at groovy.lang.MetaObjectProtocol$invokeMethod.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:132) >> > at >> org.tellurium.extend.Extension.invokeMethod(Extension.groovy:19) >> > at >> org.codehaus.groovy.runtime.callsite.PogoInterceptableSite.call(PogoInterceptableSite.java:46) >> > 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:128) >> > at >> org.tellurium.dsl.BaseDslContext.registerNamespace(BaseDslContext.groovy:175) >> > at >> org.tellurium.dsl.BaseDslContext$registerNamespace.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:128) >> > at >> com.yostech.yoscare.test.SummaryReport01.initUi(SummaryReport01.groovy:94) >> > >> > My initUi() method looks like this >> > >> > public void initUi() { >> > loginUtils = new LoginUtils(); >> > loginUtils.defineUi(); >> > >> > loggedInPageUtils = new LoggedInPageUtils(); >> > loggedInPageUtils.defineUi(); >> > >> > //loggedInPageUtils.useJavascriptXPathLibrary(); >> > >> > addNewUserUtils = new AddNewUserUtils(); >> > addNewUserUtils.defineUi(); >> > >> > searchPageUtils = new SearchPageUtils(); >> > searchPageUtils.defineUi(); >> > >> > pregnancyUtils = new PregnancyUtils(); >> > pregnancyUtils.defineUi(); >> > >> > summaryPageUtils = new SummaryPageUtils(); >> > summaryPageUtils.defineUi(); >> > // >> > >> > addNewUserUtils.registerNamespace("xforms", " >> http://www.w3.org/2002/xforms") >> > addNewUserUtils.registerNamespace("html", " >> http://www.w3.org/1999/xhtml >> > ") >> > pregnancyUtils.registerNamespace("xforms", " >> http://www.w3.org/2002/xforms") >> > pregnancyUtils.registerNamespace("html", " >> http://www.w3.org/1999/xhtml") >> > loggedInPageUtils.registerNamespace("html", " >> http://www.w3.org/1999/xhtml") >> > //pregnancyUtils.dump("caseRecordPopUp"); >> > } >> > >> > From what I can debug I seem to have missed initializing the extension >> > >> > Let me know what I am missing >> > >> > Regards >> > Hari >> >> > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
