Added tests for content filters/profiling/database and filepump

This commit is contained in:
Daniel Maldonado 2012-07-06 16:48:44 -04:00 committed by Scott Walters
parent cd5f29f5dc
commit 5c240db09c
4 changed files with 236 additions and 0 deletions

View file

@ -0,0 +1,60 @@
<?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://webgui.dbash.com/" />
<title>New Test</title>
<script type="text/javascript">
function getelements(){
var searchElement=document.getElementById('content_Data').getElementsByTagName("td");
for( var i=0; i<searchElement.length; i++ ){
alert(searchElement[i].nodeValue);
}
}
</script>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">New Test</td></tr>
</thead><tbody>
<tr>
<td>open</td>
<td>/?op=listReplacements</td>
<td></td>
</tr>
<tr>
<td>assertText</td>
<td>id=application_title</td>
<td>Content Filters</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Add a content filter.</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>id=searchFor_formId</td>
<td>testBadWord</td>
</tr>
<tr>
<td>type</td>
<td>id=replaceWith_formId</td>
<td>testGoodWord</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>xpath=(//input[@value='save'])[2]</td>
<td></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>testBadWord</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>

View file

@ -0,0 +1,67 @@
<?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://webgui.dbash.com/" />
<title>Content Profiling</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">Content Profiling</td></tr>
</thead><tbody>
<tr>
<td>open</td>
<td>/?func=manageMetaData</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Add new metadata property</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>id=fieldName_formId</td>
<td>seleniumTestMetadata</td>
</tr>
<tr>
<td>type</td>
<td>id=description_formId</td>
<td>just a test metadata value</td>
</tr>
<tr>
<td>addSelection</td>
<td>id=classes_formId</td>
<td>label=Article</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>id=send_formId</td>
<td></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>seleniumTestMetadata</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>css=img[alt=&quot;Delete&quot;]</td>
<td></td>
</tr>
<tr>
<td>assertConfirmation</td>
<td>Are you certain you want to delete this Metadata property ?</td>
<td></td>
</tr>
<tr>
<td>assertTextNotPresent</td>
<td>seleniumTestMetadata</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>

View file

@ -0,0 +1,67 @@
<?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://webgui.dbash.com/" />
<title>Databases</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">Databases</td></tr>
</thead><tbody>
<tr>
<td>open</td>
<td>/?op=listDatabaseLinks</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Add a database link.</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>id=title_formId</td>
<td>testDatabaseLink</td>
</tr>
<tr>
<td>type</td>
<td>id=DSN_formId</td>
<td>dbi:mysql:webgui:localhost:3306</td>
</tr>
<tr>
<td>type</td>
<td>id=dbusername_formId</td>
<td>www</td>
</tr>
<tr>
<td>type</td>
<td>id=dbidentifier_formId</td>
<td>123qwe</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>xpath=(//input[@value='save'])[2]</td>
<td></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>testDatabaseLink</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>css=img[alt=&quot;Delete&quot;]</td>
<td></td>
</tr>
<tr>
<td>assertConfirmation</td>
<td>Are you certain you wish to delete this database link?</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>

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="http://webgui.dbash.com/" />
<title>File Pump</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">File Pump</td></tr>
</thead><tbody>
<tr>
<td>open</td>
<td>/?op=filePump</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Add a Bundle</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>css=input[type=&quot;submit&quot;]</td>
<td></td>
</tr>
<tr>
<td>assertText</td>
<td>link=New bundle</td>
<td>New bundle</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>css=img[alt=&quot;Delete&quot;]</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>