Hi all, Thank you for all your suggestions.
Unfortunately we can not use the same way as the given example by Jon. Since we already put the ui definitions into their own groovy files we want to reuse them without changing anything. Following Jian suggestions, here's our test case : UiModule uiModuleA = new UiModule(); uiModuleA.defineUi(); UiModule uiModuleB = new UiModule(); uiModuleB.defineUi(); //The following URL directs us to uiModuleA TelluriumJavaTestCase#connectURL(url); //Do something with uiModuleA here ... //The following directs us to uiModuleB click <link to uiModuleB> //Do something with uiModuleB here ... From above test case, the difference with Jian's suggestion is, we do not connect another URL for uiModuleB. Our problem is when we arrive at uiModuleB, Tellurium seems always look for methods defined in uiModuleA, resulting no method found, etc. I hope I can explain the problem clearly. Regards, Setya > Thanks for sharing your example. Yes, that should also work. Each > sub-module that starts with a "ui." will not affect each other when > Tellurium does the Java object to runtime locator mapping. Of course, > the first UIDs must be different for them. Under the hood, Tellurium > will build a separate object tree for each sub-module starting with "ui.". > > Thanks, > > Jian > > On Thu, Sep 24, 2009 at 7:56 PM, JalexRTL <[email protected] > <mailto:[email protected]>> wrote: > > > I believe I had a similar project that I was working on today testing > UI modules on separate web pages. This format worked for me: > > public void defineUi() { > ui.Container(uid: > "Main",...............{ > Form(uid: "Login",....... > InputBox(uid: > "Username",...... > } > ui.Container(uid: > "Root",................{ > UrlLink(uid: > "Logout",............ > } > } > > To access the elements I had to prefix them with the Container uid. > ex: > type "Main.Login.Username", username > click "Root.Logout" > > -Jon Alexander- > Recommended Test Labs > > > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
