Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Mukul
erp5
Commits
2932fbc3
Commit
2932fbc3
authored
Oct 27, 2017
by
Alain Takoudjou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[web_monitoring_ui_test] update functionnal test for the new monitoring UI
parent
4cec3212
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
204 additions
and
61 deletions
+204
-61
bt5/erp5_web_monitoring_ui_test/PathTemplateItem/portal_tests/web_monitoring_ui_zuite/testMonitoringSyncNavigation.zpt
.../web_monitoring_ui_zuite/testMonitoringSyncNavigation.zpt
+204
-61
No files found.
bt5/erp5_web_monitoring_ui_test/PathTemplateItem/portal_tests/web_monitoring_ui_zuite/testMonitoringSyncNavigation.zpt
View file @
2932fbc3
...
...
@@ -24,27 +24,47 @@
<!-- Initialize -->
<tr>
<td>
open
</td>
<td>
${base_url}/web_site_module/
monitoring_render_js
/
</td>
<td>
${base_url}/web_site_module/
officejs_monitoring
/
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//
button[@data-i18n='Menu
']
</td>
<td>
//
a[@data-i18n='Monitoring Configurations
']
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//a[@href='#page=settings_configurator']
</td>
<td>
//a[@data-i18n='Synchronize']
</td>
<td></td>
</tr>
<tr>
<td>
waitForTextPresent
</td>
<td>
Synchronizing Data...
</td>
<td></td>
</tr>
<tr>
<td>
waitForTextPresent
</td>
<td>
Synchronisation finished
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//a[@data-i18n='Monitoring Configurations']
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//span[@data-i18n="Configure monitoring OPML"]
</td>
<td>
//button[@id="destroyOPML"]
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//input[@name='check_online_access']
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//
a[@href='#config-add
']
</td>
<td>
//
button[@data-i18n='Save
']
</td>
<td></td>
</tr>
<tr>
...
...
@@ -53,8 +73,18 @@
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//button[@data-i18n='Add OPML']
</td>
<td>
click
</td>
<td>
//a[@data-i18n='Add']
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//button[@data-i18n="Save"]
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[@data-i18n='Change Password']
</td>
<td></td>
</tr>
<tr>
...
...
@@ -62,6 +92,16 @@
<td>
http://localhost:5378/rootInstance/public/feeds
</td>
<td>
opml_url
</td>
</tr>
<tr>
<td>
store
</td>
<td>
rootInstance
</td>
<td>
instance_root
</td>
</tr>
<tr>
<td>
store
</td>
<td>
subInstance-1
</td>
<td>
instance_1
</td>
</tr>
<tr>
<td>
store
</td>
<td>
admin
</td>
...
...
@@ -69,7 +109,7 @@
</tr>
<tr>
<td>
store
</td>
<td>
zwkuyjdl
</td>
<td>
ntpvmhkg
</td>
<td>
password
</td>
</tr>
<tr>
...
...
@@ -89,7 +129,7 @@
</tr>
<tr>
<td>
click
</td>
<td>
//button[@data-i18n='
Add OPML
']
</td>
<td>
//button[@data-i18n='
Save
']
</td>
<td></td>
</tr>
<tr>
...
...
@@ -98,8 +138,8 @@
<td></td>
</tr>
<tr>
<td>
assert
Tex
tNotPresent
</td>
<td>
Failed to access OPML URL
</td>
<td>
assert
Elemen
tNotPresent
</td>
<td>
//span[contains(@class, 'ui-text-error')]
</td>
<td></td>
</tr>
<tr>
...
...
@@ -108,28 +148,28 @@
<td></td>
</tr>
<tr>
<td>
waitFor
Tex
tPresent
</td>
<td>
Monitoring Promises Status
</td>
<td>
waitFor
Elemen
tPresent
</td>
<td>
//h1[@data-i18n='OPML Documents']
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//
button[contains(@class, 'sync-all')
]
</td>
<td>
click
</td>
<td>
//
a[@data-i18n='Monitoring Configurations'
]
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//
a[@href='#page=settings_configurator'
]
</td>
<td>
waitForElementPresent
</td>
<td>
//
button[@id="destroyOPML"
]
</td>
<td></td>
</tr>
<tr>
<td>
pause
</td>
<td>
2
000
</td>
<td>
3
000
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//table[contains(@class, '
opml-tablelinks
')]
</td>
<td>
//table[contains(@class, '
ui-table-inset
')]
</td>
<td></td>
</tr>
<tr>
...
...
@@ -139,17 +179,17 @@
</tr>
<tr>
<td>
storeElementPresent
</td>
<td>
//table[contains(@class, '
opml-tablelinks')]/tbody/tr[1]/td[3
]/a
</td>
<td>
//table[contains(@class, '
ui-table-inset')]/tbody/tr[1]/td[1
]/a
</td>
<td>
has_hosting
</td>
</tr>
<tr>
<td>
storeText
</td>
<td>
//table[contains(@class, '
opml-tablelinks')]/tbody/tr[1]/td[3
]/a
</td>
<td>
//table[contains(@class, '
ui-table-inset')]/tbody/tr[1]/td[1
]/a
</td>
<td>
hosting_title
</td>
</tr>
<tr>
<td>
click
</td>
<td>
//
button[contains(@class, 'sync-all')
]
</td>
<td>
//
a[@data-i18n='Synchronize'
]
</td>
<td></td>
</tr>
<tr>
...
...
@@ -162,9 +202,14 @@
<td>
Synchronisation finished
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//h1[@data-i18n='Monitoring Promises']
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//a[@
href='#page=hosting_subscription_list
']
</td>
<td>
//a[@
data-i18n='Hosting Subscriptions
']
</td>
<td></td>
</tr>
<tr>
...
...
@@ -179,7 +224,12 @@
</tr>
<tr>
<td>
click
</td>
<td>
//table[contains(@class, 'instance-overview')]/tbody/tr[1]/td[1]/a
</td>
<td>
//table[contains(@class, 'ui-table-inset')]/tbody/tr[1]/td[1]/a
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//h1[@data-i18n='Software Instances']
</td>
<td></td>
</tr>
<tr>
...
...
@@ -193,13 +243,40 @@
<td></td>
</tr>
<tr>
<td>
open
</td>
<td>
${base_url}/web_site_module/monitoring_render_js/app/
</td>
<td>
assertTextPresent
</td>
<td>
${instance_root}
</td>
<td></td>
</tr>
<tr>
<td>
assertTextPresent
</td>
<td>
${instance_1}
</td>
<td></td>
</tr>
<tr>
<!-- Navigate to the first instance -->
<td>
click
</td>
<td>
//table[contains(@class, 'ui-table-inset')]/tbody/tr[1]/td[1]/a
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//button[@data-i18n='Menu']
</td>
<td>
//a[@data-i18n='Instance: ${instance_root}']
</td>
<td></td>
</tr>
<tr>
<td>
assertTextPresent
</td>
<td>
${hosting_title}
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//h1[@data-i18n='Instance Promises Status']
</td>
<td></td>
</tr>
<!-- Display list of promises -->
<tr>
<td>
click
</td>
<td>
//a[@data-i18n='Promises']
</td>
<td></td>
</tr>
<tr>
...
...
@@ -207,6 +284,11 @@
<td>
500
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//h1[@data-i18n='Monitoring Promises']
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//span[@data-i18n="Monitoring Promises Status"]
</td>
...
...
@@ -218,18 +300,44 @@
<td></td>
</tr>
<tr>
<td>
assertTextPresent
</td>
<td>
${instance_root}
</td>
<td></td>
</tr>
<tr>
<td>
assertTextPresent
</td>
<td>
${instance_1}
</td>
<td></td>
</tr>
<tr>
<td>
storeText
</td>
<td>
//table[contains(@class, 'ui-table-inset')]/tbody/tr[1]/td[1]/a
</td>
<td>
promise_title
</td>
</tr>
<tr>
<!-- Open the first promise -->
<td>
click
</td>
<td>
//table[contains(@class, 'ui-
responsive
')]/tbody/tr[1]/td[1]/a
</td>
<td>
//table[contains(@class, 'ui-
table-inset
')]/tbody/tr[1]/td[1]/a
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//
button[@data-i18n='Menu
']
</td>
<td>
//
a[@data-i18n='Promise: ${promise_title}
']
</td>
<td></td>
</tr>
<tr>
<td>
pause
</td>
<td>
2000
</td>
<td>
assertTextPresent
</td>
<td>
${hosting_title}
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//h1[@data-i18n='Promise Status History']
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//span[contains(@class, 'label')]
</td>
<td></td>
</tr>
<tr>
...
...
@@ -244,77 +352,77 @@
</tr>
<tr>
<td>
open
</td>
<td>
${base_url}/web_site_module/
monitoring_render_js/app/#
page=settings_configurator
</td>
<td>
${base_url}/web_site_module/
officejs_monitoring/app/#!display?n.
page=settings_configurator
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//
button[@data-i18n='Menu
']
</td>
<td>
//
a[@data-i18n='Monitoring Configurations
']
</td>
<td></td>
</tr>
<tr>
<td>
pause
</td>
<td>
5
00
</td>
<td>
20
00
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//
table[contains(@class, 'opml-tablelinks')]/tbody/tr[1]/td[3]/a
</td>
<td>
waitForElementPresent
</td>
<td>
//
h1[@data-i18n='OPML Documents']
</td>
<td></td>
</tr>
<tr>
<td>
pause
</td>
<td>
5
00
</td>
<td>
20
00
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresen
t
</td>
<td>
//
button[@data-i18n='Add OPML']
</td>
<td></td>
<td>
verifyTex
t
</td>
<td>
//
table[contains(@class, 'ui-table-inset')]/tbody/tr[1]/td[1]/a
</td>
<td>
${hosting_title}
</td>
</tr>
<tr>
<td>
click
</td>
<td>
//
label[contains(@class, 'configure-auth')]
</td>
<td>
//
table[contains(@class, 'ui-table-inset')]/tbody/tr[1]/td[1]/a
</td>
<td></td>
</tr>
<tr>
<td>
pause
</td>
<td>
500
</td>
<td>
waitForElementPresent
</td>
<td>
//a[@data-i18n='${hosting_title}']
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//
label[@data-i18n="Confirm New Password:"
]
</td>
<td>
click
</td>
<td>
//
button[@data-i18n='Save'
]
</td>
<td></td>
</tr>
<tr>
<td>
typ
e
</td>
<td>
name=new_password_confirm
</td>
<td>
${password}
</td>
<td>
paus
e
</td>
<td>
1000
</td>
<td></td>
</tr>
<tr>
<td>
type
</td>
<td>
name=
new_
password
</td>
<td>
name=password
</td>
<td>
${password}
</td>
</tr>
<tr>
<td>
click
</td>
<td>
//
button[@data-i18n='Add OPML
']
</td>
<td>
//
input[@name='verify_password
']
</td>
<td></td>
</tr>
<tr>
<td>
pause
</td>
<td>
2000
</td>
<td>
click
</td>
<td>
//button[@data-i18n='Save']
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//button[contains(@class, 'sync-all')]
</td>
<td>
pause
</td>
<td>
1000
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//
button[contains(@class, 'sync-all')
]
</td>
<td>
//
a[@data-i18n='Synchronize'
]
</td>
<td></td>
</tr>
<tr>
...
...
@@ -329,17 +437,27 @@
</tr>
<tr>
<td>
click
</td>
<td>
//
input[@name='opml-all
']
</td>
<td>
//
a[@data-i18n='Monitoring Configurations
']
</td>
<td></td>
</tr>
<tr>
<td>
clickAndWai
t
</td>
<td>
//
a[contains(@class, 'opml-delete')
]
</td>
<td>
waitForElementPresen
t
</td>
<td>
//
h1[@data-i18n='OPML Documents'
]
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//button[@data-i18n='Menu']
</td>
<td>
pause
</td>
<td>
1000
</td>
<td></td>
</tr>
<tr>
<td>
verifyText
</td>
<td>
//table[contains(@class, 'ui-table-inset')]/tbody/tr[1]/td[1]/a
</td>
<td>
${hosting_title}
</td>
</tr>
<tr>
<td>
click
</td>
<td>
//table[contains(@class, 'ui-table-inset')]/tbody/tr[1]/td[1]/a
</td>
<td></td>
</tr>
<tr>
...
...
@@ -347,14 +465,39 @@
<td>
500
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[@data-i18n='${hosting_title}']
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//a[@data-i18n='Delete']
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//h1[@data-i18n='OPML Documents']
</td>
<td></td>
</tr>
<tr>
<td>
pause
</td>
<td>
1000
</td>
<td></td>
</tr>
<tr>
<td>
assertTextNotPresent
</td>
<td>
${opml_url}
</td>
<td></td>
</tr>
<tr>
<td>
assertTextNotPresent
</td>
<td>
${hosting_title}
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//a[@
href='#page=hosting_subscription_list
']
</td>
<td>
//a[@
data-i18n='Hosting Subscriptions
']
</td>
<td></td>
</tr>
<tr>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment