Location: PHPKode > projects > JaxBlog > JaxBlog/resource/selenium/other/testAdminWalkthru.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="" />
<title>testAdminWalkthru</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">testAdminWalkthru</td></tr>
</thead><tbody>
<tr>
	<td>open</td>
	<td>JaxBlog/app/admin/admin_home/admin_home.php</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Pages</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=+</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>page_title</td>
	<td>Page 1</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>submit</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=+</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>page_title</td>
	<td>Page 2</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>submit</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=+</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>page_title</td>
	<td>Page 3</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>submit</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>//a[contains(@href, 'admin_pages.php?request=add&amp;id=2')]</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>page_title</td>
	<td>Page 1a</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>submit</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>//a[contains(@href, 'admin_pages.php?request=add&amp;id=2')]</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>page_title</td>
	<td>Page 1b</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>submit</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=d</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>//a[contains(@href, 'admin_pages.php?request=movedown&amp;id=2')]</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>//a[contains(@href, 'admin_pages.php?request=moveup&amp;id=2')]</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=u</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>//a[contains(@href, 'admin_pages.php?request=edit&amp;id=5')]</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>page_title</td>
	<td>Page 1 Subchild a</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>submit</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>//a[contains(@href, 'admin_pages.php?request=edit&amp;id=6')]</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>page_title</td>
	<td>Page 1 Subchild b</td>
</tr>
<tr>
	<td>select</td>
	<td>page_visible_stories</td>
	<td>label=3</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>submit</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Stories</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Add</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>story_title</td>
	<td>Test</td>
</tr>
<tr>
	<td>select</td>
	<td>page_title_add</td>
	<td>label=Home</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>submit</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Test</td>
	<td></td>
</tr>
<tr>
	<td>select</td>
	<td>page_title_add</td>
	<td>label=Page 1</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>submit</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Test</td>
	<td></td>
</tr>
<tr>
	<td>select</td>
	<td>page_title_delete</td>
	<td>label=Page 1</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>submit</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Files</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Panes</td>
	<td></td>
</tr>
<tr>
	<td>select</td>
	<td>pane_id</td>
	<td>label=Main Navigation Bar</td>
</tr>
<tr>
	<td>click</td>
	<td>//option[@value='1']</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>pane_disabled</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>submit</td>
	<td></td>
</tr>
<tr>
	<td>waitForChecked</td>
	<td>pane_disabled</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>pane_disabled</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>submit</td>
	<td></td>
</tr>
<tr>
	<td>waitForNotChecked</td>
	<td>pane_disabled</td>
	<td></td>
</tr>
<tr>
	<td>select</td>
	<td>pane_id</td>
	<td>label=Top Story</td>
</tr>
<tr>
	<td>click</td>
	<td>//option[@value='4']</td>
	<td></td>
</tr>
<tr>
	<td>waitForSelectOptions</td>
	<td>pane_story_id</td>
	<td>Test</td>
</tr>
<tr>
	<td>select</td>
	<td>pane_story_id</td>
	<td>label=Test</td>
</tr>
<tr>
	<td>click</td>
	<td>submit</td>
	<td></td>
</tr>
<tr>
	<td>waitForSomethingSelected</td>
	<td>pane_story_id</td>
	<td></td>
</tr>
<tr>
	<td>verifySelectedIndex</td>
	<td>pane_story_id</td>
	<td>1</td>
</tr>
<tr>
	<td>select</td>
	<td>pane_id</td>
	<td>label=Hotlinks</td>
</tr>
<tr>
	<td>click</td>
	<td>//option[@value='10']</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>pane_raw_html</td>
	<td>Hotlinks, currently disabled</td>
</tr>
<tr>
	<td>click</td>
	<td>submit</td>
	<td></td>
</tr>
<tr>
	<td>select</td>
	<td>pane_id</td>
	<td>label=Main Navigation Bar</td>
</tr>
<tr>
	<td>click</td>
	<td>//option[@value='1']</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Calendar</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Add</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>calendar_title</td>
	<td>Test Event</td>
</tr>
<tr>
	<td>select</td>
	<td>calendar_scheduled_date_month</td>
	<td>label=January</td>
</tr>
<tr>
	<td>select</td>
	<td>calendar_scheduled_date_day</td>
	<td>label=1st</td>
</tr>
<tr>
	<td>select</td>
	<td>calendar_scheduled_date_year</td>
	<td>label=2010</td>
</tr>
<tr>
	<td>select</td>
	<td>calendar_scheduled_date_ampm</td>
	<td>label=AM</td>
</tr>
<tr>
	<td>type</td>
	<td>calendar_description</td>
	<td>Test Event</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>submit</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Test Event</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>calendar_description</td>
	<td>Test Event Updated</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>submit</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Users</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Add</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>submit</td>
	<td></td>
</tr>
<tr>
	<td>assertAlert</td>
	<td>You must enter a username to continue.</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>user_name</td>
	<td>test</td>
</tr>
<tr>
	<td>click</td>
	<td>submit</td>
	<td></td>
</tr>
<tr>
	<td>assertAlert</td>
	<td>You must enter a password to continue.</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>user_password</td>
	<td>test</td>
</tr>
<tr>
	<td>click</td>
	<td>submit</td>
	<td></td>
</tr>
<tr>
	<td>assertAlert</td>
	<td>The password you entered does not pass the strength test.</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>user_password</td>
	<td>test123</td>
</tr>
<tr>
	<td>click</td>
	<td>submit</td>
	<td></td>
</tr>
<tr>
	<td>assertAlert</td>
	<td>You must enter an email address to continue.</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>user_email</td>
	<td>hide@address.com</td>
</tr>
<tr>
	<td>click</td>
	<td>submit</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=test</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>submit</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=test</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>user_password</td>
	<td>test</td>
</tr>
<tr>
	<td>click</td>
	<td>submit</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=test</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>user_first_name</td>
	<td>Test</td>
</tr>
<tr>
	<td>type</td>
	<td>user_last_name</td>
	<td>Test</td>
</tr>
<tr>
	<td>click</td>
	<td>user_never_expires</td>
	<td></td>
</tr>
<tr>
	<td>select</td>
	<td>user_expire_date_month</td>
	<td>label=December</td>
</tr>
<tr>
	<td>select</td>
	<td>user_expire_date_day</td>
	<td>label=20th</td>
</tr>
<tr>
	<td>select</td>
	<td>user_expire_date_day</td>
	<td>label=25th</td>
</tr>
<tr>
	<td>select</td>
	<td>user_expire_date_year</td>
	<td>label=2012</td>
</tr>
<tr>
	<td>click</td>
	<td>submit</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>test</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>hide@address.com</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>Test</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>2012-12-25 00:00:00</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Admin Home</td>
	<td></td>
</tr>

</tbody></table>
</body>
</html>
Return current item: JaxBlog