vivo/utilities/acceptance-tests/suites/LinkedOpenData/TestVariousRequests.html
2013-12-09 17:29:03 -05:00

219 lines
5.1 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?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>CreateTestFacultyMember</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">CreateTestFacultyMember</td></tr>
</thead><tbody>
<!--Ask for various types of RDF by URL or Format-->
<tr>
<td>deleteAllVisibleCookies</td>
<td></td>
<td></td>
</tr>
<tr>
<td>setTimeout</td>
<td>100000000000</td>
<td></td>
</tr>
<tr>
<td>open</td>
<td>/vivo/</td>
<td></td>
</tr>
<tr>
<td>assertTitle</td>
<td>VIVO</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Log in</td>
<td></td>
</tr>
<tr>
<td>assertTitle</td>
<td>Log in to VIVO</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>id=loginName</td>
<td>testAdmin@cornell.edu</td>
</tr>
<tr>
<td>type</td>
<td>id=loginPassword</td>
<td>Password</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>name=loginForm</td>
<td></td>
</tr>
<tr>
<td>assertTitle</td>
<td>VIVO</td>
<td></td>
</tr>
<!------->
<tr>
<td>open</td>
<td>/vivo/individual/lodFacultyMember/lodFacultyMember.rdf</td>
<td></td>
</tr>
<!--Pause to check results-->
<tr>
<td>pause</td>
<td>10000</td>
<td></td>
</tr>
<!--Should see ~80 lines of RDF/XML-->
<!------->
<tr>
<td>open</td>
<td>/vivo/display/lodFacultyMember?format=rdfxml</td>
<td></td>
</tr>
<!--Pause to check results-->
<tr>
<td>pause</td>
<td>10000</td>
<td></td>
</tr>
<!--Should see ~80 lines of RDF/XML-->
<!------->
<tr>
<td>open</td>
<td>/vivo/individual/lodFacultyMember/lodFacultyMember.jsonld</td>
<td></td>
</tr>
<!--Pause to check results-->
<tr>
<td>pause</td>
<td>10000</td>
<td></td>
</tr>
<!--Should see a really dense response of JSON-LD Lots of “[“, “{“, “}”, and “]”-->
<tr>
<td>verifyTextPresent</td>
<td>[{&quot;@id&quot;:&quot;http://localhost:8080/vivo/individual/lodFacultyMember/lodFacultyMember.jsonld&quot;,&quot;http://purl.org/dc/elements/1.1/rights&quot;:[{&quot;@id&quot;:&quot;http://vivo.mydomain.edu/termsOfUse&quot;}],&quot;http://purl.org/dc/elements/1.1/date&quot;:</td>
<td></td>
</tr>
<!--If you view the source, its all one long line.-->
<!------->
<tr>
<td>open</td>
<td>/vivo/display/lodFacultyMember?format=jsonld</td>
<td></td>
</tr>
<!--Pause to check results-->
<tr>
<td>pause</td>
<td>10000</td>
<td></td>
</tr>
<!--Should see a really dense response of JSON-LD Lots of “[“, “{“, “}”, and “]”-->
<!--If you view the source, its all one long line-->
<tr>
<td>verifyTextPresent</td>
<td>[{&quot;@id&quot;:&quot;http://localhost:8080/vivo/display/lodFacultyMember&quot;,&quot;http://purl.org/dc/elements/1.1/rights&quot;:[{&quot;@id&quot;:&quot;http://vivo.mydomain.edu/termsOfUse&quot;}],&quot;http://purl.org/dc/elements/1.1/date&quot;:[{&quot;@value&quot;:&quot;2013-12-09T15:25:39&quot;,&quot;@type&quot;:&quot;http:</td>
<td></td>
</tr>
<!------->
<tr>
<td>open</td>
<td>/vivo/individual/lodFacultyMember/lodFacultyMember.n3</td>
<td></td>
</tr>
<!--Pause to check results-->
<tr>
<td>pause</td>
<td>10000</td>
<td></td>
</tr>
<!--Browser will try to download a file called lodFacultyMember.n3, containing about 70 lines of N3 RDF-->
<!--Browser may ask what program should be used to open the file-->
<!------->
<tr>
<td>open</td>
<td>/vivo/display/lodFacultyMember?format=n3</td>
<td></td>
</tr>
<!--Pause to check results-->
<tr>
<td>pause</td>
<td>10000</td>
<td></td>
</tr>
<!--Browser will try to download a file called lodFacultyMember, containing about 70 lines of N3 RDF-->
<!--Browser may ask what program should be used to open the file-->
<!------->
<tr>
<td>open</td>
<td>/vivo/individual/lodFacultyMember/lodFacultyMember.ttl</td>
<td></td>
</tr>
<!--Pause to check results-->
<tr>
<td>pause</td>
<td>10000</td>
<td></td>
</tr>
<!--Browser will try to download a file called lodFacultyMember.ttl, containing about 70 lines of TTL RDF-->
<!--Browser may ask what program should be used to open the file-->
<!------->
<tr>
<td>open</td>
<td>/vivo/display/lodFacultyMember?format=ttl</td>
<td></td>
</tr>
<!--Pause to check results-->
<tr>
<td>pause</td>
<td>10000</td>
<td></td>
</tr>
<!--Browser will try to download a file called lodFacultyMember, containing about 70 lines of TTL RDF-->
<!--Browser may ask what program should be used to open the file-->
<!------->
<tr>
<td>open</td>
<td>/vivo/display/bogus?format=jsonld</td>
<td></td>
</tr>
<tr>
<td>assertTitle</td>
<td>Individual Not Found</td>
<td></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>Individual not found:</td>
<td></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>This id is the id of the entity to query for. netid also works.</td>
<td></td>
</tr>
<!------->
<tr>
<td>clickAndWait</td>
<td>link=Log out</td>
<td></td>
</tr>
<tr>
<td>open</td>
<td>/vivo/</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>