From 9e139ae42d7f3f82a68446765835b48096c30746 Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Wed, 16 Mar 2011 23:08:31 -0400 Subject: Added sudo command test cases. --- install/ui/test/functional/sudocmd-add.html | 52 ++++++++++++++++++ install/ui/test/functional/sudocmd-del.html | 47 ++++++++++++++++ install/ui/test/functional/sudocmd-find.html | 72 +++++++++++++++++++++++++ install/ui/test/functional/sudocmd-mod.html | 77 +++++++++++++++++++++++++++ install/ui/test/functional/sudocmd-suite.html | 17 ++++++ 5 files changed, 265 insertions(+) create mode 100644 install/ui/test/functional/sudocmd-add.html create mode 100644 install/ui/test/functional/sudocmd-del.html create mode 100644 install/ui/test/functional/sudocmd-find.html create mode 100644 install/ui/test/functional/sudocmd-mod.html create mode 100644 install/ui/test/functional/sudocmd-suite.html (limited to 'install/ui') diff --git a/install/ui/test/functional/sudocmd-add.html b/install/ui/test/functional/sudocmd-add.html new file mode 100644 index 00000000..11e865c2 --- /dev/null +++ b/install/ui/test/functional/sudocmd-add.html @@ -0,0 +1,52 @@ + + + + + + +Add Sudo Command + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Add Sudo Command
open/ipa/ui/#navigation=1&policy=2&sudorule-entity=sudocmd
waitForTextPresent0 sudo command matched
click//div[@id='sudorule']//div[@class='action-panel']//a[@title='Add']
typesudocmdtestsudocmd
typedescriptionTest Sudo Command
click//button[@type='button']
waitForElementPresent//div[@id='sudorule']//span[@name='search']//input[@value='testsudocmd']
+ + diff --git a/install/ui/test/functional/sudocmd-del.html b/install/ui/test/functional/sudocmd-del.html new file mode 100644 index 00000000..5e2fdd65 --- /dev/null +++ b/install/ui/test/functional/sudocmd-del.html @@ -0,0 +1,47 @@ + + + + + + +Delete Sudo Command + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Delete Sudo Command
open/ipa/ui/#navigation=1&policy=2&sudorule-entity=sudocmd
waitForElementPresent//div[@id='sudorule']//span[@name='search']//input[@value='testsudocmd']
click//div[@id='sudorule']//span[@name='search']//input[@value='testsudocmd']
click//div[@id='sudorule']//div[@class='action-panel']//a[@title='Delete']
click//button[@type='button']
waitForElementNotPresent//div[@id='sudorule']//span[@name='search']//input[@value='testsudocmd']
+ + diff --git a/install/ui/test/functional/sudocmd-find.html b/install/ui/test/functional/sudocmd-find.html new file mode 100644 index 00000000..358e34bd --- /dev/null +++ b/install/ui/test/functional/sudocmd-find.html @@ -0,0 +1,72 @@ + + + + + + +Search Sudo Command + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Search Sudo Command
open/ipa/ui/#navigation=1&policy=2&sudorule-entity=sudocmd
waitForElementPresent//div[@id='sudorule']//span[@name='search']//input[@value='testsudocmd']
typesearch-sudocmd-filtertest
clicklink=Find
waitForElementPresent//div[@id='sudorule']//span[@name='search']//input[@value='testsudocmd']
typesearch-sudocmd-filterxxx
clicklink=Find
waitForElementNotPresent//div[@id='sudorule']//span[@name='search']//input[@value='testsudocmd']
typesearch-sudocmd-filter
click//div[@id='sudorule']/span/div[1]/span[1]/a/span
waitForElementPresent//div[@id='sudorule']//span[@name='search']//input[@value='testsudocmd']
+ + diff --git a/install/ui/test/functional/sudocmd-mod.html b/install/ui/test/functional/sudocmd-mod.html new file mode 100644 index 00000000..69d4a953 --- /dev/null +++ b/install/ui/test/functional/sudocmd-mod.html @@ -0,0 +1,77 @@ + + + + + + +Edit Sudo Command + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Edit Sudo Command
open/ipa/ui/#navigation=1&policy=2&sudorule-entity=sudocmd
waitForElementPresent//div[@id='sudorule']//span[@name='search']//input[@value='testsudocmd']
clicklink=testsudocmd
waitForTextPresenttestsudocmd:
typedescription
typeKeysdescriptionxxx
clicklink=Update
waitForTextNotPresentundo
typedescription
typeKeysdescriptionTest Sudo Command
clicklink=Update
waitForTextNotPresentundo
+ + diff --git a/install/ui/test/functional/sudocmd-suite.html b/install/ui/test/functional/sudocmd-suite.html new file mode 100644 index 00000000..2b42c7e4 --- /dev/null +++ b/install/ui/test/functional/sudocmd-suite.html @@ -0,0 +1,17 @@ + + + + + + Test Suite + + + + + + + + +
Test Suite
Add Sudo Command
Search Sudo Command
Edit Sudo Command
Delete Sudo Command
+ + -- cgit