diff options
author | Endi S. Dewata <edewata@redhat.com> | 2011-03-07 16:07:53 -0500 |
---|---|---|
committer | Endi S. Dewata <edewata@redhat.com> | 2011-03-21 15:57:09 -0400 |
commit | 87ed26783abd0ff5add0702f08fce0c14b5df489 (patch) | |
tree | c4669b2beb3864091482386896c3e89a4f88b050 | |
parent | 1564e20084365c94be4544dfd92f47e881f5d00d (diff) | |
download | freeipa-87ed26783abd0ff5add0702f08fce0c14b5df489.tar.gz freeipa-87ed26783abd0ff5add0702f08fce0c14b5df489.tar.xz freeipa-87ed26783abd0ff5add0702f08fce0c14b5df489.zip |
Added group test cases.
-rw-r--r-- | install/ui/test/functional/activate-user.html | 2 | ||||
-rw-r--r-- | install/ui/test/functional/add-group.html | 42 | ||||
-rw-r--r-- | install/ui/test/functional/add-user.html | 2 | ||||
-rw-r--r-- | install/ui/test/functional/delete-group.html | 37 | ||||
-rw-r--r-- | install/ui/test/functional/delete-user.html | 2 | ||||
-rw-r--r-- | install/ui/test/functional/edit-user.html | 2 | ||||
-rw-r--r-- | install/ui/test/functional/groups.html | 16 | ||||
-rw-r--r-- | install/ui/test/functional/password-reset.html | 2 | ||||
-rw-r--r-- | install/ui/test/functional/view-groups.html | 36 | ||||
-rw-r--r-- | install/ui/test/functional/view-users.html | 2 |
10 files changed, 137 insertions, 6 deletions
diff --git a/install/ui/test/functional/activate-user.html b/install/ui/test/functional/activate-user.html index b933a9e1..ab6ec05c 100644 --- a/install/ui/test/functional/activate-user.html +++ b/install/ui/test/functional/activate-user.html @@ -3,7 +3,7 @@ <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="https://vm-022.idm.lab.bos.redhat.com/" /> +<link rel="selenium.base" href="https://localhost/" /> <title>Activate User</title> </head> <body> diff --git a/install/ui/test/functional/add-group.html b/install/ui/test/functional/add-group.html new file mode 100644 index 00000000..9bcf8488 --- /dev/null +++ b/install/ui/test/functional/add-group.html @@ -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="https://localhost/" /> +<title>Add Group</title> +</head> +<body> +<table cellpadding="1" cellspacing="1" border="1"> +<thead> +<tr><td rowspan="1" colspan="3">Add Group</td></tr> +</thead><tbody> +<tr> + <td>click</td> + <td>//div[@id='group']/div/ul/li[1]/span/span/a[2]</td> + <td></td> +</tr> +<tr> + <td>type</td> + <td>cn</td> + <td>testgroup</td> +</tr> +<tr> + <td>type</td> + <td>description</td> + <td>Test Group</td> +</tr> +<tr> + <td>click</td> + <td>//button[@type='button']</td> + <td></td> +</tr> +<tr> + <td>waitForTextPresent</td> + <td>4 groups matched</td> + <td></td> +</tr> + +</tbody></table> +</body> +</html> diff --git a/install/ui/test/functional/add-user.html b/install/ui/test/functional/add-user.html index cdfc8967..9d92e57b 100644 --- a/install/ui/test/functional/add-user.html +++ b/install/ui/test/functional/add-user.html @@ -3,7 +3,7 @@ <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="https://vm-022.idm.lab.bos.redhat.com/" /> +<link rel="selenium.base" href="https://localhost/" /> <title>Add user</title> </head> <body> diff --git a/install/ui/test/functional/delete-group.html b/install/ui/test/functional/delete-group.html new file mode 100644 index 00000000..40582c2a --- /dev/null +++ b/install/ui/test/functional/delete-group.html @@ -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="https://vm-022.idm.lab.bos.redhat.com/" /> +<title>Delete Group</title> +</head> +<body> +<table cellpadding="1" cellspacing="1" border="1"> +<thead> +<tr><td rowspan="1" colspan="3">Delete Group</td></tr> +</thead><tbody> +<tr> + <td>click</td> + <td>//input[@name='select' and @value='testgroup']</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>//div[@id='group']/div/ul/li[1]/span/span/a[1]</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>//button[@type='button']</td> + <td></td> +</tr> +<tr> + <td>waitForTextPresent</td> + <td>3 groups matched</td> + <td></td> +</tr> + +</tbody></table> +</body> +</html> diff --git a/install/ui/test/functional/delete-user.html b/install/ui/test/functional/delete-user.html index b68acfb1..4b1d1e4c 100644 --- a/install/ui/test/functional/delete-user.html +++ b/install/ui/test/functional/delete-user.html @@ -3,7 +3,7 @@ <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="https://vm-022.idm.lab.bos.redhat.com/" /> +<link rel="selenium.base" href="https://localhost/" /> <title>Delete User</title> </head> <body> diff --git a/install/ui/test/functional/edit-user.html b/install/ui/test/functional/edit-user.html index dd6a7f03..f39b22fb 100644 --- a/install/ui/test/functional/edit-user.html +++ b/install/ui/test/functional/edit-user.html @@ -3,7 +3,7 @@ <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="https://vm-022.idm.lab.bos.redhat.com/" /> +<link rel="selenium.base" href="https://localhost/" /> <title>Edit user</title> </head> <body> diff --git a/install/ui/test/functional/groups.html b/install/ui/test/functional/groups.html new file mode 100644 index 00000000..8e4f772e --- /dev/null +++ b/install/ui/test/functional/groups.html @@ -0,0 +1,16 @@ +<?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="view-groups.html">View Groups</a></td></tr> +<tr><td><a href="add-group.html">Add Group</a></td></tr> +<tr><td><a href="delete-group.html">Delete Group</a></td></tr> +</tbody></table> +</body> +</html> diff --git a/install/ui/test/functional/password-reset.html b/install/ui/test/functional/password-reset.html index ff0ba2ed..c1802fcd 100644 --- a/install/ui/test/functional/password-reset.html +++ b/install/ui/test/functional/password-reset.html @@ -3,7 +3,7 @@ <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="https://vm-022.idm.lab.bos.redhat.com/" /> +<link rel="selenium.base" href="https://localhost/" /> <title>Password Reset</title> </head> <body> diff --git a/install/ui/test/functional/view-groups.html b/install/ui/test/functional/view-groups.html new file mode 100644 index 00000000..266286dd --- /dev/null +++ b/install/ui/test/functional/view-groups.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="https://localhost/" /> +<title>View Users</title> +</head> +<body> +<table cellpadding="1" cellspacing="1" border="1"> +<thead> +<tr><td rowspan="1" colspan="3">View Users</td></tr> +</thead><tbody> +<tr> + <td>open</td> + <td>/ipa/ui/</td> + <td></td> +</tr> +<tr> + <td>waitForTextPresent</td> + <td>1 user matched</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>link=User Groups</td> + <td></td> +</tr> +<tr> + <td>waitForTextPresent</td> + <td>3 groups match</td> + <td></td> +</tr> +</tbody></table> +</body> +</html> diff --git a/install/ui/test/functional/view-users.html b/install/ui/test/functional/view-users.html index 48895a09..dc245b23 100644 --- a/install/ui/test/functional/view-users.html +++ b/install/ui/test/functional/view-users.html @@ -3,7 +3,7 @@ <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="https://vm-022.idm.lab.bos.redhat.com/" /> +<link rel="selenium.base" href="https://localhost/" /> <title>View Users</title> </head> <body> |