Commit b88fed74 authored by Roque Porchetto's avatar Roque Porchetto

erp5_wendelin_telecom_UI: zelenium test for basic navigation

parent 9a3fb415
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Data Descriptor" module="erp5.portal_type"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_local_properties</string> </key>
<value>
<tuple>
<dictionary>
<item>
<key> <string>id</string> </key>
<value> <string>reference</string> </value>
</item>
<item>
<key> <string>type</string> </key>
<value> <string>string</string> </value>
</item>
</dictionary>
</tuple>
</value>
</item>
<item>
<key> <string>description</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>fake_descriptor_for_UI_test</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Data Descriptor</string> </value>
</item>
<item>
<key> <string>reference</string> </key>
<value> <string>fake_descriptor_for_UI_test</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Data Set" module="erp5.portal_type"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_Access_contents_information_Permission</string> </key>
<value>
<tuple>
<string>Assignee</string>
<string>Assignor</string>
<string>Associate</string>
<string>Auditor</string>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>_Add_portal_content_Permission</string> </key>
<value>
<tuple>
<string>Assignee</string>
<string>Assignor</string>
<string>Associate</string>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>_Modify_portal_content_Permission</string> </key>
<value>
<tuple>
<string>Assignee</string>
<string>Assignor</string>
<string>Associate</string>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>_View_Permission</string> </key>
<value>
<tuple>
<string>Assignee</string>
<string>Assignor</string>
<string>Associate</string>
<string>Auditor</string>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>default_reference</string> </key>
<value> <string>test_dataset</string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>fake_dataset_for_UI_test</string> </value>
</item>
<item>
<key> <string>language</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Data Set</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Fake Data for test</string> </value>
</item>
<item>
<key> <string>workflow_history</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</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>
<item>
<key> <string>edit_workflow</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
</value>
</item>
<item>
<key> <string>validation_workflow</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record id="3" aka="AAAAAAAAAAM=">
<pickle>
<global name="WorkflowHistoryList" module="Products.ERP5Type.patches.WorkflowTool"/>
</pickle>
<pickle>
<tuple>
<none/>
<list>
<dictionary>
<item>
<key> <string>action</string> </key>
<value> <string>edit</string> </value>
</item>
<item>
<key> <string>actor</string> </key>
<value> <string>zope</string> </value>
</item>
<item>
<key> <string>comment</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>error_message</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>960.14013.2461.42171</string> </value>
</item>
<item>
<key> <string>state</string> </key>
<value> <string>current</string> </value>
</item>
<item>
<key> <string>time</string> </key>
<value>
<object>
<klass>
<global name="DateTime" module="DateTime.DateTime"/>
</klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>1498134595.24</float>
<string>UTC</string>
</tuple>
</state>
</object>
</value>
</item>
</dictionary>
</list>
</tuple>
</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>actor</string> </key>
<value> <string>zope</string> </value>
</item>
<item>
<key> <string>comment</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>error_message</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>time</string> </key>
<value>
<object>
<klass>
<global name="DateTime" module="DateTime.DateTime"/>
</klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>1498123982.11</float>
<string>UTC</string>
</tuple>
</state>
</object>
</value>
</item>
<item>
<key> <string>validation_state</string> </key>
<value> <string>validated</string> </value>
</item>
</dictionary>
</list>
</tuple>
</pickle>
</record>
</ZopeData>
portal = context.getPortalObject()
portal_catalog = portal.portal_catalog
REFERENCE_SEPARATOR = portal.getIngestionReferenceDictionary()["reference_separator"]
NONE = portal.getIngestionReferenceDictionary()["none_extension"]
# --------------- FAKE DATA SET ---------------------
reference = "test_dataset"
......@@ -17,8 +21,19 @@ if len(result) is 0:
title = "Fake Data for test")
data_set.validate()
reference = REFERENCE_SEPARATOR.join([reference, "fake_data", NONE])
# --------------- FAKE DATA STREAM ---------------------
portal_type = "Data Stream"
data_stream = portal.data_stream_module.newContent(
portal_type = portal_type,
reference = reference,
title = "Fake Data for test")
data_stream.validate()
# --------------- FAKE DATA DESCRIPTOR ---------------------
reference = "test_dataset_fake_data_descriptor"
portal_type = "Data Descriptor"
data_descriptor = portal.data_descriptor_module.newContent(
......
......@@ -43,6 +43,35 @@
<td>refresh</td>
<td></td>
</tr>
<!-- Check home page -->
<!-- Wait for gadget to be loaded
<tr>
<td>waitForElementPresent</td>
<td>//div[@data-gadget-url='${base_url}/web_site_module/fif_data_runner/gadget_erp5_page_home.html']</td>
<td></td>
</tr>
<tr>
<td>waitForTextPresent</td>
<td>Big Data Sharing Platform</td>
<td></td>
</tr>
-->
<!-- Check data lake link
<tr>
<td>assertElementPresent</td>
<td>//div[@data-gadget-url='${base_url}/web_site_module/fif_data_runner/gadget_erp5_page_home.html']//a[text()='data sets list' and contains(@href, '?page=fifdata')]</td>
<td></td>
</tr>
-->
<!-- Follow data lake link
<tr>
<td>click</td>
<td>//div[@data-gadget-url='${base_url}/web_site_module/fif_data_runner/gadget_erp5_page_home.html']//a[text()='data sets list' and contains(@href, '?page=fifdata')]</td>
<td></td>
</tr>
-->
<!-- Check Dataset list -->
<tr>
<td>waitForElementPresent</td>
<td>//div[@data-gadget-scope="field_listbox"]</td>
......@@ -121,7 +150,7 @@
<tr>
<td>assertTextPresent</td>
<td>test_dataset_fake_data_descriptor</td>
<td>test_dataset/fake_data/none</td>
<td></td>
</tr>
......
......@@ -24,7 +24,13 @@
</item>
<item>
<key> <string>id</string> </key>
<value> <string>test.erp5.wendelin.testTelecomZeleniumCore</string> </value>
<value> <string>test.erp5.testTelecomZeleniumCore</string> </value>
</item>
<item>
<key> <string>language</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>portal_type</string> </key>
......
portal_skins/erp5_ui_test/TelecomTestUI_*
image_module/fif_*
web_page_module/*fif_*
web_site_module/fif_data_runner
web_site_module/fif_data_runner/**
web_page_module/fif_*
web_page_module/gadget_fif_*
data_set_module/fake_dataset_for_UI_test
data_descriptor_module/fake_descriptor_for_UI_test
web_page_module/rjs_gadget_erp5_pt_form_dialog_js
\ No newline at end of file
image_module/fif_*
\ No newline at end of file
portal_skins/erp5_ui_test/TelecomTestUI_*
image_module/fif_*
web_page_module/*fif_*
web_site_module/fif_data_runner
web_site_module/fif_data_runner/**
web_page_module/fif_*
web_page_module/gadget_fif_*
data_set_module/fake_dataset_for_UI_test
data_descriptor_module/fake_descriptor_for_UI_test
web_page_module/rjs_gadget_erp5_pt_form_dialog_js
\ No newline at end of file
data_descriptor_module/fake_descriptor_for_UI_test
data_set_module/fake_dataset_for_UI_test
image_module/fif_*
portal_skins/erp5_ui_test/TelecomTestUI_*
portal_tests/telecom_renderjs_ui_zuite
portal_tests/telecom_renderjs_ui_zuite/*
......
test.erp5.wendelin.testTelecomZeleniumCore
\ No newline at end of file
test.erp5.testTelecomZeleniumCore
\ 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