Yes Jian, that was it. The defined test was not running, and I had the closure definition wrong. Thanks for your quick and accurate respose! BenG.
On Wed, Aug 5, 2009 at 2:57 PM, Jian Fang <[email protected]> wrote: > I see your problem, defineTest() only puts the test into the registry and > does not run it. You > should put the closure of test code right after the stepToEnd command as I > suggested. > > Thanks, > > Jian > > > > On Wed, Aug 5, 2009 at 5:47 PM, John <[email protected]> wrote: > >> >> What is the error then? >> >> If you use the closure directly as follows, does it work for you? >> >> stepToEnd { >> def target = bind("QuickSearch.target") >> >> println "Testing login" >> openUrl "http://pollux.orcom.com:8980/nextgen/login.seam" >> type "EcisPlusUiLoginModule.Username", "TESTNG01" >> type "EcisPlusUiLoginModule.Password", "TESTPASS01" >> click "EcisPlusUiLoginModule.Login" >> waitForPageToLoad 30000 >> >> println "Testing Quick Search" >> type "EcisPlusUiSearchModule.Target", "${target}" >> click "EcisPlusUiSearchModule.Search" >> waitForPageToLoad 30000 >> } >> >> Thanks, >> >> Jian >> >> On Aug 5, 5:24 pm, Ben Groeneveld <[email protected]> wrote: >> > I am trying to tun the data driven dsl script below. All the parts work >> > individually, but trying to invoke the test method as a closure doesn't >> seem >> > to work. That is, I am expecting the line >> > "stepToEnd(EcisPlusSmokeTestDemo)" to execute the test case for each row >> of >> > data. What am I missing? Thanks, Ben. >> > >> > ui.Container(uid: "EcisPlusUiLoginModule", clocator: [tag: "table"], >> group: >> > "true") >> > { >> > InputBox(uid: "Username", clocator: [id: "loginForm:name", type: >> "text"]) >> > InputBox(uid: "Password", clocator: [id: "loginForm:password", type: >> > "password"]) >> > UrlLink(uid: "Login", clocator: [id: "loginForm:loginButton"]) >> > >> > } >> > >> > ui.Form(uid: "EcisPlusUiSearchModule", clocator: [action: >> > "/nextgen/advancedSearch.seam", method: "post"], group: "true") >> > { >> > InputBox(uid: "Target", clocator: [id: "qrf:quickSearchTerm", type: >> > "text"]) >> > SubmitButton(uid: "Search", clocator: [id: "qrf:quickSearchButton", >> type: >> > "submit"]) >> > >> > } >> > >> > fs.FieldSet(name: "QuickSearch", description: "EcisPlus Quick Search >> > Input") >> > { >> > Field(name: "label") >> > Field(name: "target", type: "string") >> > >> > } >> > >> > def EcisPlusSmokeTestDemo = defineTest("EcisPlusSmokeTestDemo") >> > { >> > def target = bind("QuickSearch.target") >> > >> > println "Testing login" >> > openUrl "http://pollux.orcom.com:8980/nextgen/login.seam" >> > type "EcisPlusUiLoginModule.Username", "TESTNG01" >> > type "EcisPlusUiLoginModule.Password", "TESTPASS01" >> > click "EcisPlusUiLoginModule.Login" >> > waitForPageToLoad 30000 >> > >> > println "Testing Quick Search" >> > type "EcisPlusUiSearchModule.Target", "${target}" >> > click "EcisPlusUiSearchModule.Search" >> > waitForPageToLoad 30000 >> > >> > } >> > >> > protected String data = """ >> > QuickSearchDefault | smith >> > """ >> > >> > useData data >> > println "Tesing EcisPlusSmokeTestDemo" >> > stepToEnd(EcisPlusSmokeTestDemo) >> > closeData() >> >> > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
