From 25452544049fe5960a684de4189081bfaa7c4324 Mon Sep 17 00:00:00 2001 From: hlm7 Date: Mon, 21 Nov 2011 14:36:53 +0000 Subject: [PATCH] Holly is creating a new SelfEditing test suite. --- .../CheckSelfEditorPrivileges.html | 134 +++++ .../SelfEditing/CheckUserBasedPrivileges.html | 514 ------------------ .../SelfEditing/CreateNewSelfEditorUser.html | 234 ++++++++ .../SelfEditing/DeleteNewSelfEditorUser.html | 189 +++++++ .../SelfEditing/FirstTimeSelfEditorLogin.html | 279 ++++++++++ .../suites/SelfEditing/Suite.html | 6 +- .../SelfEditing/TryNewSelfEditorPassword.html | 129 +++++ 7 files changed, 970 insertions(+), 515 deletions(-) create mode 100644 utilities/acceptance-tests/suites/SelfEditing/CheckSelfEditorPrivileges.html delete mode 100644 utilities/acceptance-tests/suites/SelfEditing/CheckUserBasedPrivileges.html create mode 100644 utilities/acceptance-tests/suites/SelfEditing/CreateNewSelfEditorUser.html create mode 100644 utilities/acceptance-tests/suites/SelfEditing/DeleteNewSelfEditorUser.html create mode 100644 utilities/acceptance-tests/suites/SelfEditing/FirstTimeSelfEditorLogin.html create mode 100644 utilities/acceptance-tests/suites/SelfEditing/TryNewSelfEditorPassword.html diff --git a/utilities/acceptance-tests/suites/SelfEditing/CheckSelfEditorPrivileges.html b/utilities/acceptance-tests/suites/SelfEditing/CheckSelfEditorPrivileges.html new file mode 100644 index 00000000..f49ca6f4 --- /dev/null +++ b/utilities/acceptance-tests/suites/SelfEditing/CheckSelfEditorPrivileges.html @@ -0,0 +1,134 @@ + + + + + + +CheckNobodyPrivileges + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CheckNobodyPrivileges
deleteAllVisibleCookies
setTimeout100000
commentCheck Unprivileged User Rights
open/vivo/
assertTitleVIVO
commentMust not be logged in already
clickAndWaitlink=Log in
assertTitleLog in to VIVO
commentLogin as Richard Rookie
typeloginNameRickRookie@cornell.edu
typeloginPasswordnewPassword
clickAndWaitloginForm
assertTitleVIVO
commentCheck privileges: should not see Data Input, Ontology Editor, Site Configuration, Advanced Data Tools.
verifyTextNotPresentSite Admin
verifyElementNotPresentlink=Site Admin
commentLogout
clickAndWaitlink=Home
clickAndWaitlink=Log out
assertTitleVIVO
+ + diff --git a/utilities/acceptance-tests/suites/SelfEditing/CheckUserBasedPrivileges.html b/utilities/acceptance-tests/suites/SelfEditing/CheckUserBasedPrivileges.html deleted file mode 100644 index c279af6c..00000000 --- a/utilities/acceptance-tests/suites/SelfEditing/CheckUserBasedPrivileges.html +++ /dev/null @@ -1,514 +0,0 @@ - - - - - - -CheckUserBasedPrivileges - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
CheckUserBasedPrivileges
deleteAllVisibleCookies
commentThis tests if a User can be associated with an Individual and if the User can then do profile editing.
open/vivo/siteAdmin?home=1&login=block
assertTitleVIVO
clickAndWaitlink=Log in
assertTitleVIVO
typeloginNametestAdmin@cornell.edu
typeloginPasswordPassword
clickAndWaitloginForm
assertTitleVIVO Site Administration
clickAndWaitlink=Class hierarchy
commentadd a person to associate Joe User with.
assertTitleClass Hierarchy
clickAndWaitlink=exact:foaf:Agent
assertTitleClass Control Panel
clickAndWait//input[@value='Add New Individual in This Class']
assertTitleIndividual Editing Form
typeNameUserJoe
clickAndWaitprimaryAction
assertTitleIndividual Control Panel
clickAndWait//input[@value='Add Type']
assertTitleIndividual Type Editing Form
selectTypeURIlabel=core:Faculty Member
clickAndWaitprimaryAction
assertTitleIndividual Control Panel
commentcomment pause for class inference
pause1500
clickAndWaitlink=Site Admin
assertTitleVIVO Site Administration
commentAssociate Joe User and individual UserJoe.
clickAndWaitlink=User accounts
assertTitleUser Accounts
clickAndWaitlink=Joe User
assertTitleUser Account Control Panel
pause5000
clickAndWaitlink=Select a person
assertTitleEdit
selectobjectVarlabel=UserJoe
clickAndWaitsubmit
assertTitleUser Account Control Panel
verifyTextPresentChange or Remove Association
verifyTextPresentUserJoe
clickAndWaitlink=Log out
assertTitleVIVO
commentLog in as Joe User.
clickAndWaitlink=Log in
assertTitleVIVO Site Administration
typeusernameJoe User
typeloginPasswordfirstTime
clickAndWaitloginSubmitMode
commentJoe is unprivileged, so he goes directly to his home page.
assertTitleUserJoe
commentCheck if there are edit links.
verifyElementPresentlink=add
clickAndWaitlink=Index
assertTitleIndex to VIVO Contents
commentCheck that Joe User cannot edit other individuals.
clickAndWaitlink=Country
assertTitleCountry
clickAndWaitlink=Afghanistan
assertTitleAfghanistan
assertTextNotPresentadd
clickAndWaitlink=Log out
assertTitleVIVO
commentClean up.
clickAndWaitlink=Log in
assertTitleVIVO Site Administration
typeusernametestAdmin@cornell.edu
typeloginPasswordPassword
clickAndWaitloginSubmitMode
assertTitleVIVO Site Administration
clickAndWaitlink=User accounts
assertTitleUser Accounts
clickAndWaitlink=Joe User
assertTitleUser Account Control Panel
clickAndWaitlink=Change or Remove Association
assertTitleEdit
clickAndWaitdelete
assertTitleUser Account Control Panel
assertTextPresentThis user account is not associated with a person
clickAndWaitlink=Index
assertTitleIndex to VIVO Contents
clickAndWaitlink=Faculty Member
assertTitleFaculty Member
clickAndWaitlink=UserJoe
assertTitleUserJoe
clickAndWaitlink=edit this individual
assertTitleIndividual Control Panel
clickAndWait//input[@value='Edit This Individual']
assertTitleIndividual Editing Form
clickAndWait_delete
assertConfirmationAre you SURE you want to delete this entity? If in doubt, CANCEL.
assertTitleVIVO Site Administration
clickAndWaitlink=Home
clickAndWaitlink=Log out
assertTitleVIVO
- - diff --git a/utilities/acceptance-tests/suites/SelfEditing/CreateNewSelfEditorUser.html b/utilities/acceptance-tests/suites/SelfEditing/CreateNewSelfEditorUser.html new file mode 100644 index 00000000..ba92dfc2 --- /dev/null +++ b/utilities/acceptance-tests/suites/SelfEditing/CreateNewSelfEditorUser.html @@ -0,0 +1,234 @@ + + + + + + +CreateNewNobodyUser + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CreateNewNobodyUser
deleteAllVisibleCookies
setTimeout10000000
commentCreate a new unprivileged user
open/vivo/
assertTitleVIVO
commentMust not be logged in already
clickAndWaitlink=Log in
assertTitleLog in to VIVO
commentMust login as site admin
typeloginNametestAdmin@cornell.edu
typeloginPasswordPassword
clickAndWaitloginForm
commentCreate a new user
clickAndWaitlink=Site Admin
clickAndWaitlink=User accounts
assertTitleVIVO
verifyTextPresentUser accounts
clickAndWait//input[@value='Add new account']
assertTitleVIVO
verifyTextPresentUser accounts > Add new account
typeemail-addressRickRookie@cornell.edu
typefirst-nameRick
typelast-nameRookie
click//input[@name='role' and @value='http://permissionSet-1']
clickAndWaitsubmitAdd
typeinitial-passwordmyPassword
typeconfirm-passwordmyPassword
clickAndWaitsubmitAdd
assertTitleVIVO
commentVerify account
verifyTextPresentA new account for Rick Rookie was successfully created.
verifyElementPresentlink=RickRookie@cornell.edu
verifyTextPresentRick
verifyTextPresentRookie
verifyTextPresentACTIVE
verifyTextPresentSelf Editor
verifyTextPresent0
commentLogout
clickAndWaitlink=Log out
assertTitleVIVO
+ + diff --git a/utilities/acceptance-tests/suites/SelfEditing/DeleteNewSelfEditorUser.html b/utilities/acceptance-tests/suites/SelfEditing/DeleteNewSelfEditorUser.html new file mode 100644 index 00000000..23d102c2 --- /dev/null +++ b/utilities/acceptance-tests/suites/SelfEditing/DeleteNewSelfEditorUser.html @@ -0,0 +1,189 @@ + + + + + + +DeleteNewEditorUser + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
DeleteNewEditorUser
deleteAllVisibleCookies
setTimeout100000
commentDelete new Editor account
open/vivo/
assertTitleVIVO
commentMust not be logged in already
clickAndWaitlink=Log in
assertTitleLog in to VIVO
commentMust login as site admin
typeloginNametestAdmin@cornell.edu
typeloginPasswordPassword
clickAndWaitloginForm
commentGo to User Accounts
clickAndWaitlink=Site Admin
assertTitleVIVO Site Administration
clickAndWaitlink=User accounts
assertTitleVIVO
verifyElementPresentlink=RickRookie@cornell.edu
commentDelete the account
clickdeleteAccount
clickAndWaitdelete-account
assertConfirmationAre you sure you want to delete this account?
waitForPageToLoad5000
assertTitleVIVO
verifyTextPresentUser accounts
verifyTextPresentDeleted 1 accounts.
verifyElementNotPresentlink=RickRookie@cornell.edu
commentLogout
clickAndWaitlink=Home
clickAndWaitlink=Log out
assertTitleVIVO
+ + diff --git a/utilities/acceptance-tests/suites/SelfEditing/FirstTimeSelfEditorLogin.html b/utilities/acceptance-tests/suites/SelfEditing/FirstTimeSelfEditorLogin.html new file mode 100644 index 00000000..2eea4cae --- /dev/null +++ b/utilities/acceptance-tests/suites/SelfEditing/FirstTimeSelfEditorLogin.html @@ -0,0 +1,279 @@ + + + + + + +FirstTimeCuratorLogin + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FirstTimeCuratorLogin
deleteAllVisibleCookies
setTimeout100000
commentCheck first time login process
open/vivo/
assertTitleVIVO
commentMust not be logged in already
clickAndWaitlink=Log in
assertTitleLog in to VIVO
commentTry logging in with wrong password
typeloginNameRick Rookie
typeloginPasswordincorrect
clickAndWaitloginForm
assertTitleLog in to VIVO
verifyTextPresentThe email or password you entered is incorrect.
commentLogin with correct password
typeloginNameRickRookie@cornell.edu
typeloginPasswordmyPassword
clickAndWaitloginForm
assertTitleLog in to VIVO
commentNow it's time to change the password
verifyTextPresentNew Password
verifyTextPresentConfirm Password
commentTry an invalid password
typenewPasswordjunky
typeconfirmPasswordjunky
clickAndWaitpasswordChangeForm
verifyTextPresentPlease enter a password between 6 and 12 characters in length.
commentTry using the original password as the new one
typenewPasswordmyPassword
typeconfirmPasswordmyPassword
clickAndWaitpasswordChangeForm
assertTitleLog in to VIVO
verifyTextPresentYour new password cannot match the current one.
commentTry using 2 different passwords
typenewPasswordnewPassword
typeconfirmPasswordnewPasword
clickAndWaitpasswordChangeForm
verifyTextPresentThe passwords entered do not match.
commentChange password correctly
typenewPasswordnewPassword
typeconfirmPasswordnewPassword
clickAndWaitpasswordChangeForm
commentVerify that account is logged in
verifyTextPresentRick
verifyTextPresentYou have logged in, but the system contains no profile for you.
commentLog out
clickAndWaitlink=Home
clickAndWaitlink=Log out
assertTitleVIVO
+ + diff --git a/utilities/acceptance-tests/suites/SelfEditing/Suite.html b/utilities/acceptance-tests/suites/SelfEditing/Suite.html index 4a3fee99..766f4cb8 100644 --- a/utilities/acceptance-tests/suites/SelfEditing/Suite.html +++ b/utilities/acceptance-tests/suites/SelfEditing/Suite.html @@ -8,7 +8,11 @@ - + + + + +
Test Suite
CheckUserBasedPrivileges
CreateNewSelfEditorUser
FirstTimeSelfEditorLogin
TryNewSelfEditorPassword
CheckSelfEditorPrivileges
DeleteNewSelfEditorUser
diff --git a/utilities/acceptance-tests/suites/SelfEditing/TryNewSelfEditorPassword.html b/utilities/acceptance-tests/suites/SelfEditing/TryNewSelfEditorPassword.html new file mode 100644 index 00000000..6f99225d --- /dev/null +++ b/utilities/acceptance-tests/suites/SelfEditing/TryNewSelfEditorPassword.html @@ -0,0 +1,129 @@ + + + + + + +TryNewNobodyPassword + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TryNewNobodyPassword
deleteAllVisibleCookies
setTimeout100000
commentTry the reset password for user
open/vivo/
assertTitleVIVO
commentLog in with new password
clickAndWaitlink=Log in
typeloginNameRickRookie@cornell.edu
typeloginPasswordnewPassword
clickAndWaitloginForm
assertTitleVIVO
commentConfirm that it worked
verifyTextPresentRick
verifyTextPresentLog out
verifyTextPresentYou have logged in, but the system contains no profile for you.
commentLogout
clickAndWaitlink=Home
clickAndWaitlink=Log out
assertTitleVIVO
+ +