2010-07-19 00:07:04 +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>CreateTestLibrarian</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">CreateTestLibrarian</td></tr>
|
2010-07-19 00:07:04 +00:00
|
|
|
</thead><tbody>
|
2012-10-18 19:57:52 +00:00
|
|
|
<!--Add test Librarian named Lily Librarian-->
|
2010-07-19 00:07:04 +00:00
|
|
|
<tr>
|
|
|
|
<td>deleteAllVisibleCookies</td>
|
|
|
|
<td></td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
2011-07-12 13:59:26 +00:00
|
|
|
<tr>
|
|
|
|
<td>setTimeout</td>
|
|
|
|
<td>100000</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
2010-07-19 00:07:04 +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 be logged off to start-->
|
2010-07-19 00:07:04 +00:00
|
|
|
<tr>
|
|
|
|
<td>clickAndWait</td>
|
|
|
|
<td>link=Log in</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>assertTitle</td>
|
2011-01-03 19:26:11 +00:00
|
|
|
<td>Log in to VIVO</td>
|
2010-07-19 00:07:04 +00:00
|
|
|
<td></td>
|
|
|
|
</tr>
|
2012-10-18 19:57:52 +00:00
|
|
|
<!--Must login as the site admin-->
|
2010-07-19 00:07:04 +00:00
|
|
|
<tr>
|
|
|
|
<td>type</td>
|
|
|
|
<td>loginName</td>
|
2011-06-28 12:56:38 +00:00
|
|
|
<td>testAdmin@cornell.edu</td>
|
2010-07-19 00:07:04 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>type</td>
|
|
|
|
<td>loginPassword</td>
|
|
|
|
<td>Password</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>clickAndWait</td>
|
|
|
|
<td>loginForm</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
2010-12-16 21:02:45 +00:00
|
|
|
<tr>
|
|
|
|
<td>clickAndWait</td>
|
|
|
|
<td>link=Site Admin</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
2010-07-19 00:07:04 +00:00
|
|
|
<tr>
|
|
|
|
<td>assertTitle</td>
|
|
|
|
<td>VIVO Site Administration</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>verifyTextPresent</td>
|
|
|
|
<td>Data Input</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>select</td>
|
|
|
|
<td>VClassURI</td>
|
2011-11-16 18:44:09 +00:00
|
|
|
<td>label=Librarian (vivo)</td>
|
2010-07-19 00:07:04 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>clickAndWait</td>
|
|
|
|
<td>//input[@value='Add individual of this class']</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>assertTitle</td>
|
2010-07-22 17:35:28 +00:00
|
|
|
<td>Edit</td>
|
2010-07-19 00:07:04 +00:00
|
|
|
<td></td>
|
|
|
|
</tr>
|
2012-10-18 19:57:52 +00:00
|
|
|
<!--Add Lily Librarian-->
|
2010-07-19 00:07:04 +00:00
|
|
|
<tr>
|
|
|
|
<td>type</td>
|
2010-07-22 17:35:28 +00:00
|
|
|
<td>firstName</td>
|
|
|
|
<td>Lily</td>
|
2010-07-19 00:07:04 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>type</td>
|
2010-07-22 17:35:28 +00:00
|
|
|
<td>lastName</td>
|
|
|
|
<td>Librarian</td>
|
2010-07-19 00:07:04 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2010-07-22 17:35:28 +00:00
|
|
|
<td>clickAndWait</td>
|
|
|
|
<td>submit</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
2012-10-18 19:57:52 +00:00
|
|
|
<!--Edit Lily Librarian to add title-->
|
2010-07-22 17:35:28 +00:00
|
|
|
<tr>
|
|
|
|
<td>assertTitle</td>
|
|
|
|
<td>Librarian, Lily</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>clickAndWait</td>
|
2013-10-23 17:54:01 -04:00
|
|
|
<td>css=header > #ARG_2000028 > a.add-ARG_2000028 > img.add-individual</td>
|
2010-07-22 17:35:28 +00:00
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>assertTitle</td>
|
2011-07-12 13:59:26 +00:00
|
|
|
<td>Edit</td>
|
2010-07-19 00:07:04 +00:00
|
|
|
<td></td>
|
|
|
|
</tr>
|
2010-07-22 17:35:28 +00:00
|
|
|
<tr>
|
|
|
|
<td>type</td>
|
2013-10-23 17:54:01 -04:00
|
|
|
<td>id=preferredTitle</td>
|
2010-07-22 17:35:28 +00:00
|
|
|
<td>Associate Librarian</td>
|
|
|
|
</tr>
|
2010-07-19 00:07:04 +00:00
|
|
|
<tr>
|
|
|
|
<td>clickAndWait</td>
|
2013-10-23 17:54:01 -04:00
|
|
|
<td>id=submit</td>
|
2010-07-19 00:07:04 +00:00
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>assertTitle</td>
|
2011-07-12 13:59:26 +00:00
|
|
|
<td>Librarian, Lily</td>
|
2010-07-19 00:07:04 +00:00
|
|
|
<td></td>
|
|
|
|
</tr>
|
2012-10-18 19:57:52 +00:00
|
|
|
<!--Verify that account was created-->
|
2010-07-19 00:07:04 +00:00
|
|
|
<tr>
|
|
|
|
<td>verifyTextPresent</td>
|
2010-07-22 17:35:28 +00:00
|
|
|
<td>Librarian, Lily</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>verifyTextPresent</td>
|
|
|
|
<td>Associate Librarian</td>
|
2010-07-19 00:07:04 +00:00
|
|
|
<td></td>
|
|
|
|
</tr>
|
2012-10-18 19:57:52 +00:00
|
|
|
<!--Logout-->
|
2010-11-18 14:34:03 +00:00
|
|
|
<tr>
|
|
|
|
<td>clickAndWait</td>
|
|
|
|
<td>link=Home</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
2010-07-19 00:07:04 +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>
|