selenium tests

This commit is contained in:
John Bintz 2009-10-08 11:16:43 -04:00
parent 9f135d38fc
commit c8ce6f447b
5 changed files with 121 additions and 43 deletions

View File

@ -0,0 +1,42 @@
<?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>TestCreatePost</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">TestCreatePost</td></tr>
</thead><tbody>
<tr>
<td>clickAndWait</td>
<td>link=Add New</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>title</td>
<td>WDTS Test Post</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>publish</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Post published.</td>
<td></td>
</tr>
<tr>
<td>storeValue</td>
<td>post_ID</td>
<td>post_id</td>
</tr>
</tbody></table>
</body>
</html>

View File

@ -0,0 +1,37 @@
<?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>TestDeletePost</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">TestDeletePost</td></tr>
</thead><tbody>
<tr>
<td>open</td>
<td>/wp-admin/post.php?action=edit&amp;post=${post_id}</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>link=Delete</td>
<td></td>
</tr>
<tr>
<td>assertConfirmation</td>
<td>You are about to delete this post 'WDTS Test Post'<br />&nbsp;&nbsp;'Cancel' to stop, 'OK' to delete.</td>
<td></td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td>30000</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>

View File

@ -12,48 +12,43 @@
<tr><td rowspan="1" colspan="3">TestMetaboxApprovedTranscriptEditing</td></tr>
</thead><tbody>
<tr>
<td>clickAndWait</td>
<td>link=Add New</td>
<td>open</td>
<td>/wp-admin/post.php?action=edit&amp;post=${post_id}</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>title</td>
<td>WDTS Test Post</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>publish</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Post published.</td>
<td></td>
</tr>
<tr>
<td>storeValue</td>
<td>post_ID</td>
<td>post_id</td>
</tr>
<tr>
<td>assertSelectedLabel</td>
<td>wdts-language</td>
<td>//select[@name=&quot;wdts[language]&quot;]</td>
<td>English</td>
</tr>
<tr>
<td>assertVisible</td>
<td>//textarea[@name=&quot;wdts[transcripts][en]&quot;]</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>wdts-transcripts-en</td>
<td>//textarea[@name=&quot;wdts[transcripts][en]&quot;]</td>
<td>This is a test transcript.</td>
</tr>
<tr>
<td>select</td>
<td>wdts-language</td>
<td>//select[@name=&quot;wdts[language]&quot;]</td>
<td>label=German</td>
</tr>
<tr>
<td>assertVisible</td>
<td>//textarea[@name=&quot;wdts[transcripts][de]&quot;]</td>
<td></td>
</tr>
<tr>
<td>assertNotVisible</td>
<td>//textarea[@name=&quot;wdts[transcripts][en]&quot;]</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>wdts-transcripts-de</td>
<td>//textarea[@name=&quot;wdts[transcripts][de]&quot;]</td>
<td>Dies ist ein Test transcript.</td>
</tr>
<tr>
@ -68,29 +63,14 @@
</tr>
<tr>
<td>assertValue</td>
<td>wdts-transcripts-en</td>
<td>//textarea[@name=&quot;wdts[transcripts][en]&quot;]</td>
<td>This is a test transcript.</td>
</tr>
<tr>
<td>assertValue</td>
<td>wdts-transcripts-de</td>
<td>//textarea[@name=&quot;wdts[transcripts][de]&quot;]</td>
<td>Dies ist ein Test transcript.</td>
</tr>
<tr>
<td>click</td>
<td>link=Delete</td>
<td></td>
</tr>
<tr>
<td>assertConfirmation</td>
<td>You are about to delete this post 'WDTS Test Post'<br />&nbsp;&nbsp;'Cancel' to stop, 'OK' to delete.</td>
<td></td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td>30000</td>
<td></td>
</tr>
</tbody></table>
</body>

View File

@ -0,0 +1,17 @@
<?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>TestShortCodeButtons</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">TestShortCodeButtons</td></tr>
</thead><tbody>
</tbody></table>
</body>
</html>

View File

@ -20,7 +20,9 @@
<tr><td><a href="TestResetOptions.html">TestResetOptions</a></td></tr>
<tr><td><a href="TestRenameLanguage.html">TestRenameLanguage</a></td></tr>
<tr><td><a href="TestResetOptions.html">TestResetOptions</a></td></tr>
<tr><td><a href="TestCreatePost.html">TestCreatePost</a></td></tr>
<tr><td><a href="TestMetaboxApprovedTranscriptEditing.html">TestMetaboxApprovedTranscriptEditing</a></td></tr>
<tr><td><a href="TestDeletePost.html">TestDeletePost</a></td></tr>
<tr><td><a href="TestDeactivate.html">TestDeactivate</a></td></tr>
</tbody></table>
</body>