2010-03-29 22:09:32 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
|
|
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
|
|
|
<link rel="selenium.base" href="" />
|
|
|
|
<title>CreateLibrarian</title>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<table cellpadding="1" cellspacing="1" border="1">
|
|
|
|
<thead>
|
2012-10-18 19:57:52 +00:00
|
|
|
<tr><td rowspan="1" colspan="3">CreateLibrarian</td></tr>
|
2010-03-29 22:09:32 +00:00
|
|
|
</thead><tbody>
|
2010-03-31 17:37:06 +00:00
|
|
|
<tr>
|
|
|
|
<td>deleteAllVisibleCookies</td>
|
|
|
|
<td></td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
2011-01-18 15:10:02 +00:00
|
|
|
<tr>
|
|
|
|
<td>setTimeout</td>
|
|
|
|
<td>100000</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
2012-10-18 19:57:52 +00:00
|
|
|
<!--Create Librarian person-->
|
2010-03-29 22:09:32 +00:00
|
|
|
<tr>
|
|
|
|
<td>open</td>
|
|
|
|
<td>/vivo/</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>assertTitle</td>
|
|
|
|
<td>VIVO</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
2012-10-18 19:57:52 +00:00
|
|
|
<!--Must not be logged in already-->
|
2010-03-29 22:09:32 +00:00
|
|
|
<tr>
|
|
|
|
<td>clickAndWait</td>
|
|
|
|
<td>link=Log in</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>assertTitle</td>
|
2011-01-03 19:02:24 +00:00
|
|
|
<td>Log in to VIVO</td>
|
2010-03-29 22:09:32 +00:00
|
|
|
<td></td>
|
|
|
|
</tr>
|
2012-10-18 19:57:52 +00:00
|
|
|
<!--Must login as site admin-->
|
2010-03-29 22:09:32 +00:00
|
|
|
<tr>
|
|
|
|
<td>type</td>
|
2010-07-12 19:49:38 +00:00
|
|
|
<td>loginName</td>
|
2011-06-28 12:56:38 +00:00
|
|
|
<td>testAdmin@cornell.edu</td>
|
2010-03-29 22:09:32 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>type</td>
|
2010-07-12 19:49:38 +00:00
|
|
|
<td>loginPassword</td>
|
2010-03-29 22:09:32 +00:00
|
|
|
<td>Password</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>clickAndWait</td>
|
2010-07-12 19:49:38 +00:00
|
|
|
<td>loginForm</td>
|
2010-03-29 22:09:32 +00:00
|
|
|
<td></td>
|
|
|
|
</tr>
|
2010-12-16 19:14:52 +00:00
|
|
|
<tr>
|
|
|
|
<td>clickAndWait</td>
|
|
|
|
<td>link=Site Admin</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
2010-03-29 22:09:32 +00:00
|
|
|
<tr>
|
|
|
|
<td>assertTitle</td>
|
|
|
|
<td>VIVO Site Administration</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
2012-10-18 19:57:52 +00:00
|
|
|
<!--Navigate to add new individual page-->
|
2010-03-29 22:09:32 +00:00
|
|
|
<tr>
|
|
|
|
<td>select</td>
|
|
|
|
<td>VClassURI</td>
|
2011-11-14 17:47:04 +00:00
|
|
|
<td>label=Librarian (vivo)</td>
|
2010-03-29 22:09:32 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>clickAndWait</td>
|
|
|
|
<td>//input[@value='Add individual of this class']</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>verifyTextPresent</td>
|
2010-07-27 16:17:31 +00:00
|
|
|
<td>Create a new Librarian</td>
|
2010-03-29 22:09:32 +00:00
|
|
|
<td></td>
|
|
|
|
</tr>
|
2012-10-18 19:57:52 +00:00
|
|
|
<!--Create a librarian individual-->
|
2010-03-29 22:09:32 +00:00
|
|
|
<tr>
|
|
|
|
<td>type</td>
|
2010-07-22 20:34:05 +00:00
|
|
|
<td>firstName</td>
|
|
|
|
<td>Lily</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>type</td>
|
2013-10-28 13:58:49 -04:00
|
|
|
<td>id=middleName</td>
|
|
|
|
<td>Lou</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>type</td>
|
|
|
|
<td>id=lastName</td>
|
2010-07-22 20:34:05 +00:00
|
|
|
<td>Librarian</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>clickAndWait</td>
|
|
|
|
<td>submit</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>assertTitle</td>
|
2013-10-28 13:58:49 -04:00
|
|
|
<td>Librarian, Lily Lou</td>
|
2010-07-22 20:34:05 +00:00
|
|
|
<td></td>
|
|
|
|
</tr>
|
2012-10-18 19:57:52 +00:00
|
|
|
<!--Make individual an Assistant Librarian-->
|
2010-07-22 20:34:05 +00:00
|
|
|
<tr>
|
|
|
|
<td>clickAndWait</td>
|
2013-10-28 13:58:49 -04:00
|
|
|
<td>css=header > #ARG_2000028 > a.add-ARG_2000028 > img.add-individual</td>
|
2010-07-22 20:34:05 +00:00
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>assertTitle</td>
|
2011-07-12 19:43:18 +00:00
|
|
|
<td>Edit</td>
|
2010-07-22 20:34:05 +00:00
|
|
|
<td></td>
|
|
|
|
</tr>
|
2010-03-29 22:09:32 +00:00
|
|
|
<tr>
|
|
|
|
<td>type</td>
|
2013-10-28 13:58:49 -04:00
|
|
|
<td>id=preferredTitle</td>
|
2010-03-29 22:09:32 +00:00
|
|
|
<td>Assistant Librarian</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>clickAndWait</td>
|
2013-10-28 13:58:49 -04:00
|
|
|
<td>id=submit</td>
|
2010-03-29 22:09:32 +00:00
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>assertTitle</td>
|
2013-10-28 13:58:49 -04:00
|
|
|
<td>Librarian, Lily Lou</td>
|
2010-03-29 22:09:32 +00:00
|
|
|
<td></td>
|
|
|
|
</tr>
|
2011-01-18 15:10:02 +00:00
|
|
|
<tr>
|
|
|
|
<td>pause</td>
|
|
|
|
<td>10000</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
2012-10-18 19:57:52 +00:00
|
|
|
<!--Verify that librarian was added sucessfully-->
|
2010-03-29 22:09:32 +00:00
|
|
|
<tr>
|
|
|
|
<td>verifyTextPresent</td>
|
2013-10-28 13:58:49 -04:00
|
|
|
<td>Librarian, Lily Lou</td>
|
2010-07-22 20:34:05 +00:00
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>verifyTextPresent</td>
|
|
|
|
<td>Assistant Librarian</td>
|
2010-03-29 22:09:32 +00:00
|
|
|
<td></td>
|
|
|
|
</tr>
|
2012-10-18 19:57:52 +00:00
|
|
|
<!--Browse for new librarian-->
|
2010-03-29 22:09:32 +00:00
|
|
|
<tr>
|
|
|
|
<td>clickAndWait</td>
|
|
|
|
<td>link=Index</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
2010-12-04 01:16:52 +00:00
|
|
|
<tr>
|
|
|
|
<td>verifyElementPresent</td>
|
|
|
|
<td>link=Faculty Member</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
2010-03-29 22:09:32 +00:00
|
|
|
<tr>
|
|
|
|
<td>verifyTextPresent</td>
|
2010-12-04 01:16:52 +00:00
|
|
|
<td>Faculty Member (1)</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>verifyElementPresent</td>
|
|
|
|
<td>link=Librarian</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>verifyTextPresent</td>
|
|
|
|
<td>Librarian (1)</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>verifyElementPresent</td>
|
|
|
|
<td>link=Person</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>verifyTextPresent</td>
|
|
|
|
<td>Person (2)</td>
|
2010-03-29 22:09:32 +00:00
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>clickAndWait</td>
|
|
|
|
<td>link=Librarian</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>assertTitle</td>
|
|
|
|
<td>Librarian</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
2010-11-17 15:00:58 +00:00
|
|
|
<tr>
|
|
|
|
<td>verifyElementPresent</td>
|
2013-10-28 13:58:49 -04:00
|
|
|
<td>link=Librarian, Lily Lou</td>
|
2010-11-17 15:00:58 +00:00
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>verifyTextPresent</td>
|
2013-10-28 13:58:49 -04:00
|
|
|
<td>Librarian, Lily Lou Assistant Librarian</td>
|
2010-11-17 15:00:58 +00:00
|
|
|
<td></td>
|
|
|
|
</tr>
|
2012-10-18 19:57:52 +00:00
|
|
|
<!--Search for new librarian-->
|
2010-03-29 22:09:32 +00:00
|
|
|
<tr>
|
|
|
|
<td>type</td>
|
2010-11-17 15:00:58 +00:00
|
|
|
<td>querytext</td>
|
2010-07-22 20:34:05 +00:00
|
|
|
<td>librarian</td>
|
2010-03-29 22:09:32 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>clickAndWait</td>
|
2010-11-29 22:29:25 +00:00
|
|
|
<td>//input[@value='Search']</td>
|
2010-03-29 22:09:32 +00:00
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>assertTitle</td>
|
2010-07-22 20:34:05 +00:00
|
|
|
<td>librarian - VIVO Search Results</td>
|
2010-03-29 22:09:32 +00:00
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>verifyTextPresent</td>
|
2010-11-17 15:00:58 +00:00
|
|
|
<td>Search results for 'librarian'</td>
|
2010-03-29 22:09:32 +00:00
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>verifyElementPresent</td>
|
2013-10-28 13:58:49 -04:00
|
|
|
<td>link=Librarian, Lily Lou</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>verifyTextPresent</td>
|
|
|
|
<td>Librarian, Lily Lou Assistant Librarian</td>
|
2010-03-29 22:09:32 +00:00
|
|
|
<td></td>
|
|
|
|
</tr>
|
2013-10-28 13:58:49 -04:00
|
|
|
<!--Verify front page updated-->
|
2013-11-10 18:34:31 -05:00
|
|
|
<tr>
|
|
|
|
<td>clickAndWait</td>
|
|
|
|
<td>link=Home</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>assertTitle</td>
|
|
|
|
<td>VIVO</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
2010-03-29 22:09:32 +00:00
|
|
|
<tr>
|
|
|
|
<td>verifyTextPresent</td>
|
2013-10-28 13:58:49 -04:00
|
|
|
<td>No research content found.</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>verifyElementPresent</td>
|
|
|
|
<td>link=Faculty, Jane</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>verifyElementPresent</td>
|
|
|
|
<td>link=View all ...</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>clickAndWait</td>
|
|
|
|
<td>link=View all ...</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>assertTitle</td>
|
|
|
|
<td>People</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>click</td>
|
|
|
|
<td>link=Person (2)</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
2013-11-10 18:34:31 -05:00
|
|
|
<tr>
|
|
|
|
<td>pause</td>
|
|
|
|
<td>10000</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
2013-10-28 13:58:49 -04:00
|
|
|
<tr>
|
|
|
|
<td>verifyElementPresent</td>
|
|
|
|
<td>link=Faculty, Jane</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>verifyTextPresent</td>
|
|
|
|
<td>Assistant Professor</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>verifyElementPresent</td>
|
|
|
|
<td>link=Librarian, Lily Lou</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>verifyTextPresent</td>
|
|
|
|
<td>Assistant Librarian</td>
|
2010-03-29 22:09:32 +00:00
|
|
|
<td></td>
|
|
|
|
</tr>
|
2012-10-18 19:57:52 +00:00
|
|
|
<!--Logout-->
|
2010-11-17 19:24:12 +00:00
|
|
|
<tr>
|
|
|
|
<td>clickAndWait</td>
|
|
|
|
<td>link=Home</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
2010-03-29 22:09:32 +00:00
|
|
|
<tr>
|
|
|
|
<td>clickAndWait</td>
|
|
|
|
<td>link=Log out</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>assertTitle</td>
|
|
|
|
<td>VIVO</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
</tbody></table>
|
|
|
|
</body>
|
|
|
|
</html>
|