From 8d68226f72041d231912cb9d3172c1d042333066 Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Tue, 15 Mar 2011 19:28:45 -0400 Subject: Added host group test cases. --- .../ui/test/functional/group-add-member-user.html | 0 .../test/functional/group-remove-member-user.html | 0 install/ui/test/functional/host-edit.html | 71 ------------------- install/ui/test/functional/host-mod.html | 71 +++++++++++++++++++ .../test/functional/hostgroup-add-member-host.html | 82 ++++++++++++++++++++++ install/ui/test/functional/hostgroup-add.html | 52 ++++++++++++++ install/ui/test/functional/hostgroup-del.html | 46 ++++++++++++ install/ui/test/functional/hostgroup-find.html | 72 +++++++++++++++++++ install/ui/test/functional/hostgroup-mod | 77 ++++++++++++++++++++ .../functional/hostgroup-remove-member-host.html | 77 ++++++++++++++++++++ install/ui/test/functional/hostgroups.html | 21 ++++++ install/ui/test/functional/hosts.html | 2 +- 12 files changed, 499 insertions(+), 72 deletions(-) mode change 100755 => 100644 install/ui/test/functional/group-add-member-user.html mode change 100755 => 100644 install/ui/test/functional/group-remove-member-user.html delete mode 100644 install/ui/test/functional/host-edit.html create mode 100644 install/ui/test/functional/host-mod.html create mode 100644 install/ui/test/functional/hostgroup-add-member-host.html create mode 100644 install/ui/test/functional/hostgroup-add.html create mode 100644 install/ui/test/functional/hostgroup-del.html create mode 100644 install/ui/test/functional/hostgroup-find.html create mode 100644 install/ui/test/functional/hostgroup-mod create mode 100644 install/ui/test/functional/hostgroup-remove-member-host.html create mode 100644 install/ui/test/functional/hostgroups.html diff --git a/install/ui/test/functional/group-add-member-user.html b/install/ui/test/functional/group-add-member-user.html old mode 100755 new mode 100644 diff --git a/install/ui/test/functional/group-remove-member-user.html b/install/ui/test/functional/group-remove-member-user.html old mode 100755 new mode 100644 diff --git a/install/ui/test/functional/host-edit.html b/install/ui/test/functional/host-edit.html deleted file mode 100644 index 773a9e82..00000000 --- a/install/ui/test/functional/host-edit.html +++ /dev/null @@ -1,71 +0,0 @@ - - - - - - -Edit Host - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Edit Host
open/ipa/ui/#navigation=0&identity=2
waitForTextPresent2 hosts matched
clicklink=test.example.com
waitForElementPresent//div[@id='host']//span[@name='fqdn'][label='test.example.com']
typedescription
typeKeysdescriptionTest Host
clicklink=Update
waitForTextNotPresentundo
click//div[@id='host']/div[1]/ul/li[1]/span
waitForElementPresent//div[@id='host']//span[@name='search']//input[@value='test.example.com']
verifyTextcss=#host table.search-table tbody tr:nth-child(2) span[name=description]Test Host
- - diff --git a/install/ui/test/functional/host-mod.html b/install/ui/test/functional/host-mod.html new file mode 100644 index 00000000..773a9e82 --- /dev/null +++ b/install/ui/test/functional/host-mod.html @@ -0,0 +1,71 @@ + + + + + + +Edit Host + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Edit Host
open/ipa/ui/#navigation=0&identity=2
waitForTextPresent2 hosts matched
clicklink=test.example.com
waitForElementPresent//div[@id='host']//span[@name='fqdn'][label='test.example.com']
typedescription
typeKeysdescriptionTest Host
clicklink=Update
waitForTextNotPresentundo
click//div[@id='host']/div[1]/ul/li[1]/span
waitForElementPresent//div[@id='host']//span[@name='search']//input[@value='test.example.com']
verifyTextcss=#host table.search-table tbody tr:nth-child(2) span[name=description]Test Host
+ + diff --git a/install/ui/test/functional/hostgroup-add-member-host.html b/install/ui/test/functional/hostgroup-add-member-host.html new file mode 100644 index 00000000..1030d6a5 --- /dev/null +++ b/install/ui/test/functional/hostgroup-add-member-host.html @@ -0,0 +1,82 @@ + + + + + + +Add Member Host + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Add Member Host
open/ipa/ui/#navigation=0&identity=3
waitForTextPresent1 hostgroup matched
clicklink=testhostgroup
waitForTextPresenttesthostgroup:
click//div[@id='hostgroup']/div[1]/ul/li[6]
clicklink=Enroll
waitForElementPresent//div[1]//input[@name='select' and @value='test.example.com']
click//div[1]//input[@name='select' and @value='test.example.com']
clicklink=>>
click//button[@type='button']
waitForElementPresent//div[@id='hostgroup']/span[@name='association']//input[@value='test.example.com']
click//div[@id='hostgroup']/div[1]/ul/li[1]/span
waitForTextPresent1 hostgroup matched
+ + diff --git a/install/ui/test/functional/hostgroup-add.html b/install/ui/test/functional/hostgroup-add.html new file mode 100644 index 00000000..116c4725 --- /dev/null +++ b/install/ui/test/functional/hostgroup-add.html @@ -0,0 +1,52 @@ + + + + + + +Add Host Group + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Add Host Group
open/ipa/ui/#navigation=0&identity=3
waitForTextPresent0 hostgroups matched
click//div[@id='hostgroup']/div/ul/li[1]/span/span/a[2]
typecntesthostgroup
typedescriptionTest Host Group
click//button[@type='button']
waitForTextPresent1 hostgroup matched
+ + diff --git a/install/ui/test/functional/hostgroup-del.html b/install/ui/test/functional/hostgroup-del.html new file mode 100644 index 00000000..e062f647 --- /dev/null +++ b/install/ui/test/functional/hostgroup-del.html @@ -0,0 +1,46 @@ + + + + + + +Delete Host Group + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Delete Host Group
open/ipa/ui/#navigation=0&identity=3
waitForTextPresent1 hostgroup matched
click//input[@name='select' and @value='testhostgroup']
click//div[@id='hostgroup']/div/ul/li[1]/span/span/a[1]
click//button[@type='button']
waitForTextPresent0 hostgroups matched
+ + diff --git a/install/ui/test/functional/hostgroup-find.html b/install/ui/test/functional/hostgroup-find.html new file mode 100644 index 00000000..08476f5c --- /dev/null +++ b/install/ui/test/functional/hostgroup-find.html @@ -0,0 +1,72 @@ + + + + + + +Search Host Group + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Search Host Group
open/ipa/ui/#navigation=0&identity=3
waitForTextPresent1 hostgroup matched
typesearch-hostgroup-filtertest
click//div[@id='hostgroup']/span/div[1]/span[1]/a/span
waitForTextPresent1 hostgroup matched
typesearch-hostgroup-filterxxx
click//div[@id='hostgroup']/span/div[1]/span[1]/a/span
waitForTextPresent0 hostgroups matched
typesearch-hostgroup-filter
click//div[@id='hostgroup']/span/div[1]/span[1]/a/span
waitForTextPresent1 hostgroup matched
+ + diff --git a/install/ui/test/functional/hostgroup-mod b/install/ui/test/functional/hostgroup-mod new file mode 100644 index 00000000..a14029f9 --- /dev/null +++ b/install/ui/test/functional/hostgroup-mod @@ -0,0 +1,77 @@ + + + + + + +Edit Host Group + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Edit Host Group
open/ipa/ui/#navigation=0&identity=3
waitForTextPresent1 hostgroup matched
clicklink=testhostgroup
waitForTextPresenttesthostgroup:
typeKeysdescriptionxxx
clicklink=Update
waitForTextNotPresentundo
typeKeysdescriptionTest Host Group
clicklink=Update
waitForTextNotPresentundo
click//div[@id='hostgroup']/div[1]/ul/li[1]/span
waitForTextPresent1 hostgroup matched
+ + diff --git a/install/ui/test/functional/hostgroup-remove-member-host.html b/install/ui/test/functional/hostgroup-remove-member-host.html new file mode 100644 index 00000000..c31302f7 --- /dev/null +++ b/install/ui/test/functional/hostgroup-remove-member-host.html @@ -0,0 +1,77 @@ + + + + + + +Delete Member Host + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Delete Member Host
open/ipa/ui/#navigation=0&identity=3&hostgroup-facet=search&hostgroup-pkey=testhostgroup
waitForTextPresent1 hostgroup matched
clicklink=testhostgroup
waitForTextPresenttesthostgroup:
click//div[@id='hostgroup']/div[1]/ul/li[6]
waitForElementPresent//div[@id='hostgroup']/span[@name='association']//input[@value='test.example.com']
click//div[@id='hostgroup']/span[@name='association']//input[@value='test.example.com']
click//div[@id='hostgroup']/div[1]/ul/li[6]/ul/li[2]/span/a[1]
click//button[@type='button']
waitForElementNotPresent//div[@id='hostgroup']/span[@name='association']//input[@value='test.example.com']
click//div[@id='hostgroup']/div[1]/ul/li[1]/span
waitForTextPresent1 hostgroup matched
+ + diff --git a/install/ui/test/functional/hostgroups.html b/install/ui/test/functional/hostgroups.html new file mode 100644 index 00000000..0f681c1c --- /dev/null +++ b/install/ui/test/functional/hostgroups.html @@ -0,0 +1,21 @@ + + + + + + Test Suite + + + + + + + + + + + + +
Test Suite
Add Host Group
Search Host Group
Edit Host Group
Add Host
Add Member Host
Delete Member Host
Delete Host
Delete Host Group
+ + diff --git a/install/ui/test/functional/hosts.html b/install/ui/test/functional/hosts.html index fd984eeb..c58a751c 100644 --- a/install/ui/test/functional/hosts.html +++ b/install/ui/test/functional/hosts.html @@ -10,7 +10,7 @@ Test Suite Add Host Search Host -Edit Host +Edit Host Host Certificate Delete Host -- cgit