Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin
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
Charles
wendelin
Commits
6d7dc62f
Commit
6d7dc62f
authored
Aug 04, 2016
by
Charles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Create Data Descriptor Test
parent
8ee02b59
Pipeline
#1156
skipped
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
540 additions
and
0 deletions
+540
-0
bt5/erp5_wendelin_development/PathTemplateItem/portal_tests/data_descriptor_zuite/testCreateDataDescriptor.xml
..._tests/data_descriptor_zuite/testCreateDataDescriptor.xml
+58
-0
bt5/erp5_wendelin_development/PathTemplateItem/portal_tests/data_descriptor_zuite/testCreateDataDescriptor.zpt
..._tests/data_descriptor_zuite/testCreateDataDescriptor.zpt
+481
-0
bt5/erp5_wendelin_development/bt/template_path_list
bt5/erp5_wendelin_development/bt/template_path_list
+1
-0
No files found.
bt5/erp5_wendelin_development/PathTemplateItem/portal_tests/data_descriptor_zuite/testCreateDataDescriptor.xml
0 → 100644
View file @
6d7dc62f
<?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>
bt5/erp5_wendelin_development/PathTemplateItem/portal_tests/data_descriptor_zuite/testCreateDataDescriptor.zpt
0 → 100644
View file @
6d7dc62f
<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
bt5/erp5_wendelin_development/bt/template_path_list
0 → 100644
View file @
6d7dc62f
portal_tests/data_descriptor_zuite/**
\ No newline at end of file
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