From 50f939c8382f8feb09b1f3006bec3608cfab9cf1 Mon Sep 17 00:00:00 2001 From: Daniel Maldonado Date: Wed, 18 Jul 2012 10:36:02 -0400 Subject: [PATCH] Added a bunch of frameless tests to test most of the admin functions --- selenium/frameless/contentFilters.html | 9 -- selenium/frameless/contentProfiling.html | 8 +- selenium/frameless/databases.html | 11 +- selenium/frameless/filePump.html | 11 +- selenium/frameless/graphics.html | 86 +++++++++++++++ selenium/frameless/groups.html | 46 ++++++++ selenium/frameless/inbox.html | 26 +++++ selenium/frameless/ldapLinks.html | 81 ++++++++++++++ selenium/frameless/loginHistory.html | 36 +++++++ selenium/frameless/passiveAnalytics.html | 36 +++++++ selenium/frameless/scheduler.html | 46 ++++++++ selenium/frameless/settings.html | 131 +++++++++++++++++++++++ selenium/frameless/shop.html | 31 ++++++ selenium/frameless/spectre.html | 31 ++++++ selenium/frameless/templateHelp.html | 41 +++++++ selenium/frameless/trash.html | 46 ++++++++ selenium/frameless/userProfiling.html | 91 ++++++++++++++++ selenium/frameless/users.html | 56 ++++++++++ selenium/frameless/versionTags.html | 86 +++++++++++++++ selenium/frameless/workflow.html | 81 ++++++++++++++ selenium/webguiInitialSetup.html | 47 ++++++++ 21 files changed, 1024 insertions(+), 13 deletions(-) create mode 100644 selenium/frameless/graphics.html create mode 100644 selenium/frameless/groups.html create mode 100644 selenium/frameless/inbox.html create mode 100644 selenium/frameless/ldapLinks.html create mode 100644 selenium/frameless/loginHistory.html create mode 100644 selenium/frameless/passiveAnalytics.html create mode 100644 selenium/frameless/scheduler.html create mode 100644 selenium/frameless/settings.html create mode 100644 selenium/frameless/shop.html create mode 100644 selenium/frameless/spectre.html create mode 100644 selenium/frameless/templateHelp.html create mode 100644 selenium/frameless/trash.html create mode 100644 selenium/frameless/userProfiling.html create mode 100644 selenium/frameless/users.html create mode 100644 selenium/frameless/versionTags.html create mode 100644 selenium/frameless/workflow.html create mode 100644 selenium/webguiInitialSetup.html diff --git a/selenium/frameless/contentFilters.html b/selenium/frameless/contentFilters.html index cf3684411..bff4a4142 100644 --- a/selenium/frameless/contentFilters.html +++ b/selenium/frameless/contentFilters.html @@ -5,15 +5,6 @@ New Test - diff --git a/selenium/frameless/contentProfiling.html b/selenium/frameless/contentProfiling.html index e4edf87fc..e7567a623 100644 --- a/selenium/frameless/contentProfiling.html +++ b/selenium/frameless/contentProfiling.html @@ -57,11 +57,15 @@ - + + + + + + -
assertTextNotPresentpause2000
verifyTextNotPresent seleniumTestMetadata
diff --git a/selenium/frameless/databases.html b/selenium/frameless/databases.html index 66ed8b773..944a1c8d9 100644 --- a/selenium/frameless/databases.html +++ b/selenium/frameless/databases.html @@ -61,7 +61,16 @@ Are you certain you wish to delete this database link? - + + pause + 2000 + + + + verifyAlertNotPresent + testDatabaseLink + + diff --git a/selenium/frameless/filePump.html b/selenium/frameless/filePump.html index 70c271716..7df64146d 100644 --- a/selenium/frameless/filePump.html +++ b/selenium/frameless/filePump.html @@ -36,7 +36,16 @@ css=img[alt="Delete"] - + + pause + 2000 + + + + assertTextNotPresent + link=New bundle + New bundle + diff --git a/selenium/frameless/graphics.html b/selenium/frameless/graphics.html new file mode 100644 index 000000000..ba7f0c44c --- /dev/null +++ b/selenium/frameless/graphics.html @@ -0,0 +1,86 @@ + + + + + + +File Pump + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
File Pump
open/?op=listGraphicsOptions
assertTextid=application_titleGraphics
open/?op=listPalettes
clickAndWaitlink=Add a new palette
typeid=paletteName_formIdnew palette test
clickAndWaitcss=input[type="submit"]
clickAndWaitlink=Add a color to this palette.
typeid=colorName_formIdnew color test
clickAndWaitcss=input[type="submit"]
clickAndWaitcss=img[alt="Delete"]
clickAndWaitlink=Manage palettes
assertTextPresentnew palette test
open/?op=listFonts
assertTextPresentWebGUI default font
+ + diff --git a/selenium/frameless/groups.html b/selenium/frameless/groups.html new file mode 100644 index 000000000..29c9ca559 --- /dev/null +++ b/selenium/frameless/groups.html @@ -0,0 +1,46 @@ + + + + + + +File Pump + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
File Pump
open/?op=listGroups
clickAndWaitlink=Add new group.
typeid=groupName_formIdNew Group Test
typeid=description_formIdjust a test group
clickAndWaitxpath=(//input[@value='save'])[2]
assertTextPresentNew Group Test
+ + diff --git a/selenium/frameless/inbox.html b/selenium/frameless/inbox.html new file mode 100644 index 000000000..24b891d73 --- /dev/null +++ b/selenium/frameless/inbox.html @@ -0,0 +1,26 @@ + + + + + + +File Pump + + + + + + + + + + + + + + + + +
File Pump
open/?op=viewInbox
verifyValuecss=input[type="button"]New Message
+ + diff --git a/selenium/frameless/ldapLinks.html b/selenium/frameless/ldapLinks.html new file mode 100644 index 000000000..55599bc78 --- /dev/null +++ b/selenium/frameless/ldapLinks.html @@ -0,0 +1,81 @@ + + + + + + +File Pump + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
File Pump
open/?op=listLDAPLinks
assertTextPresentDefault LDAP Connection
clickAndWaitlink=Add an ldap connection.
typeid=ldapLinkName_formIdtest ldap connection
typeid=ldapUrl_formIdldap://ldap.webgui.com/baseDN
typeid=connectDn_formIdcn=Test Case,ou=people,dc=example,dc=com
typeid=ldapIdentifier_formIdtestpassword
typeid=ldapUserRDN_formIdtestid
typeid=ldapIdentity_formIdldaptester
typeid=ldapIdentityName_formIdtester
typeid=ldapPasswordName_formIdpasswordTester
clickAndWaitxpath=(//input[@value='save'])[2]
assertTextPresenttest ldap connection
+ + diff --git a/selenium/frameless/loginHistory.html b/selenium/frameless/loginHistory.html new file mode 100644 index 000000000..46c480296 --- /dev/null +++ b/selenium/frameless/loginHistory.html @@ -0,0 +1,36 @@ + + + + + + +File Pump + + + + + + + + + + + + + + + + + + + + + + + + + + +
File Pump
open/?op=viewLoginHistory
assertTextPresentLogin History
assertTextPresentAdmin (3)
assertTextPresentsuccess
+ + diff --git a/selenium/frameless/passiveAnalytics.html b/selenium/frameless/passiveAnalytics.html new file mode 100644 index 000000000..f0694383a --- /dev/null +++ b/selenium/frameless/passiveAnalytics.html @@ -0,0 +1,36 @@ + + + + + + +File Pump + + + + + + + + + + + + + + + + + + + + + + + + + + +
File Pump
open/?op=passiveAnalytics;func=editRuleflow
assertTextid=application_titlePassive Analytics
clickAndWaitlink=Add a bucket
verifyValuecss=input[type="submit"]save
+ + diff --git a/selenium/frameless/scheduler.html b/selenium/frameless/scheduler.html new file mode 100644 index 000000000..f11ba5eea --- /dev/null +++ b/selenium/frameless/scheduler.html @@ -0,0 +1,46 @@ + + + + + + +File Pump + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
File Pump
open/?op=manageCron
assertTextid=application_titleScheduler
clickAndWaitlink=Add a new task.
typeid=title_formIdtestTask
clickAndWaitcss=input[type="submit"]
assertTextPresenttestTask
+ + diff --git a/selenium/frameless/settings.html b/selenium/frameless/settings.html new file mode 100644 index 000000000..8a3fe6209 --- /dev/null +++ b/selenium/frameless/settings.html @@ -0,0 +1,131 @@ + + + + + + +File Pump + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
File Pump
open/?op=editSettings
assertTextid=application_titleSettings
verifyValueid=companyName_formIdMy Company
verifyValueid=companyEmail_formIdinfo@mycompany.com
verifyValueid=companyURL_formIdexact:http://www.mycompany.com
click//div[@id='default']/ul/li[2]/a/em
assertTextcss=li.selected > a > emContent
click//div[@id='default']/ul/li[3]/a/em
verifyElementPresentcss=li.selected > a > em
click//div[@id='default']/ul/li[4]/a/em
assertTextcss=li.selected > a > emMessaging
click//div[@id='default']/ul/li[5]/a/em
assertTextcss=li.selected > a > emMiscellaneous
click//div[@id='default']/ul/li[6]/a/em
assertTextcss=li.selected > a > emAccount
click//div[@id='default']/ul/li[7]/a/em
assertTextcss=li.selected > a > emUser
click//div[@id='default']/ul/li[8]/a/em
assertTextcss=li.selected > a > emAuthentication
click//div[@id='default']/ul/li[9]/a/em
assertTextcss=li.selected > a > emPermissions
clickcss=em
assertTextNotPresentcss=li.selected > a > emPermissions
+ + diff --git a/selenium/frameless/shop.html b/selenium/frameless/shop.html new file mode 100644 index 000000000..9e2c3eca0 --- /dev/null +++ b/selenium/frameless/shop.html @@ -0,0 +1,31 @@ + + + + + + +File Pump + + + + + + + + + + + + + + + + + + + + + +
File Pump
open/?shop=admin
assertTextid=application_titleShop Settings
assertTextPresentMinimum checkout amount
+ + diff --git a/selenium/frameless/spectre.html b/selenium/frameless/spectre.html new file mode 100644 index 000000000..c5029b16b --- /dev/null +++ b/selenium/frameless/spectre.html @@ -0,0 +1,31 @@ + + + + + + +File Pump + + + + + + + + + + + + + + + + + + + + + +
File Pump
open/?op=spectreStatus
assertTextid=application_titleSpectre
assertTextPresentSpectre is not running.
+ + diff --git a/selenium/frameless/templateHelp.html b/selenium/frameless/templateHelp.html new file mode 100644 index 000000000..7faffadca --- /dev/null +++ b/selenium/frameless/templateHelp.html @@ -0,0 +1,41 @@ + + + + + + +File Pump + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
File Pump
open/?op=viewHelpIndex
assertTextid=application_titleHelp Index
assertTextlink=Macros, List of AvailableMacros, List of Available
clickAndWaitlink=Macros, List of Available
assertTextid=application_titleexact:Help: Macros, List of Available
+ + diff --git a/selenium/frameless/trash.html b/selenium/frameless/trash.html new file mode 100644 index 000000000..09c772ba5 --- /dev/null +++ b/selenium/frameless/trash.html @@ -0,0 +1,46 @@ + + + + + + +File Pump + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
File Pump
open/?func=manageTrash
assertTextid=application_titleTrash
clickAndWaitcss=input[type="button"]
clickAndWait//input[@value='Purge']
pause3000
assertTextNotPresentid=application_titlePurge
+ + diff --git a/selenium/frameless/userProfiling.html b/selenium/frameless/userProfiling.html new file mode 100644 index 000000000..f6b9c84b1 --- /dev/null +++ b/selenium/frameless/userProfiling.html @@ -0,0 +1,91 @@ + + + + + + +File Pump + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
File Pump
open/?op=editProfileSettings
assertTextid=application_titleUser Profiling
clickAndWaitlink=Add a profile category.
typeid=label_formIdTest Profile Category
typeid=shortLabel_formIdtestProfileCategory
clickid=visible1
clickid=editable1
clickAndWaitxpath=(//input[@value='save'])[2]
assertTextPresentTest Profile Category
clickAndWaitlink=Add a profile field.
typeid=fid_formIdtestProfileField
typeid=label_formIdTest Profile Field
selectid=profileCategoryId_formIdlabel=Test Profile Category
clickAndWaitxpath=(//input[@value='save'])[2]
assertTextPresentTest Profile Field
+ + diff --git a/selenium/frameless/users.html b/selenium/frameless/users.html new file mode 100644 index 000000000..af768284e --- /dev/null +++ b/selenium/frameless/users.html @@ -0,0 +1,56 @@ + + + + + + +File Pump + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
File Pump
open/?op=listUsers
assertTextid=application_titleUsers
clickAndWaitlink=Admin
assertTextPresentEdit User
click//div[@id='default']/ul/li[2]/a/em
assertTextPresentPersonal Information
click//div[@id='default']/ul/li[3]/a/em
assertTextPresentGROUPS TO ADD
+ + diff --git a/selenium/frameless/versionTags.html b/selenium/frameless/versionTags.html new file mode 100644 index 000000000..b45ff3fcc --- /dev/null +++ b/selenium/frameless/versionTags.html @@ -0,0 +1,86 @@ + + + + + + +File Pump + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
File Pump
open/?op=manageVersions
assertTextid=application_titleVersion Tags
clickAndWaitlink=Add a version tag.
typeid=name_formIdTest Version Tag
clickAndWaitxpath=(//input[@value='save'])[2]
assertTextlink=Test Version TagTest Version Tag
clickAndWaitlink=[Leave This Tag]
assertTextPresentYou are currently working under a tag called: None.
clickAndWaitcss=img[alt="Delete"]
assertConfirmationAre you certain you wish to delete this version tag and all content created under it? It CANNOT be restored if you delete it.
pause1000
assertTextNotPresentid=application_titleRollback Version Tag
open/?op=manageVersions
assertTextNotPresentlink=Test Version TagTest Version Tag
+ + diff --git a/selenium/frameless/workflow.html b/selenium/frameless/workflow.html new file mode 100644 index 000000000..cdee2d9b6 --- /dev/null +++ b/selenium/frameless/workflow.html @@ -0,0 +1,81 @@ + + + + + + +File Pump + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
File Pump
open/?op=manageWorkflows
assertTextid=application_titleManage all workflows.
assertTextPresentAnalyze Passive Analytics
clickAndWaitlink=Add a new workflow.
clickAndWaitcss=input[type="submit"]
typeid=title_formIdtestWorkFlow
typeid=description_formIdJust a test workflow
clickAndWaitxpath=(//input[@value='save'])[2]
clickAndWaitcss=input[type="submit"]
open/?op=manageWorkflows
assertTextPresenttestWorkFlow
clickAndWaitlink=Show running workflows.
assertTextid=application_titleShow running workflows.
+ + diff --git a/selenium/webguiInitialSetup.html b/selenium/webguiInitialSetup.html new file mode 100644 index 000000000..fe3e7aec8 --- /dev/null +++ b/selenium/webguiInitialSetup.html @@ -0,0 +1,47 @@ + + + + + + +webguiInitialSetup + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
webguiInitialSetup
open/
assertTitleWebGUI Initial Configuration
clickAndWaitid=send_formId-button
clickAndWaitid=send_formId-button
clickAndWaitxpath=(//input[@name='styleTemplateId'])[5]
clickAndWait//input[@value='No, thanks']
+ +