Commit 729d7d28 authored by Alain Takoudjou's avatar Alain Takoudjou

[officejs_monitoring_test] Add test for monitor interface navigation

parent e43eca1f
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Zuite" module="Products.Zelenium.zuite"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_objects</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>web_monitoring_ui_zuite</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_asgns</string> </key>
<value>
<dictionary>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>text/html</string> </value>
</item>
<item>
<key> <string>expand</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>testMonitoringSyncNavigation</string> </value>
</item>
<item>
<key> <string>output_encoding</string> </key>
<value> <string>utf-8</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <unicode></unicode> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<html xmlns:tal="http://xml.zope.org/namespaces/tal"
xmlns:metal="http://xml.zope.org/namespaces/metal">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Test SlapOS Monitoring UI (expected failure)</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">Test SlapOS Monitoring UI (expected failure)</td></tr>
</thead><tbody>
<tal:block metal:use-macro="here/Zuite_CommonTemplate/macros/init" />
<!-- Clean Up -->
<tr>
<td>open</td>
<td>${base_url}/bar_module/ListBoxZuite_reset</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Reset Successfully.</td>
<td></td>
</tr>
<!-- Initialize -->
<tr>
<td>open</td>
<td>${base_url}/web_site_module/monitoring_render_js/</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//button[@data-i18n='Menu']</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//a[@href='#page=settings_configurator']</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//span[@data-i18n="Configure monitoring OPML"]</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//a[@href='#config-add']</td>
<td></td>
</tr>
<tr>
<td>pause</td>
<td>500</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//button[@data-i18n='Add OPML']</td>
<td></td>
</tr>
<tr>
<td>store</td>
<td>http://localhost:5378/rootInstance/public/feeds</td>
<td>opml_url</td>
</tr>
<tr>
<td>store</td>
<td>admin</td>
<td>username</td>
</tr>
<tr>
<td>store</td>
<td>zwkuyjdl</td>
<td>password</td>
</tr>
<tr>
<td>type</td>
<td>name=url</td>
<td>${opml_url}</td>
</tr>
<tr>
<td>type</td>
<td>name=username</td>
<td>${username}</td>
</tr>
<tr>
<td>type</td>
<td>name=password</td>
<td>${password}</td>
</tr>
<tr>
<td>click</td>
<td>//button[@data-i18n='Add OPML']</td>
<td></td>
</tr>
<tr>
<td>pause</td>
<td>1000</td>
<td></td>
</tr>
<tr>
<td>assertTextNotPresent</td>
<td>Failed to access OPML URL</td>
<td></td>
</tr>
<tr>
<td>pause</td>
<td>500</td>
<td></td>
</tr>
<tr>
<td>waitForTextPresent</td>
<td>Monitoring Promises Status</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//button[contains(@class, 'sync-all')]</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//a[@href='#page=settings_configurator']</td>
<td></td>
</tr>
<tr>
<td>pause</td>
<td>2000</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//table[contains(@class, 'opml-tablelinks')]</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>${opml_url}</td>
<td></td>
</tr>
<tr>
<td>storeElementPresent</td>
<td>//table[contains(@class, 'opml-tablelinks')]/tbody/tr[1]/td[3]/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>hosting_title</td>
</tr>
<tr>
<td>click</td>
<td>//button[contains(@class, 'sync-all')]</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[@href='#page=hosting_subscription_list']</td>
<td></td>
</tr>
<tr>
<td>pause</td>
<td>2000</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>${hosting_title}</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//table[contains(@class, 'instance-overview')]/tbody/tr[1]/td[1]/a</td>
<td></td>
</tr>
<tr>
<td>pause</td>
<td>2000</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>${hosting_title}</td>
<td></td>
</tr>
<tr>
<td>open</td>
<td>${base_url}/web_site_module/monitoring_render_js/app/</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//button[@data-i18n='Menu']</td>
<td></td>
</tr>
<tr>
<td>pause</td>
<td>500</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//span[@data-i18n="Monitoring Promises Status"]</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>${hosting_title}</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//table[contains(@class, 'ui-responsive')]/tbody/tr[1]/td[1]/a</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//button[@data-i18n='Menu']</td>
<td></td>
</tr>
<tr>
<td>pause</td>
<td>2000</td>
<td></td>
</tr>
<tr>
<td>open</td>
<td>${base_url}/web_page_module/Zuite_waitForActivities</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Done.</td>
<td></td>
</tr>
<tr>
<td>open</td>
<td>${base_url}/web_site_module/monitoring_render_js/app/#page=settings_configurator</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//button[@data-i18n='Menu']</td>
<td></td>
</tr>
<tr>
<td>pause</td>
<td>500</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//table[contains(@class, 'opml-tablelinks')]/tbody/tr[1]/td[3]/a</td>
<td></td>
</tr>
<tr>
<td>pause</td>
<td>500</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//button[@data-i18n='Add OPML']</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//label[contains(@class, 'configure-auth')]</td>
<td></td>
</tr>
<tr>
<td>pause</td>
<td>500</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//label[@data-i18n="Confirm New Password:"]</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>name=new_password_confirm</td>
<td>${password}</td>
</tr>
<tr>
<td>type</td>
<td>name=new_password</td>
<td>${password}</td>
</tr>
<tr>
<td>click</td>
<td>//button[@data-i18n='Add OPML']</td>
<td></td>
</tr>
<tr>
<td>pause</td>
<td>2000</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//button[contains(@class, 'sync-all')]</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//button[contains(@class, 'sync-all')]</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>//input[@name='opml-all']</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//a[contains(@class, 'opml-delete')]</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//button[@data-i18n='Menu']</td>
<td></td>
</tr>
<tr>
<td>pause</td>
<td>500</td>
<td></td>
</tr>
<tr>
<td>assertTextNotPresent</td>
<td>${opml_url}</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//a[@href='#page=hosting_subscription_list']</td>
<td></td>
</tr>
<tr>
<td>pause</td>
<td>2000</td>
<td></td>
</tr>
<tr>
<td>assertTextNotPresent</td>
<td>${hosting_title}</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>
\ No newline at end of file
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Test Component" module="erp5.portal_type"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_recorded_property_dict</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>default_reference</string> </key>
<value> <string>testFunctionalOfficejsMonitoring</string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>test.erp5.testFunctionalOfficejsMonitoring</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Test Component</string> </value>
</item>
<item>
<key> <string>sid</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>text_content_error_message</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>text_content_warning_message</string> </key>
<value>
<tuple>
<string>W:161, 2: Dangerous default value [] as argument (dangerous-default-value)</string>
</tuple>
</value>
</item>
<item>
<key> <string>version</string> </key>
<value> <string>erp5</string> </value>
</item>
<item>
<key> <string>workflow_history</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
</value>
</item>
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<global name="PersistentMapping" module="Persistence.mapping"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>data</string> </key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</pickle>
</record>
<record id="3" aka="AAAAAAAAAAM=">
<pickle>
<global name="PersistentMapping" module="Persistence.mapping"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>data</string> </key>
<value>
<dictionary>
<item>
<key> <string>component_validation_workflow</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record id="4" aka="AAAAAAAAAAQ=">
<pickle>
<global name="WorkflowHistoryList" module="Products.ERP5Type.patches.WorkflowTool"/>
</pickle>
<pickle>
<tuple>
<none/>
<list>
<dictionary>
<item>
<key> <string>action</string> </key>
<value> <string>validate</string> </value>
</item>
<item>
<key> <string>validation_state</string> </key>
<value> <string>validated</string> </value>
</item>
</dictionary>
</list>
</tuple>
</pickle>
</record>
</ZopeData>
Copyright (C) 2016 Nexedi SA
\ No newline at end of file
erp5_ui_test_core
erp5_ui_test
erp5_web_monitoring
\ No newline at end of file
Officejs Monitoring ui test
\ No newline at end of file
GPL
\ No newline at end of file
portal_tests/web_monitoring_ui_zuite
portal_tests/web_monitoring_ui_zuite/**
\ No newline at end of file
test.erp5.testFunctionalOfficejsMonitoring
\ No newline at end of file
erp5_full_text_mroonga_catalog
\ No newline at end of file
erp5_web_monitoring_ui_test
\ No newline at end of file
0.1
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment