Well, that is a Dsl script. The magic is that we use the DslScriptEngine class for the super class of all Dsl scripts, which extends DdDslContext (a subclass of DslContext) and also has a delegate to DslTelluriumGroovyTestCase.
http://code.google.com/p/aost/source/browse/trunk/core/src/main/groovy/org/tellurium/dsl/DslScriptEngine.groovy The DslTelluriumGroovyTestCase includes the openUrl() method. The reason we did in this way is due to Java's single inheritance nature. Groovy Mixin feature is not mature yet, otherwise we can mixin the DslTelluriumGroovyTestCase to DslScriptEngine. Thanks, Jian On Mon, Sep 21, 2009 at 10:50 AM, Zsolt Kovacs <[email protected]> wrote: > I am sorry but I do not really understand your answer. Your answer suggest, > that I can only call it from a class which inherits from > TelluriumJavaTestCase. Unfortunately I cannot do that, I need like to call > openUrl() in a class, which inherits from DslContext. > > In fact the User Guide has examples like *openUrl " > http://code.google.com/p/aost/" *on page A18, that is why I was so keen to > use it. > > Thanks, > > Zsolt > > 2009/9/21 Jian Fang <[email protected]> > > OpenUrl is on the base Java/Groovy test case class. Not on DslContext. >> Please use >> >> openUrl(URL) >> >> directly. >> >> Thanks, >> >> Jian >> >> >> On Mon, Sep 21, 2009 at 7:56 AM, Zsolt Kovacs <[email protected]> wrote: >> >>> Hi, >>> >>> I am unable to find the openUrl DSL method in the 0.6 release. I have >>> tried the jar and also checked out tags/tellurium-0.6.0/core, but neither >>> the DslContext nor BaseDslContext has got such method. I can click or type >>> but calling openUrl throws this exception: >>> >>> groovy.lang.MissingMethodException: No signature of method: >>> com.medicanimal.test.tellurium.ui.MANewUserPage.openUrl() is applicable for >>> argument types: (org.codehaus.groovy.runtime.GStringImpl) values: [ >>> https://localhost:8443/pageURL] >>> at >>> org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54) >>> at >>> org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:78) >>> at >>> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:44) >>> at >>> org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:143) >>> at >>> org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:151) >>> at >>> com.medicanimal.test.tellurium.ui.MANewUserPage.open(MANewUserPage.groovy:59) >>> >>> Is it truly missing or I am doing something wrong? >>> >>> Thanks, >>> >>> Zsolt >>> >>> >>> >> >> >> > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
