From b2fb3514032932a63ef7a39b2c5dee022ee008d8 Mon Sep 17 00:00:00 2001 From: ejc12 Date: Thu, 15 Jul 2010 16:48:38 +0000 Subject: [PATCH] Holly add a new test suite for Roles. --- .../AddRoles/CreateTestFacultyMember.html | 175 ++++++++++ .../AddRoles/DeleteTestFacultyMember.html | 205 +++++++++++ .../AddRoles/VerifyAllRolesSearchable.html | 330 ++++++++++++++++++ .../suites/AddRoles/suite.html | 16 + 4 files changed, 726 insertions(+) create mode 100644 utilities/acceptance-tests/suites/AddRoles/CreateTestFacultyMember.html create mode 100644 utilities/acceptance-tests/suites/AddRoles/DeleteTestFacultyMember.html create mode 100644 utilities/acceptance-tests/suites/AddRoles/VerifyAllRolesSearchable.html create mode 100644 utilities/acceptance-tests/suites/AddRoles/suite.html diff --git a/utilities/acceptance-tests/suites/AddRoles/CreateTestFacultyMember.html b/utilities/acceptance-tests/suites/AddRoles/CreateTestFacultyMember.html new file mode 100644 index 00000000..500c9543 --- /dev/null +++ b/utilities/acceptance-tests/suites/AddRoles/CreateTestFacultyMember.html @@ -0,0 +1,175 @@ + + + + + + +CreateTestFacultyMember + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CreateTestFacultyMember
commentAdd test Faculty member named Jane Faculty
deleteAllVisibleCookies
open/vivo/
assertTitleVIVO
commentMust be logged off to start
clickAndWaitlink=Log in
assertTitleVIVO Site Administration
commentMust login as the site admin
typeusernametestAdmin
typepasswordPassword
clickAndWaitloginSubmitMode
assertTitleVIVO Site Administration
verifyTextPresentData Input
selectVClassURIlabel=Faculty Member (core)
clickAndWait//input[@value='Add individual of this class']
pause10000
assertTitleIndividual Editing Form
commentAdd Assistant Professor Jane Faculty
typeNameJane Faculty
typeMonikerSelectAltAssistant Professor
verifyTextPresentCreating New Record
clickAndWaitprimaryAction
assertTitleIndividual Control Panel
commentVerify that account was created
verifyTextPresentJane Faculty
commentLogout
clickAndWaitlink=Log out
assertTitleVIVO
+ + diff --git a/utilities/acceptance-tests/suites/AddRoles/DeleteTestFacultyMember.html b/utilities/acceptance-tests/suites/AddRoles/DeleteTestFacultyMember.html new file mode 100644 index 00000000..ca536194 --- /dev/null +++ b/utilities/acceptance-tests/suites/AddRoles/DeleteTestFacultyMember.html @@ -0,0 +1,205 @@ + + + + + + +DeleteTestFacultyMember + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
DeleteTestFacultyMember
commentDelete test person Jane Faculty
deleteAllVisibleCookies
open/vivo/
assertTitleVIVO
commentMust not be logged in
clickAndWaitlink=Log in
assertTitleVIVO Site Administration
commentMust log in as site admin
typeusernametestAdmin
typepasswordPassword
clickAndWaitloginSubmitMode
assertTitleVIVO Site Administration
clickAndWaitlink=Index
assertTitleIndex to VIVO Contents
commentNavigate to Jane Faculty
clickAndWaitlink=Faculty Member
assertTitleFaculty Member
clickAndWaitlink=Jane Faculty
assertTitleJane Faculty
clickAndWaitlink=edit this individual
commentDelete Jane Faculty
assertTitleIndividual Control Panel
clickAndWait//input[@value='Edit This Individual']
assertTitleIndividual Editing Form
click_delete
assertConfirmationAre you SURE you want to delete this entity? If in doubt, CANCEL.
waitForPageToLoad5000
assertTitleVIVO Site Administration
commentVerify that Jane Faculty is indeed gone
clickAndWaitlink=Index
assertTitleIndex to VIVO Contents
commentLogout
clickAndWaitlink=Log out
assertTitleVIVO
+ + diff --git a/utilities/acceptance-tests/suites/AddRoles/VerifyAllRolesSearchable.html b/utilities/acceptance-tests/suites/AddRoles/VerifyAllRolesSearchable.html new file mode 100644 index 00000000..779ad449 --- /dev/null +++ b/utilities/acceptance-tests/suites/AddRoles/VerifyAllRolesSearchable.html @@ -0,0 +1,330 @@ + + + + + + +VerifyAllRolesSearchable + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
VerifyAllRolesSearchable
commentVerify all 8 roles are searchable
deleteAllVisibleCookies
commentNo need to log in
open/vivo/
assertTitleVIVO
commentSearch for RESEARCHER--will find 2 research focus roles
typesearchresearcher
clickAndWaitsubmit
assertTitleresearcher - VIVO Search Results
verifyElementPresentlink=Cancer Treatment Drug Interactions
verifyTextPresent... Testing new cancer treatment drugs with other drugs to determine interactions. start year and month 2001-01 end year and month 2002-01 role Lead Researcher research activity by Jane Faculty ...
verifyElementPresentlink=Relationship Between Stress and Children
verifyTextPresent... Testing to determine if having children makes your life more stressful. start year and month 2003-03 end year and month 2007-03 role Consulting Researcher research activity by Jane Faculty ...
commentSearch for PROFESSOR--will find 1 teaching focus role
typesearchprofessor
clickAndWaitsubmit
assertTitleprofessor - VIVO Search Results
verifyElementPresentlink=Drug Interactions
verifyTextPresent... Teaching how drugs interact with one another. start year and month 2001-02 end year and month 2012-02 role Associate Professor teaching activity by Jane Faculty ...
verifyElementPresentlink=Jane Faculty
verifyTextPresentAssistant Professor
commentSearch for LECTURER--will find 1 teaching focus role
typesearchlecturer
clickAndWaitsubmit
assertTitlelecturer - VIVO Search Results
verifyElementPresentlink=Public lectures on reducing stress
verifyElementPresentlink=Introduction to Drugs
verifyTextPresent... Intoduces first year pre-med students to drugs. start year and month 2003-04 end year and month 2007-04 role Lecturer teaching activity by Jane Faculty ...
verifyElementPresentlink=Jane Faculty
verifyTextPresentAssistant Professor
commentFor some reason verifying of the last line in the search results bombs out
commentSearch for FOUNDER--will find 1 outreach focus role
typesearchfounder
clickAndWaitsubmit
assertTitlefounder - VIVO Search Results
verifyElementPresentlink=Free Cancer Screening Clinic
verifyTextPresent... Founder of clinic to conduct free cancer screenings. start year and month 2001-12 end year and month 2012-12 role Founder outreach activity by Jane Faculty ...
commentSearch for SPEAKER--will find 1 outreach focus role
typesearchspeaker
clickAndWaitsubmit
assertTitlespeaker - VIVO Search Results
verifyElementPresentlink=Public lectures on reducing stress
verifyTextPresent... Providing helpful ideas and answer questions about reducing stress. start year and month 2005-05 end year and month 2006-06 role Speaker outreach activity by Jane Faculty ...
commentSearch for PRESIDENT--will find 1 professional service role
typesearchpresident
clickAndWaitsubmit
assertTitlepresident - VIVO Search Results
verifyElementPresentlink=AMA
verifyTextPresent... Won election. start year and month 2008-08 end year and month 2009-09 role President professional activity by Jane Faculty
commentSearch for DOCTOR--will find 1 professional service role
typesearchdoctor
clickAndWaitsubmit
clickAndWaitlink=2
assertTitledoctor - VIVO Search Results
verifyElementPresentlink=Private practice
verifyTextPresent... Practice focuses on reducing stress while taking cancer drugs. start year and month 1990-06 role Doctor professional activity by Jane Faculty ...
commentAll done
clickAndWaitlink=VIVO
assertTitleVIVO
+ + diff --git a/utilities/acceptance-tests/suites/AddRoles/suite.html b/utilities/acceptance-tests/suites/AddRoles/suite.html new file mode 100644 index 00000000..16883534 --- /dev/null +++ b/utilities/acceptance-tests/suites/AddRoles/suite.html @@ -0,0 +1,16 @@ + + + + + + Test Suite + + + + + + + +
Test Suite
CreateTestFacultyMember
VerifyAllRolesSearchable
DeleteTestFacultyMember
+ +