diff options
author | Endi S. Dewata <edewata@redhat.com> | 2011-05-09 19:22:51 -0400 |
---|---|---|
committer | Adam Young <ayoung@redhat.com> | 2011-05-11 11:17:30 -0400 |
commit | abadf9ec0d8dd15368a8c24616eb6a9439d9c927 (patch) | |
tree | df234d7a066bb1c55450da5adb1bfe105d9b7dab /install | |
parent | 314d6be229736d76aaf538e9e05894ee42b476fb (diff) | |
download | freeipa-abadf9ec0d8dd15368a8c24616eb6a9439d9c927.tar.gz freeipa-abadf9ec0d8dd15368a8c24616eb6a9439d9c927.tar.xz freeipa-abadf9ec0d8dd15368a8c24616eb6a9439d9c927.zip |
Added Selenium tests for DNS.
Diffstat (limited to 'install')
-rw-r--r-- | install/ui/test/functional/dnsrecord-add.html | 76 | ||||
-rw-r--r-- | install/ui/test/functional/dnsrecord-del.html | 71 | ||||
-rw-r--r-- | install/ui/test/functional/dnsrecord-find.html | 107 | ||||
-rw-r--r-- | install/ui/test/functional/dnsrecord-suite.html | 17 | ||||
-rw-r--r-- | install/ui/test/functional/dnszone-add.html | 71 | ||||
-rw-r--r-- | install/ui/test/functional/dnszone-del.html | 56 | ||||
-rw-r--r-- | install/ui/test/functional/dnszone-find.html | 92 | ||||
-rw-r--r-- | install/ui/test/functional/dnszone-mod.html | 112 | ||||
-rw-r--r-- | install/ui/test/functional/dnszone-suite.html | 17 |
9 files changed, 619 insertions, 0 deletions
diff --git a/install/ui/test/functional/dnsrecord-add.html b/install/ui/test/functional/dnsrecord-add.html new file mode 100644 index 000000000..801f2a3fb --- /dev/null +++ b/install/ui/test/functional/dnsrecord-add.html @@ -0,0 +1,76 @@ +<?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 DNS Record</title> +</head> +<body> +<table cellpadding="1" cellspacing="1" border="1"> +<thead> +<tr><td rowspan="1" colspan="3">Add DNS Record</td></tr> +</thead><tbody> +<tr> + <td>open</td> + <td>/ipa/ui/#navigation=policy&policy=dnszone</td> + <td></td> +</tr> +<tr> + <td>waitForNotVisible</td> + <td>//span[@id='header-network-activity-indicator']</td> + <td></td> +</tr> +<tr> + <td>verifyElementPresent</td> + <td>css=.entity[name='dnszone'] .facet[name='search'] input[value='test.com']</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>link=test.com</td> + <td></td> +</tr> +<tr> + <td>waitForNotVisible</td> + <td>//span[@id='header-network-activity-indicator']</td> + <td></td> +</tr> +<tr> + <td>verifyElementNotPresent</td> + <td>css=.entity[name='dnszone'] .facet[name='records'] input[value='testrecord']</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>css=.entity[name='dnszone'] .facet[name='records'] a[title='Add']</td> + <td></td> +</tr> +<tr> + <td>type</td> + <td>//dd[1]/input</td> + <td>testrecord</td> +</tr> +<tr> + <td>type</td> + <td>//textarea</td> + <td>127.0.0.1</td> +</tr> +<tr> + <td>click</td> + <td>//button[1]</td> + <td></td> +</tr> +<tr> + <td>waitForNotVisible</td> + <td>//span[@id='header-network-activity-indicator']</td> + <td></td> +</tr> +<tr> + <td>verifyElementPresent</td> + <td>css=.entity[name='dnszone'] .facet[name='records'] input[value='testrecord']</td> + <td></td> +</tr> +</tbody></table> +</body> +</html> diff --git a/install/ui/test/functional/dnsrecord-del.html b/install/ui/test/functional/dnsrecord-del.html new file mode 100644 index 000000000..ee65037a4 --- /dev/null +++ b/install/ui/test/functional/dnsrecord-del.html @@ -0,0 +1,71 @@ +<?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>Delete DNS Record</title> +</head> +<body> +<table cellpadding="1" cellspacing="1" border="1"> +<thead> +<tr><td rowspan="1" colspan="3">Delete DNS Record</td></tr> +</thead><tbody> +<tr> + <td>open</td> + <td>/ipa/ui/#navigation=policy&policy=dnszone</td> + <td></td> +</tr> +<tr> + <td>waitForNotVisible</td> + <td>//span[@id='header-network-activity-indicator']</td> + <td></td> +</tr> +<tr> + <td>verifyElementPresent</td> + <td>css=.entity[name='dnszone'] .facet[name='search'] input[value='test.com']</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>link=test.com</td> + <td></td> +</tr> +<tr> + <td>waitForNotVisible</td> + <td>//span[@id='header-network-activity-indicator']</td> + <td></td> +</tr> +<tr> + <td>verifyElementPresent</td> + <td>css=.entity[name='dnszone'] .facet[name='records'] input[value='testrecord']</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>css=.entity[name='dnszone'] .facet[name='records'] input[value='testrecord']</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>css=.entity[name='dnszone'] .facet[name='records'] a[title='Delete']</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>//button[@type='button']</td> + <td></td> +</tr> +<tr> + <td>waitForNotVisible</td> + <td>//span[@id='header-network-activity-indicator']</td> + <td></td> +</tr> +<tr> + <td>verifyElementNotPresent</td> + <td>css=.entity[name='dnszone'] .facet[name='records'] input[value='testrecord']</td> + <td></td> +</tr> +</tbody></table> +</body> +</html> diff --git a/install/ui/test/functional/dnsrecord-find.html b/install/ui/test/functional/dnsrecord-find.html new file mode 100644 index 000000000..badeaa72f --- /dev/null +++ b/install/ui/test/functional/dnsrecord-find.html @@ -0,0 +1,107 @@ +<?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>Search DNS Record</title> +</head> +<body> +<table cellpadding="1" cellspacing="1" border="1"> +<thead> +<tr><td rowspan="1" colspan="3">Search DNS Record</td></tr> +</thead><tbody> +<tr> + <td>open</td> + <td>/ipa/ui/#navigation=policy&policy=dnszone</td> + <td></td> +</tr> +<tr> + <td>waitForNotVisible</td> + <td>//span[@id='header-network-activity-indicator']</td> + <td></td> +</tr> +<tr> + <td>verifyElementPresent</td> + <td>css=.entity[name='dnszone'] .facet[name='search'] input[value='test.com']</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>link=test.com</td> + <td></td> +</tr> +<tr> + <td>waitForNotVisible</td> + <td>//span[@id='header-network-activity-indicator']</td> + <td></td> +</tr> +<tr> + <td>verifyElementPresent</td> + <td>css=.entity[name='dnszone'] .facet[name='records'] input[value='testrecord']</td> + <td></td> +</tr> +<tr> + <td>type</td> + <td>css=.entity[name='dnszone'] .facet[name='records'] input[name='filter']</td> + <td>testrecord</td> +</tr> +<tr> + <td>click</td> + <td>css=.entity[name='dnszone'] .facet[name='records'] a[title='Find']</td> + <td></td> +</tr> +<tr> + <td>waitForNotVisible</td> + <td>//span[@id='header-network-activity-indicator']</td> + <td></td> +</tr> +<tr> + <td>verifyElementPresent</td> + <td>css=.entity[name='dnszone'] .facet[name='records'] input[value='testrecord']</td> + <td></td> +</tr> +<tr> + <td>type</td> + <td>css=.entity[name='dnszone'] .facet[name='records'] input[name='filter']</td> + <td>xxx</td> +</tr> +<tr> + <td>click</td> + <td>css=.entity[name='dnszone'] .facet[name='records'] a[title='Find']</td> + <td></td> +</tr> +<tr> + <td>waitForNotVisible</td> + <td>//span[@id='header-network-activity-indicator']</td> + <td></td> +</tr> +<tr> + <td>verifyElementNotPresent</td> + <td>css=.entity[name='dnszone'] .facet[name='records'] input[value='testrecord']</td> + <td></td> +</tr> +<tr> + <td>type</td> + <td>css=.entity[name='dnszone'] .facet[name='records'] input[name='filter']</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>css=.entity[name='dnszone'] .facet[name='records'] a[title='Find']</td> + <td></td> +</tr> +<tr> + <td>waitForNotVisible</td> + <td>//span[@id='header-network-activity-indicator']</td> + <td></td> +</tr> +<tr> + <td>verifyElementPresent</td> + <td>css=.entity[name='dnszone'] .facet[name='records'] input[value='testrecord']</td> + <td></td> +</tr> + +</tbody></table> +</body> +</html> diff --git a/install/ui/test/functional/dnsrecord-suite.html b/install/ui/test/functional/dnsrecord-suite.html new file mode 100644 index 000000000..996ae43b5 --- /dev/null +++ b/install/ui/test/functional/dnsrecord-suite.html @@ -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> + <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="dnszone-add.html">Add DNS Zone</a></td></tr> +<tr><td><a href="dnsrecord-add.html">Add DNS Record</a></td></tr> +<tr><td><a href="dnsrecord-del.html">Delete DNS Record</a></td></tr> +<tr><td><a href="dnszone-del.html">Delete DNS Zone</a></td></tr> +</tbody></table> +</body> +</html> diff --git a/install/ui/test/functional/dnszone-add.html b/install/ui/test/functional/dnszone-add.html new file mode 100644 index 000000000..80c123d9d --- /dev/null +++ b/install/ui/test/functional/dnszone-add.html @@ -0,0 +1,71 @@ +<?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 DNS Zone</title> +</head> +<body> +<table cellpadding="1" cellspacing="1" border="1"> +<thead> +<tr><td rowspan="1" colspan="3">Add DNS Zone</td></tr> +</thead><tbody> +<tr> + <td>open</td> + <td>/ipa/ui/#navigation=policy&policy=dnszone</td> + <td></td> +</tr> +<tr> + <td>waitForNotVisible</td> + <td>//span[@id='header-network-activity-indicator']</td> + <td></td> +</tr> +<tr> + <td>verifyElementNotPresent</td> + <td>css=.entity[name='dnszone'] .facet[name='search'] input[value='test.com']</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>css=.entity[name='dnszone'] .facet[name='search'] a[title='Add']</td> + <td></td> +</tr> +<tr> + <td>type</td> + <td>idnsname</td> + <td>test.com</td> +</tr> +<tr> + <td>type</td> + <td>idnssoamname</td> + <td>ns.test.com.</td> +</tr> +<tr> + <td>type</td> + <td>idnssoarname</td> + <td>root.test.com.</td> +</tr> +<tr> + <td>click</td> + <td>force</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>//button[@type='button']</td> + <td></td> +</tr> +<tr> + <td>waitForNotVisible</td> + <td>//span[@id='header-network-activity-indicator']</td> + <td></td> +</tr> +<tr> + <td>verifyElementPresent</td> + <td>css=.entity[name='dnszone'] .facet[name='search'] input[value='test.com']</td> + <td></td> +</tr> +</tbody></table> +</body> +</html> diff --git a/install/ui/test/functional/dnszone-del.html b/install/ui/test/functional/dnszone-del.html new file mode 100644 index 000000000..926d3bdd8 --- /dev/null +++ b/install/ui/test/functional/dnszone-del.html @@ -0,0 +1,56 @@ +<?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>Delete DNS Zone</title> +</head> +<body> +<table cellpadding="1" cellspacing="1" border="1"> +<thead> +<tr><td rowspan="1" colspan="3">Delete DNS Zone</td></tr> +</thead><tbody> +<tr> + <td>open</td> + <td>/ipa/ui/#navigation=policy&policy=dnszone</td> + <td></td> +</tr> +<tr> + <td>waitForNotVisible</td> + <td>//span[@id='header-network-activity-indicator']</td> + <td></td> +</tr> +<tr> + <td>verifyElementPresent</td> + <td>css=.entity[name='dnszone'] .facet[name='search'] input[value='test.com']</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>css=.entity[name='dnszone'] .facet[name='search'] input[value='test.com']</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>css=.entity[name='dnszone'] .facet[name='search'] a[title='Delete']</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>//button[@type='button']</td> + <td></td> +</tr> +<tr> + <td>waitForNotVisible</td> + <td>//span[@id='header-network-activity-indicator']</td> + <td></td> +</tr> +<tr> + <td>verifyElementNotPresent</td> + <td>css=.entity[name='dnszone'] .facet[name='search'] input[value='test.com']</td> + <td></td> +</tr> +</tbody></table> +</body> +</html> diff --git a/install/ui/test/functional/dnszone-find.html b/install/ui/test/functional/dnszone-find.html new file mode 100644 index 000000000..0f8f81795 --- /dev/null +++ b/install/ui/test/functional/dnszone-find.html @@ -0,0 +1,92 @@ +<?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>Search DNS Zone</title> +</head> +<body> +<table cellpadding="1" cellspacing="1" border="1"> +<thead> +<tr><td rowspan="1" colspan="3">Search DNS Zone</td></tr> +</thead><tbody> +<tr> + <td>open</td> + <td>/ipa/ui/#navigation=policy&policy=dnszone</td> + <td></td> +</tr> +<tr> + <td>waitForNotVisible</td> + <td>//span[@id='header-network-activity-indicator']</td> + <td></td> +</tr> +<tr> + <td>verifyElementPresent</td> + <td>css=.entity[name='dnszone'] .facet[name='search'] input[value='test.com']</td> + <td></td> +</tr> +<tr> + <td>type</td> + <td>filter</td> + <td>test</td> +</tr> +<tr> + <td>click</td> + <td>link=Find</td> + <td></td> +</tr> +<tr> + <td>waitForNotVisible</td> + <td>//span[@id='header-network-activity-indicator']</td> + <td></td> +</tr> +<tr> + <td>verifyElementPresent</td> + <td>css=.entity[name='dnszone'] .facet[name='search'] input[value='test.com']</td> + <td></td> +</tr> +<tr> + <td>type</td> + <td>filter</td> + <td>xxx</td> +</tr> +<tr> + <td>click</td> + <td>link=Find</td> + <td></td> +</tr> +<tr> + <td>waitForNotVisible</td> + <td>//span[@id='header-network-activity-indicator']</td> + <td></td> +</tr> +<tr> + <td>verifyElementNotPresent</td> + <td>css=.entity[name='dnszone'] .facet[name='search'] input[value='test.com']</td> + <td></td> +</tr> +<tr> + <td>type</td> + <td>filter</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>link=Find</td> + <td></td> +</tr> +<tr> + <td>waitForNotVisible</td> + <td>//span[@id='header-network-activity-indicator']</td> + <td></td> +</tr> +<tr> + <td>verifyElementPresent</td> + <td>css=.entity[name='dnszone'] .facet[name='search'] input[value='test.com']</td> + <td></td> +</tr> + +</tbody></table> +</body> +</html> diff --git a/install/ui/test/functional/dnszone-mod.html b/install/ui/test/functional/dnszone-mod.html new file mode 100644 index 000000000..8013201e0 --- /dev/null +++ b/install/ui/test/functional/dnszone-mod.html @@ -0,0 +1,112 @@ +<?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>Edit DNS Zone</title> +</head> +<body> +<table cellpadding="1" cellspacing="1" border="1"> +<thead> +<tr><td rowspan="1" colspan="3">Edit DNS Zone</td></tr> +</thead><tbody> +<tr> + <td>open</td> + <td>/ipa/ui/#navigation=policy&policy=dnszone</td> + <td></td> +</tr> +<tr> + <td>waitForNotVisible</td> + <td>//span[@id='header-network-activity-indicator']</td> + <td></td> +</tr> +<tr> + <td>verifyElementPresent</td> + <td>css=.entity[name='dnszone'] .facet[name='search'] input[value='test.com']</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>link=test.com</td> + <td></td> +</tr> +<tr> + <td>waitForNotVisible</td> + <td>//span[@id='header-network-activity-indicator']</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>details</td> + <td></td> +</tr> +<tr> + <td>waitForNotVisible</td> + <td>//span[@id='header-network-activity-indicator']</td> + <td></td> +</tr> +<tr> + <td>type</td> + <td>idnssoarname</td> + <td></td> +</tr> +<tr> + <td>typeKeys</td> + <td>idnssoarname</td> + <td>admin.test.com.</td> +</tr> +<tr> + <td>verifyTextPresent</td> + <td>undo</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>link=Update</td> + <td></td> +</tr> +<tr> + <td>waitForNotVisible</td> + <td>//span[@id='header-network-activity-indicator']</td> + <td></td> +</tr> +<tr> + <td>verifyTextNotPresent</td> + <td>undo</td> + <td></td> +</tr> +<tr> + <td>type</td> + <td>idnssoarname</td> + <td></td> +</tr> +<tr> + <td>typeKeys</td> + <td>idnssoarname</td> + <td>root.test.com.</td> +</tr> +<tr> + <td>verifyTextPresent</td> + <td>undo</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>link=Update</td> + <td></td> +</tr> +<tr> + <td>waitForNotVisible</td> + <td>//span[@id='header-network-activity-indicator']</td> + <td></td> +</tr> +<tr> + <td>verifyTextNotPresent</td> + <td>undo</td> + <td></td> +</tr> + +</tbody></table> +</body> +</html> diff --git a/install/ui/test/functional/dnszone-suite.html b/install/ui/test/functional/dnszone-suite.html new file mode 100644 index 000000000..b90066fb0 --- /dev/null +++ b/install/ui/test/functional/dnszone-suite.html @@ -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> + <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="dnszone-add.html">Add DNS Zone</a></td></tr> +<tr><td><a href="dnszone-find.html">Search DNS Zone</a></td></tr> +<tr><td><a href="dnszone-mod.html">Edit DNS Zone</a></td></tr> +<tr><td><a href="dnszone-del.html">Delete DNS Zone</a></td></tr> +</tbody></table> +</body> +</html> |