Commit 6d7dc62f authored by Charles's avatar Charles

Add Create Data Descriptor Test

parent 8ee02b59
Pipeline #1156 skipped
<?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>testCreateDataDescriptor</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 Bread Crumbs</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">Test Data Descriptor Creation Form</td></tr>
</thead><tbody>
<tal:block metal:use-macro="here/PTZuite_CommonTemplate/macros/init" />
<!-- First Fill out and submit Form -->
<tr>
<td>open</td>
<td>${base_url}/data_descriptor_module/DataDescriptor_viewCreateDataDescriptorTypeDialog</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Name a new data descriptor type and property sheet.</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>field_your_data_type_name</td>
<td>J7</td>
</tr>
<tr>
<td>type</td>
<td>field_your_descriptor_id</td>
<td>J7</td>
</tr>
<tr>
<td>type</td>
<td>field_your_property_sheet_name</td>
<td>J7</td>
</tr>
<tr>
<td>select</td>
<td>field_your_portal_skins_folder</td>
<td>data_descriptors</td>
</tr>
<tr>
<td>type</td>
<td>field_your_field_1</td>
<td>J_1</td>
</tr>
<tr>
<td>select</td>
<td>field_your_field_1_type</td>
<td>Date</td>
</tr>
<tr>
<td>select</td>
<td>field_your_field_1_visibility</td>
<td>Column</td>
</tr>
<tr>
<td>type</td>
<td>field_your_field_2</td>
<td>J_2</td>
</tr>
<tr>
<td>select</td>
<td>field_your_field_2_type</td>
<td>Integer</td>
</tr>
<tr>
<td>select</td>
<td>field_your_field_2_visibility</td>
<td>More Columns</td>
</tr>
<tr>
<td>type</td>
<td>field_your_field_3</td>
<td>J_3</td>
</tr>
<tr>
<td>select</td>
<td>field_your_field_3_type</td>
<td>String</td>
</tr>
<tr>
<td>select</td>
<td>field_your_field_3_visibility</td>
<td>Hidden</td>
</tr>
<tr>
<td>type</td>
<td>field_your_field_4</td>
<td>J_4</td>
</tr>
<tr>
<td>select</td>
<td>field_your_field_4_type</td>
<td>String</td>
</tr>
<tr>
<td>select</td>
<td>field_your_field_4_visibility</td>
<td>More Columns</td>
</tr>
<tr>
<td>type</td>
<td>field_your_field_5</td>
<td>J_5</td>
</tr>
<tr>
<td>select</td>
<td>field_your_field_5_type</td>
<td>String</td>
</tr>
<tr>
<td>select</td>
<td>field_your_field_5_visibility</td>
<td>Column</td>
</tr>
<tr>
<td>type</td>
<td>field_your_field_6</td>
<td>J_6</td>
</tr>
<tr>
<td>select</td>
<td>field_your_field_6_type</td>
<td>Integer</td>
</tr>
<tr>
<td>select</td>
<td>field_your_field_6_visibility</td>
<td>Hidden</td>
</tr>
<tr>
<td>type</td>
<td>field_your_field_7</td>
<td>J_7</td>
</tr>
<tr>
<td>select</td>
<td>field_your_field_7_type</td>
<td>Float</td>
</tr>
<tr>
<td>select</td>
<td>field_your_field_7_visibility</td>
<td>Hidden</td>
</tr>
<tr>
<td>type</td>
<td>field_your_field_8</td>
<td>J_8</td>
</tr>
<tr>
<td>select</td>
<td>field_your_field_8_type</td>
<td>Float</td>
</tr>
<tr>
<td>select</td>
<td>field_your_field_8_visibility</td>
<td>Hidden</td>
</tr>
<tr>
<td>type</td>
<td>field_your_field_9</td>
<td>J_9</td>
</tr>
<tr>
<td>select</td>
<td>field_your_field_9_type</td>
<td>Float</td>
</tr>
<tr>
<td>select</td>
<td>field_your_field_9_visibility</td>
<td>Hidden</td>
</tr>
<tr>
<td>type</td>
<td>field_your_field_10</td>
<td>J_10</td>
</tr>
<tr>
<td>select</td>
<td>field_your_field_10_type</td>
<td>Integer</td>
</tr>
<tr>
<td>select</td>
<td>field_your_field_10_visibility</td>
<td>Hidden</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//button[@class='bt-med dialog_submit_button']</td>
<td></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>Data Descriptor Created.</td>
<td></td>
</tr>
<!-- Go to Data Descriptor Module -->
<tr>
<td>select</td>
<td>select_module</td>
<td>Data Descriptors</td>
</tr>
<!-- Add new Data Descriptor -->
<tr>
<td>selectAndWait</td>
<td>select_action</td>
<td>Add J7</td>
</tr>
<!-- Check that all fields are present -->
<tr>
<td>verifyTextPresent</td>
<td>J_1</td>
<td></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>J_2</td>
<td></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>J_3</td>
<td></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>J_4</td>
<td></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>J_5</td>
<td></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>J_6</td>
<td></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>J_7</td>
<td></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>J_8</td>
<td></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>J_9</td>
<td></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>J_10</td>
<td></td>
</tr>
<!-- Insert some values -->
<tr>
<td>type</td>
<td>subfield_field_my_j_1_year</td>
<td>2016</td>
</tr>
<tr>
<td>type</td>
<td>subfield_field_my_j_1_month</td>
<td>08</td>
</tr>
<tr>
<td>type</td>
<td>subfield_field_my_j_1_day</td>
<td>22</td>
</tr>
<tr>
<td>type</td>
<td>field_my_j_2</td>
<td>22</td>
</tr>
<tr>
<td>type</td>
<td>field_my_j_3</td>
<td>String 1</td>
</tr>
<tr>
<td>type</td>
<td>field_my_j_4</td>
<td>String 4</td>
</tr>
<tr>
<td>type</td>
<td>field_my_j_5</td>
<td>22 Strings</td>
</tr>
<tr>
<td>type</td>
<td>field_my_j_6</td>
<td>2313</td>
</tr>
<tr>
<td>type</td>
<td>field_my_j_7</td>
<td>22.77</td>
</tr>
<tr>
<td>type</td>
<td>field_my_j_8</td>
<td>3.14159</td>
</tr>
<tr>
<td>type</td>
<td>field_my_j_9</td>
<td>.4</td>
</tr>
<tr>
<td>type</td>
<td>field_my_j_10</td>
<td>0</td>
</tr>
<!-- Save -->
<tr>
<td>clickAndWait</td>
<td>//button[@class='save']</td>
<td></td>
</tr>
<!--
<tr>
<td>clickAndWait</td>
<td>link=Metadata</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>field_my_title</td>
<td>test data descriptor</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//button[@class='save']</td>
<td></td>
</tr>
-->
<!-- Open again the created data descriptor -->
<tr>
<td>select</td>
<td>select_module</td>
<td>Data Descriptors</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Data Descriptors</td>
<td></td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td>30000</td>
<td></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>J7</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=J7</td>
<td></td>
</tr>
<!-- Check that edited values are present -->
<tr>
<td>verifyValue</td>
<td>subfield_field_my_j_1_year</td>
<td>2016</td>
</tr>
<tr>
<td>verifyValue</td>
<td>subfield_field_my_j_1_month</td>
<td>08</td>
</tr>
<tr>
<td>verifyValue</td>
<td>subfield_field_my_j_1_day</td>
<td>22</td>
</tr>
<tr>
<td>verifyValue</td>
<td>field_my_j_2</td>
<td>22</td>
</tr>
<tr>
<td>verifyValue</td>
<td>field_my_j_3</td>
<td>String 1</td>
</tr>
<tr>
<td>verifyValue</td>
<td>field_my_j_4</td>
<td>String 4</td>
</tr>
<tr>
<td>verifyValue</td>
<td>field_my_j_5</td>
<td>22 Strings</td>
</tr>
<tr>
<td>verifyValue</td>
<td>field_my_j_6</td>
<td>2313</td>
</tr>
<tr>
<td>verifyValue</td>
<td>field_my_j_7</td>
<td>22.77</td>
</tr>
<tr>
<td>verifyValue</td>
<td>field_my_j_8</td>
<td>3.14159</td>
</tr>
<tr>
<td>verifyValue</td>
<td>field_my_j_9</td>
<td>0.4</td>
</tr>
<tr>
<td>verifyValue</td>
<td>field_my_j_10</td>
<td>0</td>
</tr>
</tbody></table>
</body>
</html>
\ No newline at end of file
portal_tests/data_descriptor_zuite/**
\ 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