Permalink
Browse files

Selenium tests

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@509 7c3ca157-0c34-0410-bff1-cbf682f78f5c
  • Loading branch information...
jakubvrana
jakubvrana committed Oct 1, 2008
1 parent 78639a9 commit 47fd1f73498a4def91bff06319ddf14b9d459641
View
@@ -0,0 +1,47 @@
+<?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>Create database</title>
+</head>
+<body>
+<table cellpadding="1" cellspacing="1" border="1">
+<thead>
+<tr><td rowspan="1" colspan="3">Create database</td></tr>
+</thead><tbody>
+<tr>
+ <td>open</td>
+ <td>/phpMinAdmin/?lang=en&amp;username=</td>
+ <td></td>
+</tr>
+<tr>
+ <td>verifyTextPresent</td>
+ <td>Logged as</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAndWait</td>
+ <td>link=SQL command</td>
+ <td></td>
+</tr>
+<tr>
+ <td>type</td>
+ <td>query</td>
+ <td>DROP DATABASE IF EXISTS selenium</td>
+</tr>
+<tr>
+ <td>clickAndWait</td>
+ <td>//input[@value='Execute']</td>
+ <td></td>
+</tr>
+<tr>
+ <td>verifyTextPresent</td>
+ <td>Query executed OK</td>
+ <td></td>
+</tr>
+
+</tbody></table>
+</body>
+</html>
@@ -0,0 +1,47 @@
+<?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>Create database</title>
+</head>
+<body>
+<table cellpadding="1" cellspacing="1" border="1">
+<thead>
+<tr><td rowspan="1" colspan="3">Create database</td></tr>
+</thead><tbody>
+<tr>
+ <td>open</td>
+ <td>/phpMinAdmin/</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAndWait</td>
+ <td>link=Create new database</td>
+ <td></td>
+</tr>
+<tr>
+ <td>type</td>
+ <td>name</td>
+ <td>selenium</td>
+</tr>
+<tr>
+ <td>select</td>
+ <td>collation</td>
+ <td>label=utf8_general_ci</td>
+</tr>
+<tr>
+ <td>clickAndWait</td>
+ <td>//input[@value='Save']</td>
+ <td></td>
+</tr>
+<tr>
+ <td>verifyTextPresent</td>
+ <td>Database has been created.</td>
+ <td></td>
+</tr>
+
+</tbody></table>
+</body>
+</html>
View
@@ -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>Clone</title>
+</head>
+<body>
+<table cellpadding="1" cellspacing="1" border="1">
+<thead>
+<tr><td rowspan="1" colspan="3">Clone</td></tr>
+</thead><tbody>
+<tr>
+ <td>open</td>
+ <td>/phpMinAdmin/?db=selenium&amp;select=albums</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAndWait</td>
+ <td>link=clone</td>
+ <td></td>
+</tr>
+<tr>
+ <td>type</td>
+ <td>fields[album]</td>
+ <td>Black and White</td>
+</tr>
+<tr>
+ <td>clickAndWait</td>
+ <td>//input[@value='Save']</td>
+ <td></td>
+</tr>
+<tr>
+ <td>verifyTextPresent</td>
+ <td>Item has been inserted.</td>
+ <td></td>
+</tr>
+
+</tbody></table>
+</body>
+</html>
View
@@ -0,0 +1,32 @@
+<?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>Reference</title>
+</head>
+<body>
+<table cellpadding="1" cellspacing="1" border="1">
+<thead>
+<tr><td rowspan="1" colspan="3">Reference</td></tr>
+</thead><tbody>
+<tr>
+ <td>open</td>
+ <td>/phpMinAdmin/?db=selenium&amp;select=albums</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAndWait</td>
+ <td>link=1</td>
+ <td></td>
+</tr>
+<tr>
+ <td>verifyTextPresent</td>
+ <td>Michael Jackson</td>
+ <td></td>
+</tr>
+
+</tbody></table>
+</body>
+</html>
View
@@ -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>Update</title>
+</head>
+<body>
+<table cellpadding="1" cellspacing="1" border="1">
+<thead>
+<tr><td rowspan="1" colspan="3">Update</td></tr>
+</thead><tbody>
+<tr>
+ <td>open</td>
+ <td>/phpMinAdmin/?db=selenium&amp;edit=albums&amp;where%5Bid%5D=2</td>
+ <td></td>
+</tr>
+<tr>
+ <td>type</td>
+ <td>fields[album]</td>
+ <td>Black or White</td>
+</tr>
+<tr>
+ <td>clickAndWait</td>
+ <td>//input[@value='Save']</td>
+ <td></td>
+</tr>
+<tr>
+ <td>verifyTextPresent</td>
+ <td>Item has been updated.</td>
+ <td></td>
+</tr>
+
+</tbody></table>
+</body>
+</html>
View
@@ -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>13-delete</title>
+</head>
+<body>
+<table cellpadding="1" cellspacing="1" border="1">
+<thead>
+<tr><td rowspan="1" colspan="3">13-delete</td></tr>
+</thead><tbody>
+<tr>
+ <td>open</td>
+ <td>/phpMinAdmin/?db=selenium&amp;edit=albums&amp;where%5Bid%5D=2</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAndWait</td>
+ <td>delete</td>
+ <td></td>
+</tr>
+<tr>
+ <td>assertConfirmation</td>
+ <td>Are you sure?</td>
+ <td></td>
+</tr>
+<tr>
+ <td>verifyTextPresent</td>
+ <td>Item has been deleted.</td>
+ <td></td>
+</tr>
+
+</tbody></table>
+</body>
+</html>
View
@@ -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>Truncate</title>
+</head>
+<body>
+<table cellpadding="1" cellspacing="1" border="1">
+<thead>
+<tr><td rowspan="1" colspan="3">Truncate</td></tr>
+</thead><tbody>
+<tr>
+ <td>open</td>
+ <td>/phpMinAdmin/?db=selenium&amp;select=albums</td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>all</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAndWait</td>
+ <td>delete</td>
+ <td></td>
+</tr>
+<tr>
+ <td>assertConfirmation</td>
+ <td>Are you sure?</td>
+ <td></td>
+</tr>
+<tr>
+ <td>verifyTextPresent</td>
+ <td>No rows.</td>
+ <td></td>
+</tr>
+
+</tbody></table>
+</body>
+</html>
Oops, something went wrong.

0 comments on commit 47fd1f7

Please sign in to comment.