CreateUser
setTimeout 45000
store javascript{Math.floor(Math.random()*11000)} randomSuffix
click link=My Profile
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
clickAndWait link=Users
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
clickAndWait //div[@id='MenuView']/ul/li[5]/ul/li[1]/a/span[2]
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
select UserPasswordForm_title_value label=Mr.
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
type UserPasswordForm_firstName Janny${randomSuffix}
type UserPasswordForm_lastName Jingo${randomSuffix}
type UserPasswordForm_username janny${randomSuffix}
type UserPasswordForm_newPassword abc123
type UserPasswordForm_newPassword_repeat abc123
type UserPasswordForm_jobTitle Jingo Factory
type UserPasswordForm_officePhone 123456789
type UserPasswordForm_mobilePhone 123455555
type UserPasswordForm_department Mail
type UserPasswordForm_primaryEmail_emailAddress janny@jingo.com
type UserPasswordForm_primaryAddress_street1 123 Jingo Street
type UserPasswordForm_primaryAddress_state IL
type UserPasswordForm_primaryAddress_city Chicago
type UserPasswordForm_primaryAddress_postalCode 60614
type UserPasswordForm_primaryAddress_country USA
clickAndWait save
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
assertText link=Edit Edit
assertText //div[@id='UserDetailsView']/div/h1 Janny${randomSuffix} Jingo${randomSuffix}
verifyTextPresent janny${randomSuffix}
verifyTextPresent Mail
assertText link=janny@jingo.com janny@jingo.com
compareText //div[@id='UserDetailsView']/div/div[3]/table/tbody/tr[3]/td 123 Jingo Street
Chicago IL, 60614
USAmap
assertText //div[@id='UserDetailsView']/div/div[2]/table/tbody/tr[3]/td[1] 123456789
assertText //div[@id='UserDetailsView']/div/div[2]/table/tbody/tr[4]/td[1] 123455555
assertText //div[@id='UserDetailsView']/div/div[2]/table/tbody/tr[1]/td[1] Jingo Factory
clickAndWait //div[@id='MenuView']/ul/li[4]/a/span[2]
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
clickAndWait link=Super Administrators
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
clickAndWait link=User Membership
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
addSelection id=edit-form_userNonMembershipData label=Janny${randomSuffix} Jingo${randomSuffix}
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click id=yw1moveRight
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
clickAndWait name=save
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
clickAndWait link=Sign out
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Username
type LoginForm_username janny${randomSuffix}
type LoginForm_password abc123
click Login
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent janny${randomSuffix}
click link=Save
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000