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
-~----------~----~----~----~------~----~------~--~---