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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Lukas Niegsch
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 @@
...
@@ -24,27 +24,47 @@
<!-- Initialize -->
<!-- Initialize -->
<tr>
<tr>
<td>
open
</td>
<td>
open
</td>
<td>
${base_url}/web_site_module/
monitoring_render_js
/
</td>
<td>
${base_url}/web_site_module/
officejs_monitoring
/
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
waitForElementPresent
</td>
<td>
//
button[@data-i18n='Menu
']
</td>
<td>
//
a[@data-i18n='Monitoring Configurations
']
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
click
</td>
<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>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
waitForElementPresent
</td>
<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>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
click
</td>
<td>
click
</td>
<td>
//
a[@href='#config-add
']
</td>
<td>
//
button[@data-i18n='Save
']
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
...
@@ -53,8 +73,18 @@
...
@@ -53,8 +73,18 @@
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
assertElementPresent
</td>
<td>
click
</td>
<td>
//button[@data-i18n='Add OPML']
</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>
<td></td>
</tr>
</tr>
<tr>
<tr>
...
@@ -62,6 +92,16 @@
...
@@ -62,6 +92,16 @@
<td>
http://localhost:5378/rootInstance/public/feeds
</td>
<td>
http://localhost:5378/rootInstance/public/feeds
</td>
<td>
opml_url
</td>
<td>
opml_url
</td>
</tr>
</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>
<tr>
<td>
store
</td>
<td>
store
</td>
<td>
admin
</td>
<td>
admin
</td>
...
@@ -69,7 +109,7 @@
...
@@ -69,7 +109,7 @@
</tr>
</tr>
<tr>
<tr>
<td>
store
</td>
<td>
store
</td>
<td>
zwkuyjdl
</td>
<td>
ntpvmhkg
</td>
<td>
password
</td>
<td>
password
</td>
</tr>
</tr>
<tr>
<tr>
...
@@ -89,7 +129,7 @@
...
@@ -89,7 +129,7 @@
</tr>
</tr>
<tr>
<tr>
<td>
click
</td>
<td>
click
</td>
<td>
//button[@data-i18n='
Add OPML
']
</td>
<td>
//button[@data-i18n='
Save
']
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
...
@@ -98,8 +138,8 @@
...
@@ -98,8 +138,8 @@
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
assert
Tex
tNotPresent
</td>
<td>
assert
Elemen
tNotPresent
</td>
<td>
Failed to access OPML URL
</td>
<td>
//span[contains(@class, 'ui-text-error')]
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
...
@@ -108,28 +148,28 @@
...
@@ -108,28 +148,28 @@
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
waitFor
Tex
tPresent
</td>
<td>
waitFor
Elemen
tPresent
</td>
<td>
Monitoring Promises Status
</td>
<td>
//h1[@data-i18n='OPML Documents']
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
assertElementPresent
</td>
<td>
click
</td>
<td>
//
button[contains(@class, 'sync-all')
]
</td>
<td>
//
a[@data-i18n='Monitoring Configurations'
]
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
click
</td>
<td>
waitForElementPresent
</td>
<td>
//
a[@href='#page=settings_configurator'
]
</td>
<td>
//
button[@id="destroyOPML"
]
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
pause
</td>
<td>
pause
</td>
<td>
2
000
</td>
<td>
3
000
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
assertElementPresent
</td>
<td>
assertElementPresent
</td>
<td>
//table[contains(@class, '
opml-tablelinks
')]
</td>
<td>
//table[contains(@class, '
ui-table-inset
')]
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
...
@@ -139,17 +179,17 @@
...
@@ -139,17 +179,17 @@
</tr>
</tr>
<tr>
<tr>
<td>
storeElementPresent
</td>
<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>
<td>
has_hosting
</td>
</tr>
</tr>
<tr>
<tr>
<td>
storeText
</td>
<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>
<td>
hosting_title
</td>
</tr>
</tr>
<tr>
<tr>
<td>
click
</td>
<td>
click
</td>
<td>
//
button[contains(@class, 'sync-all')
]
</td>
<td>
//
a[@data-i18n='Synchronize'
]
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
...
@@ -162,9 +202,14 @@
...
@@ -162,9 +202,14 @@
<td>
Synchronisation finished
</td>
<td>
Synchronisation finished
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//h1[@data-i18n='Monitoring Promises']
</td>
<td></td>
</tr>
<tr>
<tr>
<td>
click
</td>
<td>
click
</td>
<td>
//a[@
href='#page=hosting_subscription_list
']
</td>
<td>
//a[@
data-i18n='Hosting Subscriptions
']
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
...
@@ -179,7 +224,12 @@
...
@@ -179,7 +224,12 @@
</tr>
</tr>
<tr>
<tr>
<td>
click
</td>
<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>
<td></td>
</tr>
</tr>
<tr>
<tr>
...
@@ -193,13 +243,40 @@
...
@@ -193,13 +243,40 @@
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
open
</td>
<td>
assertTextPresent
</td>
<td>
${base_url}/web_site_module/monitoring_render_js/app/
</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>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
waitForElementPresent
</td>
<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>
<td></td>
</tr>
</tr>
<tr>
<tr>
...
@@ -207,6 +284,11 @@
...
@@ -207,6 +284,11 @@
<td>
500
</td>
<td>
500
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//h1[@data-i18n='Monitoring Promises']
</td>
<td></td>
</tr>
<tr>
<tr>
<td>
assertElementPresent
</td>
<td>
assertElementPresent
</td>
<td>
//span[@data-i18n="Monitoring Promises Status"]
</td>
<td>
//span[@data-i18n="Monitoring Promises Status"]
</td>
...
@@ -218,18 +300,44 @@
...
@@ -218,18 +300,44 @@
<td></td>
<td></td>
</tr>
</tr>
<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>
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>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
waitForElementPresent
</td>
<td>
//
button[@data-i18n='Menu
']
</td>
<td>
//
a[@data-i18n='Promise: ${promise_title}
']
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
pause
</td>
<td>
assertTextPresent
</td>
<td>
2000
</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>
<td></td>
</tr>
</tr>
<tr>
<tr>
...
@@ -244,77 +352,77 @@
...
@@ -244,77 +352,77 @@
</tr>
</tr>
<tr>
<tr>
<td>
open
</td>
<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>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
waitForElementPresent
</td>
<td>
//
button[@data-i18n='Menu
']
</td>
<td>
//
a[@data-i18n='Monitoring Configurations
']
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
pause
</td>
<td>
pause
</td>
<td>
5
00
</td>
<td>
20
00
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
click
</td>
<td>
waitForElementPresent
</td>
<td>
//
table[contains(@class, 'opml-tablelinks')]/tbody/tr[1]/td[3]/a
</td>
<td>
//
h1[@data-i18n='OPML Documents']
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
pause
</td>
<td>
pause
</td>
<td>
5
00
</td>
<td>
20
00
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
waitForElementPresen
t
</td>
<td>
verifyTex
t
</td>
<td>
//
button[@data-i18n='Add OPML']
</td>
<td>
//
table[contains(@class, 'ui-table-inset')]/tbody/tr[1]/td[1]/a
</td>
<td></td>
<td>
${hosting_title}
</td>
</tr>
</tr>
<tr>
<tr>
<td>
click
</td>
<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>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
pause
</td>
<td>
waitForElementPresent
</td>
<td>
500
</td>
<td>
//a[@data-i18n='${hosting_title}']
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
assertElementPresent
</td>
<td>
click
</td>
<td>
//
label[@data-i18n="Confirm New Password:"
]
</td>
<td>
//
button[@data-i18n='Save'
]
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
typ
e
</td>
<td>
paus
e
</td>
<td>
name=new_password_confirm
</td>
<td>
1000
</td>
<td>
${password}
</td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
type
</td>
<td>
type
</td>
<td>
name=
new_
password
</td>
<td>
name=password
</td>
<td>
${password}
</td>
<td>
${password}
</td>
</tr>
</tr>
<tr>
<tr>
<td>
click
</td>
<td>
click
</td>
<td>
//
button[@data-i18n='Add OPML
']
</td>
<td>
//
input[@name='verify_password
']
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
pause
</td>
<td>
click
</td>
<td>
2000
</td>
<td>
//button[@data-i18n='Save']
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
assertElementPresent
</td>
<td>
pause
</td>
<td>
//button[contains(@class, 'sync-all')]
</td>
<td>
1000
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
click
</td>
<td>
click
</td>
<td>
//
button[contains(@class, 'sync-all')
]
</td>
<td>
//
a[@data-i18n='Synchronize'
]
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
...
@@ -329,17 +437,27 @@
...
@@ -329,17 +437,27 @@
</tr>
</tr>
<tr>
<tr>
<td>
click
</td>
<td>
click
</td>
<td>
//
input[@name='opml-all
']
</td>
<td>
//
a[@data-i18n='Monitoring Configurations
']
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
clickAndWai
t
</td>
<td>
waitForElementPresen
t
</td>
<td>
//
a[contains(@class, 'opml-delete')
]
</td>
<td>
//
h1[@data-i18n='OPML Documents'
]
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
pause
</td>
<td>
//button[@data-i18n='Menu']
</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>
<td></td>
</tr>
</tr>
<tr>
<tr>
...
@@ -347,14 +465,39 @@
...
@@ -347,14 +465,39 @@
<td>
500
</td>
<td>
500
</td>
<td></td>
<td></td>
</tr>
</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>
<tr>
<td>
assertTextNotPresent
</td>
<td>
assertTextNotPresent
</td>
<td>
${opml_url}
</td>
<td>
${opml_url}
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<td>
assertTextNotPresent
</td>
<td>
${hosting_title}
</td>
<td></td>
</tr>
<tr>
<tr>
<td>
click
</td>
<td>
click
</td>
<td>
//a[@
href='#page=hosting_subscription_list
']
</td>
<td>
//a[@
data-i18n='Hosting Subscriptions
']
</td>
<td></td>
<td></td>
</tr>
</tr>
<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