It turned out that we forgot to add the getValue() method to the checkbox object. I just fixed it and published the jar to our Maven repo. Please update your Tellurium core jar Maven repo. Be aware that you should use 0.7.0-SNAPSHOT.
Let us know if you have any further problems. Thanks, Jian On Thu, Jul 16, 2009 at 2:17 PM, Manoj Chavan <[email protected]>wrote: > Hi all now that I am on my way with my tests.. I have hit a speed bump... > below is my module def. > > ui.Form(uid: "login", clocator: [tag: "form", name: "login_form", method: > "post"]){ > InputBox(uid: "uid", clocator: [tag: "input", type: "text", > name: "email"]) > InputBox(uid: "pwd", clocator: [tag: "input", type: "password", > name: "password1"]) > SubmitButton(uid: "submit", clocator: [tag: "input", type: > "submit"], respond: ["click"]) > CheckBox(uid: "chkbox", clocator: [tag: "input", type: > "checkbox", name: "RememberMe", id: "RememberMe"]) > } > > public void typeUid(String input){ > type "login.uid", input > } > > public void typePwd(String input){ > type "login.pwd", input > } > > public String getUid(){ > getValue "login.uid" > } > > public void clickLogin(){ > click "login.submit" > waitForPageToLoad 30000 > } > > public String getCheckBoxStatus(){ > getValue "login.chkbox" > } > > > // MY TEST CASE > > @Test > public void testLogin() { > String sUid = "TestTest"; > String sPwd = "Testtest"; > > > System.out.println("No TESTS HAVE BEEN DEFINED>"); > > nfhp.click("nfhp.hat.signin"); > nfhp.waitForPageToLoad(30000); > > nfhp.typeUid(sUid); > nfhp.typePwd(sPwd); > > > System.out.println("UID: " + nfhp.getUid()); > System.out.println("Check box state: " + nfhp.getCheckBoxStatus()); > nfhp.clickLogin(); > } > > Dump locator information for login > ------------------------------------------------------- > login: //descendant-or-self::fo...@name="login_form" and @method="post"] > login.uid: //descendant-or-self::fo...@name="login_form" and > @method="post"]/descendant-or-self::inp...@type="text" and @name="email"] > login.pwd: //descendant-or-self::fo...@name="login_form" and > @method="post"]/descendant-or-self::inp...@type="password" and > @name="password1"] > login.submit: //descendant-or-self::fo...@name="login_form" and > @method="post"]/descendant-or-self::inp...@type="submit"] > login.chkbox: //descendant-or-self::fo...@name="login_form" and > @method="post"]/descendant-or-self::inp...@type="checkbox" and > @name="RememberMe" and @id="RememberMe"] > ------------------------------------------------------- > -------------------------------------- I get this error when clicking on > the Submit Btn. > testLogin(test.NetFlixTestCase) Time elapsed: 5.358 sec <<< ERROR! > groovy.lang.MissingMethodException: No signature of method: > org.tellurium.object.UiObject.getValue() is applicable for argument types: > (org.tellurium.dsl.BaseDslContext$_getValue_closure36) values: > [org.tellurium.dsl.basedslcontext$_getvalue_closur...@a6d35] > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > Method) > at > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) > at > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) > at java.lang.reflect.Constructor.newInstance(Constructor.java:513) > > > According to the User Guide, I should be able to use getValue for Checkbox. > > Regards, > > Manoj > > > *From:* Jian Fang <[email protected]> > *To:* [email protected] > *Sent:* Tuesday, July 14, 2009 6:12:51 PM > *Subject:* Re: AOST - Beginner > > Glad you got it working. Perhaps you could write a blog some time later to > introduce your experience on Tellurium > so that more people could benefit from it. In return we can give you the > open source IntelliJ IDEA license for prompting > Tellurium. > > Thanks, > > Jian > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
