Skip to content
Permalink
Browse files

Initial Selenium Test Suite (Basic)

  • Loading branch information...
dannymk authored and scottwalters committed Jul 2, 2012
1 parent c042f43 commit 79c2fffbbac7dccaaead9bab0d93ba497c218bd9
BIN +6 KB selenium/.DS_Store
Binary file not shown.
@@ -0,0 +1,11 @@
Install WebGUI using to the instructions at: https://github.com/plainblack/webgui/tree/WebGUI8

Make sure you select all the defaults (do not change the "admin" user password)

Pick the site design: "Style 03" (This is the style selected for testing)

Download and install the Selenium IDE from: http://seleniumhq.org/projects/ide/

Take a look at the Selenium IDE documentation: http://seleniumhq.org/docs/02_selenium_ide.html

Use the Selenium IDE to open the test suite: adminSuite.html
@@ -0,0 +1,151 @@
<?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>
</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=admin</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>link=Active Sessions</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>link=Addons</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>link=Advertising</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>link=Asset History</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>link=Cache</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>link=Clipboard</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>link=Content Filters</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>link=Content Profiling</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>link=Databases</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>link=File Pump</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>link=Graphics</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>link=Groups</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>link=Inbox</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>link=LDAP Connections</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>link=Login History</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>link=Passive Analytics</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>link=Scheduler</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>link=Settings</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>link=Shop</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>link=Spectre</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>link=Template Help</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>link=Trash</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>link=User Profiling</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>link=Users</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>link=Version Tags</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>link=Workflow</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>
@@ -0,0 +1,25 @@
<?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>
<meta content="text/html; charset=UTF-8" http-equiv="content-type" />
<title>Test Suite</title>
</head>
<body>
<table id="suiteTable" cellpadding="1" cellspacing="1" border="1" class="selenium"><tbody>
<tr><td><b>Test Suite</b></td></tr>
<tr><td><a href="login.html">login</a></td></tr>
<tr><td><a href="adminConsole.html">adminConsole</a></td></tr>
<tr><td><a href="versionTags.html">versionTags</a></td></tr>
<tr><td><a href="clipboard.html">clipboard</a></td></tr>
<tr><td><a href="assetHelpers.html">assetHelpers</a></td></tr>
<tr><td><a href="newContentBasic.html">newContentBasic</a></td></tr>
<tr><td><a href="newContentCommunity.html">newContentCommunity</a></td></tr>
<tr><td><a href="newContentIntranet.html">newContentIntranet</a></td></tr>
<tr><td><a href="newContentPrototypes.html">newContentPrototypes</a></td></tr>
<tr><td><a href="newContentShop.html">newContentShop</a></td></tr>
<tr><td><a href="newContentUtilities.html">newContentUtilities</a></td></tr>
<tr><td><a href="logout.html">logout</a></td></tr>
</tbody></table>
</body>
</html>
@@ -0,0 +1,31 @@
<?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>Asset Helpers</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">Asset Helpers</td></tr>
</thead><tbody>
<tr>
<td>open</td>
<td>/home</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Turn Admin On!</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>id=assetHelpers</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>
@@ -0,0 +1,36 @@
<?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>Clipboard</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">Clipboard</td></tr>
</thead><tbody>
<tr>
<td>open</td>
<td>/home</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Turn Admin On!</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>id=clipboard</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>id=clipboardShowAll</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>
@@ -0,0 +1,41 @@
<?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>login</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">login</td></tr>
</thead><tbody>
<tr>
<td>open</td>
<td>/</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>id=username_formId</td>
<td>admin</td>
</tr>
<tr>
<td>type</td>
<td>id=identifier_formId</td>
<td>123qwe</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>css=input.loginBoxButton</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>link=Click here to log out.</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>
@@ -0,0 +1,26 @@
<?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>logout</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">logout</td></tr>
</thead><tbody>
<tr>
<td>open</td>
<td>/</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Click here to log out.</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>
Oops, something went wrong.

0 comments on commit 79c2fff

Please sign in to comment.
You can’t perform that action at this time.