Thank you... that was it... dont know how I missed it...
Successfully ran my very first Tellurium test case...

Manoj


>
>From: Jian Fang <[email protected]>
>To: [email protected]
>Sent: Wednesday, June 10, 2009 2:55:30 PM
>Subject: Re: TrUMP Generated DSL.
>
>>Seems you missed the "{" after the Container. The UI module should be
>        ui.Container(uid:"modulartab", colocator:[tag:"div",class: "tabs"]){
>
>        List(uid: "menu", clocator: [tag: "ul", id: 
> "modular-tab-menu"],separator: "li"){
>>>>
>>               UrlLink(uid: "all", clocator: [:])
>>>>         }
>       } 
>
>Otherwise, the DSL parser cannot parse the UI module correctly. What does "{}" 
>mean here?
>Actually, it represents a Groovy closure!
>
>
>>On Wed, Jun 10, 2009 at 5:07 PM, Manoj Chavan <[email protected]> wrote:
>
>
>>
>>>>Getting NoMethodFound exception for the following UI groovy definition.
>>
>>>>public class BRHomePage extends DslContext {
>>>>     public void defineUi() {
>>>>         ui.Container(uid:"modulartab", colocator:[tag:"div",class:"tabs"])
>>
>>        List(uid: "menu", clocator: [tag: "ul", id: 
>> "modular-tab-menu"],separator: "li"){
>>>>               UrlLink(uid: "all", clocator: [:])
>>>>         }
>>>>     }
>>>>}
>>
>>
>>groovy.lang.MissingMethodException: No signature of method: 
>>module.BRHomePage.List() is applicable for argument types: 
>>(java.util.LinkedHashMap, module.BRHomePage$_defineUi_closure1) values: 
>>[[uid:menu, clocator:[tag:ul, id:modular-tab-menu], separator:li], 
>>module.brhomepage$_defineui_closu...@916f80]
>>>>
>>    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:47)
>>>>    at 
>>>> org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:142)
>>>>    at 
>>>> org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:154)
>>>>    at module.BRHomePage.defineUi(BRHomePage.groovy:14)
>>>>    at test.BRHomePageTestCase.initUi(BRHomePageTestCase.java:21)
>>>>    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:597)
>>>>    at 
>>>> org.junit.internal.runners.ClassRoadie.runBefores(ClassRoadie.java:49)
>>>>    at 
>>>> org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:36)
>>>>    at 
>>>> org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42)
>>>>    at 
>>>> org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
>>>>    at 
>>>> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
>>>>    at 
>>>> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
>>>>    at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
>>>>    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:597)
>>>>    at 
>>>> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
>>>>    at 
>>>> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
>>
>>
>>>>----- Original Message ----
>>>>> From: John <[email protected]>
>>>>> To: tellurium-users <[email protected]>
>>>>> Sent: Wednesday, May 27, 2009 2:16:44 PM
>>>>> Subject: Re: TrUMP Generated DSL.
>>>>>
>>>>>
>>
>>> You can use a List to represent the li elements. For example,
>>>>>
>>>>> List(uid: "menu", clocator: [tag: "ul", id: "modular-tab-menu"],
>>>>> separator: "li"){
>>>>>    UrlLink(uid: "all", clocator: [:])
>>>>> }
>>>>>
>>>>> Then you can use menu[1], menu[2],... to access each links. Here I
>>>>> ignored other div and ul tags,
>>>>> you can use Container to represent them if you need them.
>>>>>
>>>>> Future Trump version will support UI templates and will automatically
>>>>> create List or Table for you.
>>>>> Please be patient.
>>>>>
>>>>> Thanks,
>>>>>
>>>>> Jian
>>>>>
>>
>>> On May 27, 4:50 pm, poweroftesting wrote:
>>>>> > Hi,
>>>>> >
>>>>> >   Below is my structure that I captured using the TrUMP plugin and the
>>>>> > resultant
>>>>> > generated DSL code. How do I modify to be able to access individual
>>>>> > Tabs?
>>>>> > Any help is greatly appreciated.
>>>>> >
>>>>> > Manoj
>>>>> >
>>>>> > -------------------  HTML Source
>>> > ------------------------------
>>>>> >
>>>>> >
>>
>>>>> >
>>
>>>>> >
>>
>>>>> >
>>
>>>>> >
>>
>>>>> >
>>>>        *
>>
>>> >                                French Open1
>>>>> >
>>>>> >
>>>>        *
>>>>> >                                French Open2
>>>>> >
>>>>> >
>>>>        *
>>>>> >                                French Open3
>>>>> >
>>>>> >
>>>>        *
>>>>> >                                French Open4
>>>>> >
>>>>> >
>>>>        *
>>>>> >                                French Open5
>>>>> >
>>>>> >
>>>>        *
>>>>> >                                French Open6
>>>>> >
>>>>> >
>>>>        *
>>>>> >                                French Open7
>>>>> >
>>>>> >
>>>>        *
>>>>> >                                French Open8
>>>>> >
>>>>> >
>>>>> >
>>>>> >
>>>>> >
>>>>> >
>>>>> >
>>
>>> > ----------------------- Generated DSL using TrUMP plugin
>>>>> > -------------------------
>>>>> >
>>>>> > Container(uid: "div0", clocator: [tag: "div", class: "brui-tabs-nav-
>>>>> > container"]){
>>>>> >         TextBox(uid: "ul1", clocator: [tag: "ul", class: 
>>>>> > "brui-tabs-nav"])
>>>>> >
>>>>> > }
>>>>>
>>
>>
>>
>>
>
>>>
>
--~--~---------~--~----~------------~-------~--~----~
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