Page MenuHomec4science

test_comment_add.html
No OneTemporary

File Metadata

Created
Sun, Nov 17, 07:54

test_comment_add.html

<?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="http://localhost/" />
<title>test_comment_add</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">test_comment_add</td></tr>
</thead><tbody>
<tr>
<td>open</td>
<td>http://localhost/record/1</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Discussion</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>msg</td>
<td>This cannot go in.</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Add comment']</td>
<td></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>Before you add your comment</td>
<td></td>
</tr>
<tr>
<td>open</td>
<td>http://localhost</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=login</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>p_un</td>
<td>romeo</td>
</tr>
<tr>
<td>type</td>
<td>p_pw</td>
<td>r123omeo</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>action</td>
<td></td>
</tr>
<tr>
<td>open</td>
<td>http://localhost/record/1</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Discussion</td>
<td></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>Your nickname, romeo, will be displayed as author of this comment</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>msg</td>
<td>This is a test comment.</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Add comment']</td>
<td></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>Your comment was successfully added.</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Back to record</td>
<td></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>romeo wrote</td>
<td></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>This is a test comment.</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=logout</td>
<td></td>
</tr>
<tr>
<td>open</td>
<td>http://localhost</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=login</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>p_un</td>
<td>juliet</td>
</tr>
<tr>
<td>type</td>
<td>p_pw</td>
<td>j123uliet</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>action</td>
<td></td>
</tr>
<tr>
<td>open</td>
<td>http://localhost/record/1</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Discussion</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Reply</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>msg</td>
<td>This is a test reply.</td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>Your nickname, juliet, will be displayed as author of this comment</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Add comment']</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Back to record</td>
<td></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>juliet wrote</td>
<td></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>This is a test reply.</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=logout</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>

Event Timeline