Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
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
Ivan Tyagov
slapos.core
Commits
92fe3d57
Commit
92fe3d57
authored
Jul 07, 2020
by
Lu Xu
👀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove slapos_jio_zh_ui_test BT5
parent
901078d4
Changes
80
Hide whitespace changes
Inline
Side-by-side
Showing
80 changed files
with
2 additions
and
9569 deletions
+2
-9569
master/bt5/slapos_configurator/SkinTemplateItem/portal_skins/slapos_configurator/TemplateTool_getSlapOSMasterBusinessTemplateList.py
...rator/TemplateTool_getSlapOSMasterBusinessTemplateList.py
+0
-1
master/bt5/slapos_erp5/TestTemplateItem/portal_components/test.erp5.testSlapOSERP5SkinSelection.py
...ortal_components/test.erp5.testSlapOSERP5SkinSelection.py
+1
-1
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite.xml
..._test/PathTemplateItem/portal_tests/slaposjs_zh_zuite.xml
+0
-26
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSAccount.xml
...em/portal_tests/slaposjs_zh_zuite/testSlapOSJSAccount.xml
+0
-58
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSAccount.zpt
...em/portal_tests/slaposjs_zh_zuite/testSlapOSJSAccount.zpt
+0
-188
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSAccountCertificate.xml
...ests/slaposjs_zh_zuite/testSlapOSJSAccountCertificate.xml
+0
-58
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSAccountCertificate.zpt
...ests/slaposjs_zh_zuite/testSlapOSJSAccountCertificate.zpt
+0
-200
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSAccountChangeCurrentPassword.xml
...sjs_zh_zuite/testSlapOSJSAccountChangeCurrentPassword.xml
+0
-58
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSAccountChangeCurrentPassword.zpt
...sjs_zh_zuite/testSlapOSJSAccountChangeCurrentPassword.zpt
+0
-119
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSAccountForceReLogin.xml
...sts/slaposjs_zh_zuite/testSlapOSJSAccountForceReLogin.xml
+0
-58
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSAccountForceReLogin.zpt
...sts/slaposjs_zh_zuite/testSlapOSJSAccountForceReLogin.zpt
+0
-192
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSAccountLogin.xml
...rtal_tests/slaposjs_zh_zuite/testSlapOSJSAccountLogin.xml
+0
-58
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSAccountLogin.zpt
...rtal_tests/slaposjs_zh_zuite/testSlapOSJSAccountLogin.zpt
+0
-225
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSAccountRemoveCurrentLogin.xml
...aposjs_zh_zuite/testSlapOSJSAccountRemoveCurrentLogin.xml
+0
-58
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSAccountRemoveCurrentLogin.zpt
...aposjs_zh_zuite/testSlapOSJSAccountRemoveCurrentLogin.zpt
+0
-111
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSAccountToken.xml
...rtal_tests/slaposjs_zh_zuite/testSlapOSJSAccountToken.xml
+0
-58
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSAccountToken.zpt
...rtal_tests/slaposjs_zh_zuite/testSlapOSJSAccountToken.zpt
+0
-92
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSBasicNavigation.xml
...l_tests/slaposjs_zh_zuite/testSlapOSJSBasicNavigation.xml
+0
-58
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSBasicNavigation.zpt
...l_tests/slaposjs_zh_zuite/testSlapOSJSBasicNavigation.zpt
+0
-274
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSInvoice.xml
...em/portal_tests/slaposjs_zh_zuite/testSlapOSJSInvoice.xml
+0
-58
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSInvoice.zpt
...em/portal_tests/slaposjs_zh_zuite/testSlapOSJSInvoice.zpt
+0
-121
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSNetwork.xml
...em/portal_tests/slaposjs_zh_zuite/testSlapOSJSNetwork.xml
+0
-58
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSNetwork.zpt
...em/portal_tests/slaposjs_zh_zuite/testSlapOSJSNetwork.zpt
+0
-114
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSNetworkSharedByOrganisation.xml
...osjs_zh_zuite/testSlapOSJSNetworkSharedByOrganisation.xml
+0
-58
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSNetworkSharedByOrganisation.zpt
...osjs_zh_zuite/testSlapOSJSNetworkSharedByOrganisation.zpt
+0
-276
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSNetworkSharedByProject.xml
.../slaposjs_zh_zuite/testSlapOSJSNetworkSharedByProject.xml
+0
-58
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSNetworkSharedByProject.zpt
.../slaposjs_zh_zuite/testSlapOSJSNetworkSharedByProject.zpt
+0
-272
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSOrganisation.xml
...rtal_tests/slaposjs_zh_zuite/testSlapOSJSOrganisation.xml
+0
-58
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSOrganisation.zpt
...rtal_tests/slaposjs_zh_zuite/testSlapOSJSOrganisation.zpt
+0
-71
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSOrganisationInvitation.xml
.../slaposjs_zh_zuite/testSlapOSJSOrganisationInvitation.xml
+0
-58
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSOrganisationInvitation.zpt
.../slaposjs_zh_zuite/testSlapOSJSOrganisationInvitation.zpt
+0
-203
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSProject.xml
...em/portal_tests/slaposjs_zh_zuite/testSlapOSJSProject.xml
+0
-58
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSProject.zpt
...em/portal_tests/slaposjs_zh_zuite/testSlapOSJSProject.zpt
+0
-90
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSProjectInvitation.xml
...tests/slaposjs_zh_zuite/testSlapOSJSProjectInvitation.xml
+0
-58
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSProjectInvitation.zpt
...tests/slaposjs_zh_zuite/testSlapOSJSProjectInvitation.zpt
+0
-149
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSResetPasswordByMail.xml
...sts/slaposjs_zh_zuite/testSlapOSJSResetPasswordByMail.xml
+0
-58
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSResetPasswordByMail.zpt
...sts/slaposjs_zh_zuite/testSlapOSJSResetPasswordByMail.zpt
+0
-201
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSServer.xml
...tem/portal_tests/slaposjs_zh_zuite/testSlapOSJSServer.xml
+0
-58
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSServer.zpt
...tem/portal_tests/slaposjs_zh_zuite/testSlapOSJSServer.zpt
+0
-535
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSServerSharedByOrganisation.xml
...posjs_zh_zuite/testSlapOSJSServerSharedByOrganisation.xml
+0
-58
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSServerSharedByOrganisation.zpt
...posjs_zh_zuite/testSlapOSJSServerSharedByOrganisation.zpt
+0
-271
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSServerSharedByProject.xml
...s/slaposjs_zh_zuite/testSlapOSJSServerSharedByProject.xml
+0
-58
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSServerSharedByProject.zpt
...s/slaposjs_zh_zuite/testSlapOSJSServerSharedByProject.zpt
+0
-239
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSServerToken.xml
...ortal_tests/slaposjs_zh_zuite/testSlapOSJSServerToken.xml
+0
-58
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSServerToken.zpt
...ortal_tests/slaposjs_zh_zuite/testSlapOSJSServerToken.zpt
+0
-105
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSService.xml
...em/portal_tests/slaposjs_zh_zuite/testSlapOSJSService.xml
+0
-58
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSService.zpt
...em/portal_tests/slaposjs_zh_zuite/testSlapOSJSService.zpt
+0
-226
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSServiceDuplicatedRequest.xml
...laposjs_zh_zuite/testSlapOSJSServiceDuplicatedRequest.xml
+0
-58
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSServiceDuplicatedRequest.zpt
...laposjs_zh_zuite/testSlapOSJSServiceDuplicatedRequest.zpt
+0
-244
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSServiceJSONSerialisation.xml
...laposjs_zh_zuite/testSlapOSJSServiceJSONSerialisation.xml
+0
-58
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSServiceJSONSerialisation.zpt
...laposjs_zh_zuite/testSlapOSJSServiceJSONSerialisation.zpt
+0
-328
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSServiceSharedByOrganisation.xml
...osjs_zh_zuite/testSlapOSJSServiceSharedByOrganisation.xml
+0
-58
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSServiceSharedByOrganisation.zpt
...osjs_zh_zuite/testSlapOSJSServiceSharedByOrganisation.zpt
+0
-416
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSServiceSharedByProject.xml
.../slaposjs_zh_zuite/testSlapOSJSServiceSharedByProject.xml
+0
-58
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSServiceSharedByProject.zpt
.../slaposjs_zh_zuite/testSlapOSJSServiceSharedByProject.zpt
+0
-412
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSServiceSlave.xml
...rtal_tests/slaposjs_zh_zuite/testSlapOSJSServiceSlave.xml
+0
-58
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSServiceSlave.zpt
...rtal_tests/slaposjs_zh_zuite/testSlapOSJSServiceSlave.zpt
+0
-179
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSSite.xml
...eItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSSite.xml
+0
-58
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSSite.zpt
...eItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSSite.zpt
+0
-115
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSSubscribe.xml
.../portal_tests/slaposjs_zh_zuite/testSlapOSJSSubscribe.xml
+0
-58
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSSubscribe.zpt
.../portal_tests/slaposjs_zh_zuite/testSlapOSJSSubscribe.zpt
+0
-253
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSSubscriptionAccessDenied.xml
...laposjs_zh_zuite/testSlapOSJSSubscriptionAccessDenied.xml
+0
-58
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSSubscriptionAccessDenied.zpt
...laposjs_zh_zuite/testSlapOSJSSubscriptionAccessDenied.zpt
+0
-340
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSTicket.xml
...tem/portal_tests/slaposjs_zh_zuite/testSlapOSJSTicket.xml
+0
-58
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSTicket.zpt
...tem/portal_tests/slaposjs_zh_zuite/testSlapOSJSTicket.zpt
+0
-209
master/bt5/slapos_jio_zh_ui_test/SkinTemplateItem/portal_skins/slapos_zh_ui_test.xml
..._test/SkinTemplateItem/portal_skins/slapos_zh_ui_test.xml
+0
-47
master/bt5/slapos_jio_zh_ui_test/SkinTemplateItem/portal_skins/slapos_zh_ui_test/Zuite_SlapOSZHCommonTemplate.xml
..._skins/slapos_zh_ui_test/Zuite_SlapOSZHCommonTemplate.xml
+0
-79
master/bt5/slapos_jio_zh_ui_test/SkinTemplateItem/portal_skins/slapos_zh_ui_test/Zuite_SlapOSZHCommonTemplate.zpt
..._skins/slapos_zh_ui_test/Zuite_SlapOSZHCommonTemplate.zpt
+0
-659
master/bt5/slapos_jio_zh_ui_test/TestTemplateItem/portal_components/test.erp5.testFunctionalSlapOSUIZHHalStyle.py
..._components/test.erp5.testFunctionalSlapOSUIZHHalStyle.py
+0
-51
master/bt5/slapos_jio_zh_ui_test/TestTemplateItem/portal_components/test.erp5.testFunctionalSlapOSUIZHHalStyle.xml
...components/test.erp5.testFunctionalSlapOSUIZHHalStyle.xml
+0
-124
master/bt5/slapos_jio_zh_ui_test/bt/dependency_list
master/bt5/slapos_jio_zh_ui_test/bt/dependency_list
+0
-2
master/bt5/slapos_jio_zh_ui_test/bt/description
master/bt5/slapos_jio_zh_ui_test/bt/description
+0
-1
master/bt5/slapos_jio_zh_ui_test/bt/license
master/bt5/slapos_jio_zh_ui_test/bt/license
+0
-1
master/bt5/slapos_jio_zh_ui_test/bt/template_format_version
master/bt5/slapos_jio_zh_ui_test/bt/template_format_version
+0
-1
master/bt5/slapos_jio_zh_ui_test/bt/template_path_list
master/bt5/slapos_jio_zh_ui_test/bt/template_path_list
+0
-2
master/bt5/slapos_jio_zh_ui_test/bt/template_skin_id_list
master/bt5/slapos_jio_zh_ui_test/bt/template_skin_id_list
+0
-1
master/bt5/slapos_jio_zh_ui_test/bt/template_test_id_list
master/bt5/slapos_jio_zh_ui_test/bt/template_test_id_list
+0
-1
master/bt5/slapos_jio_zh_ui_test/bt/title
master/bt5/slapos_jio_zh_ui_test/bt/title
+0
-1
master/bt5/slapos_jio_zh_ui_test/bt/version
master/bt5/slapos_jio_zh_ui_test/bt/version
+0
-1
master/tests/__init__.py
master/tests/__init__.py
+1
-2
No files found.
master/bt5/slapos_configurator/SkinTemplateItem/portal_skins/slapos_configurator/TemplateTool_getSlapOSMasterBusinessTemplateList.py
View file @
92fe3d57
...
...
@@ -11,7 +11,6 @@ bt5_installation_list = bt5_update_catalog_list + \
keep_bt5_id_list
=
[
'erp5_ui_test'
,
'erp5_ui_test_core'
,
'slapos_jio_ui_test'
,
'slapos_jio_zh_ui_test'
,
'slapos_category'
,
# XXX erp5_accounting_l10n_fr should be removed when bug is fixed
'erp5_accounting_l10n_fr'
,
...
...
master/bt5/slapos_erp5/TestTemplateItem/portal_components/test.erp5.testSlapOSERP5SkinSelection.py
View file @
92fe3d57
...
...
@@ -30,7 +30,7 @@ class TestSlaposSkinSelection(SlapOSTestCaseMixin):
# but not present on the test.
ignore_list
=
[
# UI testing folders not deployed by Configurator
"slapos_ui_test"
,
"slapos_zh_ui_test"
,
"slapos_ui_test"
,
# Legacy and/or custom bt5 folders
"slapos_vifib"
,
"rapid_space"
,
"rapid_space_ui_test"
]
...
...
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite.xml
deleted
100644 → 0
View file @
901078d4
<?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>
slaposjs_zh_zuite
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSAccount.xml
deleted
100644 → 0
View file @
901078d4
<?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>
testSlapOSJSAccount
</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>
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSAccount.zpt
deleted
100644 → 0
View file @
901078d4
<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 JS Account
</title>
</head>
<body>
<table
cellpadding=
"1"
cellspacing=
"1"
border=
"1"
>
<thead>
<tr>
<td
rowspan=
"1"
colspan=
"3"
>
Test SlapOS JS Account
</td>
</tr>
</thead>
<tbody>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_init"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_login"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_front_page"
/>
<tal:block
define=
"person_name python: 'Demo User Functional'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_account"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(1)', 'footer': '1 记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tr>
<td>
assertElementPresent
</td>
<td>
//label[text()="名"]
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//label[text()="姓"]
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//label[text()="电子邮件"]
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//label[text()="电话号码"]
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//label[text()="地址"]
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//label[text()="邮编"]
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//label[text()="城市"]
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//label[text()="国家"]
</td>
<td></td>
</tr>
<tr>
<td
colspan=
"3"
><b>
Rename user to DEMO A
</b></td>
</tr>
<tr>
<td>
type
</td>
<td>
//input[@id="first_name"]
</td>
<td>
DEMO A
</td>
</tr>
<tr>
<td>
type
</td>
<td>
//input[@id="last_name"]
</td>
<td>
DEMO B
</td>
</tr>
<tr>
<td>
type
</td>
<td>
//input[@id="default_email_text"]
</td>
<td>
demoA@nexedi.com
</td>
</tr>
<!-- Perform an intermediate save to ensure we can edit partial values -->
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/save"
/>
<tr>
<td>
type
</td>
<td>
//textarea[@id="default_address_street_address"]
</td>
<td>
My New Address
</td>
</tr>
<tr>
<td>
type
</td>
<td>
//input[@id="default_address_city"]
</td>
<td>
My New City
</td>
</tr>
<tr>
<td>
type
</td>
<td>
//input[@id="default_address_zip_code"]
</td>
<td>
99999
</td>
</tr>
<tr>
<td>
type
</td>
<td>
//input[@id="default_telephone_coordinate_text"]
</td>
<td>
+55 0192182812
</td>
</tr>
<tr>
<td>
select
</td>
<td>
//select[@id="default_address_region"]
</td>
<td>
Brazil
</td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/save"
/>
<!-- access somewhere else -->
<tal:block
define=
"menu_item python: '站点'; header menu_item; menu_item_data python:'Sites'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_zh"
/>
</tal:block>
<tal:block
define=
"person_name python: 'DEMO A DEMO B'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_account"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//input[@id="default_address_city" and @value="My New City"]
</td>
<td></td>
</tr>
<tr>
<td>
verifyValue
</td>
<td>
//textarea[@id="default_address_street_address"]
</td>
<td>
My New Address
</td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//input[@id="default_address_city" and @value="My New City"]
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//input[@id="default_address_zip_code" and @value="99999"]
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//input[@id="default_telephone_coordinate_text" and @value="+55 0192182812"]
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//select[@id="default_address_region"]/option[text()="Brazil" and @selected="selected"]
</td>
<td></td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_logout"
/>
</tbody>
</table>
</body>
</html>
\ No newline at end of file
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSAccountCertificate.xml
deleted
100644 → 0
View file @
901078d4
<?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>
testSlapOSJSAccountCertificate
</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>
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSAccountCertificate.zpt
deleted
100644 → 0
View file @
901078d4
<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 UI Account Certificate
</title>
</head>
<body>
<table
cellpadding=
"1"
cellspacing=
"1"
border=
"1"
>
<thead>
<tr>
<td
rowspan=
"1"
colspan=
"3"
>
Test SlapOS UI Account Certificate
</td>
</tr>
</thead>
<tbody>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_init"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_login"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_front_page"
/>
<tal:block
define=
"person_name python: 'Demo User Functional'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_account"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(1)', 'footer': '1 记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tr>
<td
colspan=
"3"
><b>
Request User Certificate
</b>
</td>
</tr>
<tal:block
define=
"menu_action python: 'Request Certificate'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_submenu_action"
/>
</tal:block>
<tal:block
define=
"header python: '请求新的证书'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_proceed"
/>
<tal:block
tal:define=
"notification_configuration python: {'class': 'success',
'text': '证书已请求。'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/wait_for_notification"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//textarea[@name="certificate"]
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//textarea[@name="key"]
</td>
<td></td>
</tr>
<tal:block
define=
"header python: '请求新的证书'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_page_header"
/>
</tal:block>
<tr>
<td
colspan=
"3"
><b>
Request User Certificate
</b>
</td>
</tr>
<tal:block
define=
"menu_action python: 'Request Certificate'"
>
<tr>
<td
colspan=
"3"
><b
tal:content=
"python: 'Click on %s' % menu_action"
>
Menu Item
</b></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td
tal:content=
"python: '//div[contains(@data-gadget-url, \'gadget_slapos_header.html\')]//a[@data-i18n=\'%s\']' % menu_action"
>
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td
tal:content=
"python: '//div[contains(@data-gadget-url, \'gadget_slapos_header.html\')]//a[@data-i18n=\'%s\']' % menu_action"
>
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td
tal:content=
"python: '//div[contains(@data-gadget-url, \'gadget_slapos_header.html\')]//a[@data-i18n=\'%s\']' % menu_action"
>
</td>
<td></td>
</tr>
</tal:block>
<tal:block
define=
"header python: '请求新的证书'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_proceed"
/>
<tal:block
tal:define=
"notification_configuration python: {'class': 'success',
'text': '该用户已拥有一个证书,请在请求新的证书之前吊销已有证书。'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/wait_for_notification"
/>
</tal:block>
<tal:block
define=
"header python: '请求新的证书'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_page_header"
/>
</tal:block>
<tr>
<td
colspan=
"3"
><b>
Revoke Certificate
</b></td>
</tr>
<tal:block
define=
"menu_action python: 'Revoke Certificate'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_submenu_action"
/>
</tal:block>
<tal:block
define=
"header python: '吊销用户证书'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_proceed"
/>
<tal:block
tal:define=
"notification_configuration python: {'class': 'success',
'text': '证书已吊销。'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/wait_for_notification"
/>
</tal:block>
<tal:block
define=
"header python: '您的登录账号 : Demo User Functional'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tr>
<td
colspan=
"3"
><b>
Request User Certificate again
</b>
</td>
</tr>
<tal:block
define=
"menu_action python: 'Request Certificate'"
>
<tr>
<td
colspan=
"3"
><b
tal:content=
"python: 'Click on %s' % menu_action"
>
Menu Item
</b></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td
tal:content=
"python: '//div[contains(@data-gadget-url, \'gadget_slapos_header.html\')]//a[@data-i18n=\'%s\']' % menu_action"
>
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td
tal:content=
"python: '//div[contains(@data-gadget-url, \'gadget_slapos_header.html\')]//a[@data-i18n=\'%s\']' % menu_action"
>
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td
tal:content=
"python: '//div[contains(@data-gadget-url, \'gadget_slapos_header.html\')]//a[@data-i18n=\'%s\']' % menu_action"
>
</td>
<td></td>
</tr>
</tal:block>
<tal:block
define=
"header python: '请求新的证书'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_proceed"
/>
<tal:block
tal:define=
"notification_configuration python: {'class': 'success',
'text': '证书已请求。'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/wait_for_notification"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//textarea[@name="certificate"]
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//textarea[@name="key"]
</td>
<td></td>
</tr>
<tal:block
define=
"header python: '请求新的证书'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_logout"
/>
</tbody>
</table>
</body>
</html>
\ No newline at end of file
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSAccountChangeCurrentPassword.xml
deleted
100644 → 0
View file @
901078d4
<?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>
testSlapOSJSAccountChangeCurrentPassword
</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>
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSAccountChangeCurrentPassword.zpt
deleted
100644 → 0
View file @
901078d4
<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 UI Account Certificate
</title>
</head>
<body>
<table
cellpadding=
"1"
cellspacing=
"1"
border=
"1"
>
<thead>
<tr>
<td
rowspan=
"1"
colspan=
"3"
>
Test SlapOS UI Account Certificate
</td>
</tr>
</thead>
<tbody>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_init"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_login"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_front_page"
/>
<tal:block
define=
"person_name python: 'Demo User Functional'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_account"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(1)', 'footer': '1 记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tr>
<td>
verifyTextPresent
</td>
<td>
demo_functional_user
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//a[text()="demo_functional_user"]
</td>
<td></td>
</tr>
<tal:block
define=
"header python: 'Login : demo_functional_user'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tr>
<td>
type
</td>
<td>
//input[@name='password']
</td>
<td>
SoMeOth3rPa$$w0d
</td>
</tr>
<tr>
<td>
type
</td>
<td>
//input[@name='password_confirmation']
</td>
<td>
SoMeOth3rPa$$w0d
</td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/save"
/>
<tr>
<td>
waitForElementPresent
</td>
<td>
//input[@name="__ac_name"]
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//input[@name="__ac_password"]
</td>
<td></td>
</tr>
<tr>
<td>
type
</td>
<td>
__ac_name
</td>
<td>
demo_functional_user
</td>
</tr>
<tr>
<td>
type
</td>
<td>
__ac_password
</td>
<td>
demo_functional_user
</td>
</tr>
<tr>
<td>
clickAndWait
</td>
<td>
WebSite_login:method
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//span[@data-i18n="账号或密码错误。"]
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//span[@data-i18n="账号或密码错误。"]
</td>
<td></td>
</tr>
<tr>
<td>
type
</td>
<td>
__ac_name
</td>
<td>
demo_functional_user
</td>
</tr>
<tr>
<td>
type
</td>
<td>
__ac_password
</td>
<td>
SoMeOth3rPa$$w0d
</td>
</tr>
<tr>
<td>
clickAndWait
</td>
<td>
WebSite_login:method
</td>
<td></td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_front_page"
/>
<tal:block
define=
"person_name python: 'Demo User Functional'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_account"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_logout"
/>
</tbody>
</table>
</body>
</html>
\ No newline at end of file
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSAccountForceReLogin.xml
deleted
100644 → 0
View file @
901078d4
<?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>
testSlapOSJSAccountForceReLogin
</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>
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSAccountForceReLogin.zpt
deleted
100644 → 0
View file @
901078d4
<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 RapidSpace Console Account Page Check
</title>
</head>
<body>
<table
cellpadding=
"1"
cellspacing=
"1"
border=
"1"
>
<thead>
<tr>
<td
rowspan=
"1"
colspan=
"3"
>
Test SlapOS JS Account Force ReLogin
</td>
</tr>
</thead>
<tbody>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_init"
/>
<tr>
<td>
open
</td>
<td>
${base_url}/web_site_module/hostingjs/zh/
</td>
<td></td>
</tr>
<!--
In testSlapOSJSAccountLogin, after visit hostingjs website,
the default user is "zope", so in that test we need to call
hostingjs/WebSite_logout to logout first.
Here we don't call it manually, due to the zope user doesn't
have the correct "me" setting, so we just let the getSettingMe
function redirect us to the login page -->
<tr>
<td>
waitForElementPresent
</td>
<td>
//label[contains(text(), "登录")]
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//input[@name="__ac_name"]
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//input[@name="__ac_password"]
</td>
<td></td>
</tr>
<tr>
<td>
type
</td>
<td>
__ac_name
</td>
<td>
demo_functional_user
</td>
</tr>
<tr>
<td>
type
</td>
<td>
__ac_password
</td>
<td>
demo_functional_user
</td>
</tr>
<tr>
<td>
clickAndWait
</td>
<td>
WebSite_login:method
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[@data-i18n="Login Account"]
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[@data-i18n="Tickets"]
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[@data-i18n="Invoices"]
</td>
<td></td>
</tr>
<!-- Account Tab -->
<tr>
<td>
click
</td>
<td>
//a[@data-i18n="Login Account"]
</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="Add Login"]
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[@data-i18n="Add Organisation"]
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[@data-i18n="Token"]
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[@data-i18n="Request Certificate"]
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[@data-i18n="Revoke Certificate"]
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//label[contains(text(), "名")]
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//label[contains(text(), "姓")]
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//label[contains(text(), "电子邮件")]
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//input[@value="Demo User"]
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//input[@value="Functional"]
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//input[@value="demo@nexedi.com"]
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//h1[contains(text(), "登录账号")]
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[contains(text(), "编号")]
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[contains(text(), "类别")]
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//h1[contains(text(), "组织")]
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//th[contains(text(), "标题")]
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[contains(text(), "编号")]
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//th[contains(text(), "区域")]
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//th[contains(text(), "状态")]
</td>
<td></td>
</tr>
</tbody>
</table>
</body>
</html>
\ No newline at end of file
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSAccountLogin.xml
deleted
100644 → 0
View file @
901078d4
<?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>
testSlapOSJSAccountLogin
</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>
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSAccountLogin.zpt
deleted
100644 → 0
View file @
901078d4
<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 UI Account Login
</title>
</head>
<body>
<table
cellpadding=
"1"
cellspacing=
"1"
border=
"1"
>
<thead>
<tr>
<td
rowspan=
"1"
colspan=
"3"
>
Test SlapOS JS Account Login
</td>
</tr>
</thead>
<tbody>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_init"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_login"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_front_page"
/>
<tal:block
define=
"person_name python: 'Demo User Functional'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_account"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(1)', 'footer': '1 记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tr>
<td
colspan=
"3"
><b>
Create another Login
</b>
</td>
</tr>
<tal:block
define=
"menu_action python: 'Add Login'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_submenu_action"
/>
</tal:block>
<tal:block
define=
"header python: '添加新用户登录'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tr>
<td
colspan=
"3"
><b>
Fill the form
</b>
</td>
</tr>
<tr>
<td>
type
</td>
<td>
//input[@name='reference']
</td>
<td>
demo_test_login_from_testSlapOSJSAccountLogin
</td>
</tr>
<tr>
<td>
type
</td>
<td>
//input[@name='password']
</td>
<td>
demo_test_password_from_testSlapOSJSAccountLogin
</td>
</tr>
<tr>
<td>
type
</td>
<td>
//input[@name='password_confirmation']
</td>
<td>
demo_test_password_from_testSlapOSJSAccountLogin
</td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_proceed"
/>
<tal:block
tal:define=
"notification_configuration python: {'class': 'error',
'text': 'Password value doest not comply with password policy'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/wait_for_notification"
/>
</tal:block>
<tr>
<td>
type
</td>
<td>
//input[@name='password']
</td>
<td>
SoMeOth3rPa$$w0d
</td>
</tr>
<tr>
<td>
type
</td>
<td>
//input[@name='password_confirmation']
</td>
<td>
SoMeOth3rPa$$w0d
</td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_proceed"
/>
<tal:block
tal:define=
"notification_configuration python: {'class': 'success',
'text': '新用户登录已创建。'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/wait_for_notification"
/>
</tal:block>
<tal:block
define=
"header python: '您的登录账号 : Demo User Functional'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_activities_and_front_page"
/>
<tal:block
define=
"person_name python: 'Demo User Functional'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_account"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(2)', 'footer': '2 记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tr>
<td>
verifyTextPresent
</td>
<td>
demo_test_login_from_testSlapOSJSAccountLogin
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//a[text()="demo_test_login_from_testSlapOSJSAccountLogin"]
</td>
<td></td>
</tr>
<tal:block
define=
"header python: 'Login : demo_test_login_from_testSlapOSJSAccountLogin'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_logout"
/>
<tr>
<td>
waitForElementPresent
</td>
<td>
//label[contains(text(), "登录")]
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//input[@name="__ac_name"]
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//input[@name="__ac_password"]
</td>
<td></td>
</tr>
<tr>
<td>
type
</td>
<td>
__ac_name
</td>
<td>
demo_test_login_from_testSlapOSJSAccountLogin
</td>
</tr>
<tr>
<td>
type
</td>
<td>
__ac_password
</td>
<td>
SoMeOth3rPa$$w0d
</td>
</tr>
<tr>
<td>
clickAndWait
</td>
<td>
WebSite_login:method
</td>
<td></td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_front_page"
/>
<tal:block
define=
"person_name python: 'Demo User Functional'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_account"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(2)', 'footer': '2 记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tr>
<td>
verifyTextPresent
</td>
<td>
demo_test_login_from_testSlapOSJSAccountLogin
</td>
<td></td>
</tr>
<tr>
<td>
verifyTextPresent
</td>
<td>
demo_functional_user
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//a[text()="demo_functional_user"]
</td>
<td></td>
</tr>
<tal:block
define=
"header python: 'Login : demo_functional_user'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tal:block
define=
"menu_action python: 'Delete'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_submenu_action"
/>
</tal:block>
<tal:block
define=
"header python: '关闭登录账号: demo_functional_user'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_proceed"
/>
<tal:block
tal:define=
"notification_configuration python: {'class': 'success',
'text': 'Login is Disabled.'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/wait_for_notification"
/>
</tal:block>
<tal:block
define=
"header python: '您的登录账号 : Demo User Functional'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_activities_and_front_page"
/>
<tal:block
define=
"person_name python: 'Demo User Functional'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_account"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(1)', 'footer': '1 记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tr>
<td>
verifyTextNotPresent
</td>
<td>
demo_functional_user
</td>
<td></td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_logout"
/>
</tbody>
</table>
</body>
</html>
\ No newline at end of file
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSAccountRemoveCurrentLogin.xml
deleted
100644 → 0
View file @
901078d4
<?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>
testSlapOSJSAccountRemoveCurrentLogin
</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>
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSAccountRemoveCurrentLogin.zpt
deleted
100644 → 0
View file @
901078d4
<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 UI Account Certificate
</title>
</head>
<body>
<table
cellpadding=
"1"
cellspacing=
"1"
border=
"1"
>
<thead>
<tr>
<td
rowspan=
"1"
colspan=
"3"
>
Test SlapOS UI Account Certificate
</td>
</tr>
</thead>
<tbody>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_init"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_login"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_front_page"
/>
<tal:block
define=
"person_name python: 'Demo User Functional'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_account"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(1)', 'footer': '1 记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tr>
<td>
verifyTextPresent
</td>
<td>
demo_functional_user
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//a[text()="demo_functional_user"]
</td>
<td></td>
</tr>
<tal:block
define=
"header python: 'Login : demo_functional_user'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tal:block
define=
"menu_action python: 'Delete'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_submenu_action"
/>
</tal:block>
<tal:block
define=
"header python: '关闭登录账号: demo_functional_user'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_proceed"
/>
<tal:block
tal:define=
"notification_configuration python: {'class': 'success',
'text': 'Login is Disabled.'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/wait_for_notification"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplate/macros/wait_for_activities"
/>
<tr>
<td>
assertTextPresent
</td>
<td>
Done.
</td>
<td></td>
</tr>
<tr>
<td>
open
</td>
<td>
${base_url}/web_site_module/hostingjs/zh/
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//input[@name="__ac_name"]
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//input[@name="__ac_password"]
</td>
<td></td>
</tr>
<tr>
<td>
type
</td>
<td>
__ac_name
</td>
<td>
demo_functional_user
</td>
</tr>
<tr>
<td>
type
</td>
<td>
__ac_password
</td>
<td>
demo_functional_user
</td>
</tr>
<tr>
<td>
clickAndWait
</td>
<td>
WebSite_login:method
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//span[@data-i18n="账号或密码错误。"]
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//span[@data-i18n="账号或密码错误。"]
</td>
<td></td>
</tr>
</tbody>
</table>
</body>
</html>
\ No newline at end of file
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSAccountToken.xml
deleted
100644 → 0
View file @
901078d4
<?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>
testSlapOSJSAccountToken
</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>
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSAccountToken.zpt
deleted
100644 → 0
View file @
901078d4
<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 JS Account Token
</title>
</head>
<body>
<table
cellpadding=
"1"
cellspacing=
"1"
border=
"1"
>
<thead>
<tr>
<td
rowspan=
"1"
colspan=
"3"
>
Test SlapOS JS Account Token
</td>
</tr>
</thead>
<tbody>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_init"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_login"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_front_page"
/>
<tal:block
define=
"person_name python: 'Demo User Functional'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_account"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(1)', 'footer': '1 记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tr>
<td
colspan=
"3"
><b
tal:content=
"python: 'Click on Token'"
>
Menu Item
</b></td>
</tr>
<tal:block
define=
"menu_action python: 'Token'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_submenu_action"
/>
</tal:block>
<tal:block
define=
"header python: '请求新令牌'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_proceed"
/>
<tal:block
tal:define=
"notification_configuration python: {'class': 'success',
'text': '令牌已请求。'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/wait_for_notification"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//label[text()="您的令牌"]
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//label[text()="您的令牌"]
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td
tal:content=
"python: '//div[contains(@data-gadget-url, \'gadget_erp5_field_string.html\')]//p[contains(text(), \'%s%02d%02d-\')]' % (DateTime().year(),DateTime().month(),DateTime().day())"
>
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td
tal:content=
"python: '//div[contains(@data-gadget-url, \'gadget_erp5_field_string.html\')]//p[contains(text(), \'%s%02d%02d-\')]' % (DateTime().year(),DateTime().month(),DateTime().day())"
>
</td>
<td></td>
</tr>
<tal:block
define=
"header python: '请求新令牌'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_page_header"
/>
</tal:block>
<tal:block
define=
"header python: '您的登录账号 : Demo User Functional'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_logout"
/>
</tbody>
</table>
</body>
</html>
\ No newline at end of file
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSBasicNavigation.xml
deleted
100644 → 0
View file @
901078d4
<?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>
testSlapOSJSBasicNavigation
</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>
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSBasicNavigation.zpt
deleted
100644 → 0
View file @
901078d4
<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 JS Basic Navigation
</title>
</head>
<body>
<table
cellpadding=
"1"
cellspacing=
"1"
border=
"1"
>
<thead>
<tr>
<td
rowspan=
"1"
colspan=
"3"
>
Test SlapOS JS Basic Navigation
</td>
</tr>
</thead>
<tbody>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_init"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_login"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_front_page"
/>
<!-- Access Menu -->
<tr>
<td>
click
</td>
<td>
//button[@data-i18n='Menu']
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//button[@data-i18n='Menu']
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[@data-i18n='Home']
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[@data-i18n='Login Account']
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[@data-i18n='Tickets']
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[@data-i18n='Sites']
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[@data-i18n='Projects']
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[@data-i18n='Invoices']
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[@data-i18n='Services']
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[@data-i18n='Servers']
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[@data-i18n='Networks']
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[@data-i18n='Logout']
</td>
<td></td>
</tr>
<tal:block
define=
"menu_item python: '工单'; header menu_item; menu_item_data python: 'Tickets'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_zh"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_page_header"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_front_page"
/>
</tal:block>
<tal:block
define=
"menu_item python: '站点'; header menu_item; menu_item_data python:'Sites'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_zh"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_page_header"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_front_page"
/>
</tal:block>
<tal:block
define=
"menu_item python: '项目'; header menu_item; menu_item_data python: 'Projects'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_zh"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_page_header"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_front_page"
/>
</tal:block>
<tal:block
define=
"menu_item python: '账单'; header menu_item; menu_item_data python: 'Invoices'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_zh"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_page_header"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_front_page"
/>
</tal:block>
<tal:block
define=
"menu_item python: '服务'; header menu_item; menu_item_data python: 'Services'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_zh"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_page_header"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_front_page"
/>
</tal:block>
<tal:block
define=
"menu_item python: '服务器'; header menu_item; menu_item_data python: 'Servers'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_zh"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_page_header"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_front_page"
/>
</tal:block>
<tal:block
define=
"menu_item python: '网络'; header menu_item; menu_item_data python:'Networks'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_zh"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_page_header"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_front_page"
/>
</tal:block>
<tr>
<td
colspan=
"3"
><b>
Access modules and verify the redirect
</b></td>
</tr>
<tr>
<td>
openAndWait
</td>
<td>
${base_url}/
</td>
<td></td>
</tr>
<tr>
<td>
open
</td>
<td>
${base_url}/web_site_module/hostingjs/zh/#/support_request_module
</td>
<td></td>
</tr>
<tal:block
define=
"menu_item python: '工单'; header menu_item"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tr>
<td>
openAndWait
</td>
<td>
${base_url}/
</td>
<td></td>
</tr>
<tr>
<td>
open
</td>
<td>
${base_url}/web_site_module/hostingjs/zh/#/hosting_subscription_module
</td>
<td></td>
</tr>
<tal:block
define=
"menu_item python: '服务'; header menu_item"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tr>
<td>
openAndWait
</td>
<td>
${base_url}/
</td>
<td></td>
</tr>
<tr>
<td>
open
</td>
<td>
${base_url}/web_site_module/hostingjs/zh/#/computer_module
</td>
<td></td>
</tr>
<tal:block
define=
"menu_item python: '服务器'; header menu_item"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tr>
<td>
openAndWait
</td>
<td>
${base_url}/
</td>
<td></td>
</tr>
<tr>
<td>
open
</td>
<td>
${base_url}/web_site_module/hostingjs/zh/#/accounting_module
</td>
<td></td>
</tr>
<tal:block
define=
"menu_item python: '账单'; header menu_item"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tr>
<td>
openAndWait
</td>
<td>
${base_url}/
</td>
<td></td>
</tr>
<tr>
<td>
open
</td>
<td>
${base_url}/web_site_module/hostingjs/zh/#/project_module
</td>
<td></td>
</tr>
<tal:block
define=
"menu_item python: '项目'; header menu_item"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tr>
<td>
openAndWait
</td>
<td>
${base_url}/
</td>
<td></td>
</tr>
<tr>
<td>
open
</td>
<td>
${base_url}/web_site_module/hostingjs/zh/#/computer_network_module
</td>
<td></td>
</tr>
<tal:block
define=
"menu_item python: '网络'; header menu_item"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tr>
<td>
openAndWait
</td>
<td>
${base_url}/
</td>
<td></td>
</tr>
<tr>
<td>
open
</td>
<td>
${base_url}/web_site_module/hostingjs/zh/#/organisation_module
</td>
<td></td>
</tr>
<tal:block
define=
"menu_item python: '站点'; header menu_item"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//button[@data-i18n='Menu']
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[@data-i18n='Home']
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[@data-i18n='Login Account']
</td>
<td></td>
</tr>
<tal:block
define=
"person_name python: 'Demo User Functional'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_account"
/>
</tal:block>
<tal:block
define=
"header python: '您的登录账号 : Demo User Functional';"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_page_header"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_front_page"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_logout"
/>
</tbody>
</table>
</body>
</html>
\ No newline at end of file
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSInvoice.xml
deleted
100644 → 0
View file @
901078d4
<?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>
testSlapOSJSInvoice
</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>
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSInvoice.zpt
deleted
100644 → 0
View file @
901078d4
<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 UI Invoice
</title>
</head>
<body>
<table
cellpadding=
"1"
cellspacing=
"1"
border=
"1"
>
<thead>
<tr>
<td
rowspan=
"1"
colspan=
"3"
>
Test SlapOS UI Invoice
</td>
</tr>
</thead>
<tbody>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_init"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_login"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/create_fake_invoice"
/>
<tr>
<td>
open
</td>
<td
tal:content=
"python:'${base_url}/web_site_module/hostingjs/zh/'"
></td>
<td></td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_front_page"
/>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[@data-i18n="Login Account"]
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[@data-i18n="Tickets"]
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[@data-i18n="Invoices"]
</td>
<td></td>
</tr>
<!-- Invoice Tab -->
<tr>
<td>
click
</td>
<td>
//a[@data-i18n="Invoices"]
</td>
<td></td>
</tr>
<tal:block
define=
"menu_item python: '账单'; header menu_item; menu_item_data python: 'Invoices'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_zh"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(1)', 'footer': '1 记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[text()='Sun, 20 Oct 2019 00:00:00 GMT']
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//a[text()='Sun, 20 Oct 2019 00:00:00 GMT']
</td>
<td></td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/wait_for_content_loaded"
/>
<!-- check invoice view -->
<!-- Translation data needs to be updated in this case-->
<tal:block
define=
"header python: '发票:Sun, 20 Oct 2019 00:00:00 GMT'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tr>
<td>
assertElementPresent
</td>
<td>
//label[text()="日期"]
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//label[text()="编号"]
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//label[text()="总和"]
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//label[text()="货币"]
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//label[text()="付款状态"]
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//label[text()="下载"]
</td>
<td></td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_logout"
/>
</tbody>
</table>
</body>
</html>
\ No newline at end of file
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSNetwork.xml
deleted
100644 → 0
View file @
901078d4
<?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>
testSlapOSJSNetwork
</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>
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSNetwork.zpt
deleted
100644 → 0
View file @
901078d4
<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 JS NetworkI
</title>
</head>
<body>
<table
cellpadding=
"1"
cellspacing=
"1"
border=
"1"
>
<thead>
<tr>
<td
rowspan=
"1"
colspan=
"3"
>
Test SlapOS JS Network
</td>
</tr>
</thead>
<tbody>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_init"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_login"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_front_page"
/>
<tal:block
define=
"menu_item python: '网络'; header menu_item; menu_item_data python:'Networks'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_zh"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(0)', 'footer': '没有记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tal:block
define=
"title python: 'TEST-SLAPOSJS-NETWORK 0'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/add_simple_with_title"
/>
</tal:block>
<tal:block
tal:define=
"notification_configuration python: {'class': 'success',
'text': '已创建新的网络。'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/wait_for_notification"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/wait_for_content_loaded"
/>
<tal:block
define=
"header python: '计算机网络 :TEST-SLAPOSJS-NETWORK 0'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tr>
<td>
type
</td>
<td>
//input[@id="title"]
</td>
<td>
TEST-SLAPOSJS-NETWORK 1
</td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/save"
/>
<!-- check site -->
<!-- Broken history to return
<tr>
<td>click</td>
<td>//a[@data-i18n="Site : TEST-SLAPOSJS-SET 0"]</td>
<td></td>
</tr>
-->
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_activities_and_front_page"
/>
<tal:block
define=
"menu_item python: '网络'; header menu_item; menu_item_data python: 'Networks'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_zh"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(1)', 'footer': '1 记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[text()="TEST-SLAPOSJS-NETWORK 1"]
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//a[text()="TEST-SLAPOSJS-NETWORK 1"]
</td>
<td></td>
</tr>
<tal:block
define=
"header python: '计算机网络 :TEST-SLAPOSJS-NETWORK 1'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tal:block
tal:define=
"delete_configuration python: {'header_title': '删除网络: TEST-SLAPOSJS-NETWORK 1',
'notification_text': '网络已删除。'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/delete_simple"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_activities_and_front_page"
/>
<tal:block
define=
"menu_item python: '网络'; header menu_item; menu_item_data python: 'Networks'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_zh"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(0)', 'footer': '没有记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_logout"
/>
</tbody>
</table>
</body>
</html>
\ No newline at end of file
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSNetworkSharedByOrganisation.xml
deleted
100644 → 0
View file @
901078d4
<?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>
testSlapOSJSNetworkSharedByOrganisation
</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>
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSNetworkSharedByOrganisation.zpt
deleted
100644 → 0
View file @
901078d4
<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 JS Network Shared By Organisation
</title>
</head>
<body>
<table
cellpadding=
"1"
cellspacing=
"1"
border=
"1"
>
<thead>
<tr>
<td
rowspan=
"1"
colspan=
"3"
>
Test SlapOS JS Network Shared By Organisation
</td>
</tr>
</thead>
<tbody>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_init"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_login"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_front_page"
/>
<tal:block
define=
"document_title python: 'TEST-SLAPOSJS-ORGANISATION-TO-SHARE-NETWORK 0';"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/create_user_organisation"
/>
</tal:block>
<tal:block
define=
"document_title python: 'TEST-SLAPOSJS-NETWORK-BY-ORGASNISATION 0';"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/create_simple_network"
/>
</tal:block>
<tr>
<td
colspan=
"3"
><b
tal:content=
"python: 'Wait index the documents'"
>
Menu Item
</b></td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_activities_and_front_page"
/>
<tal:block
define=
"menu_item python: '网络'; header menu_item; menu_item_data python: 'Networks'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_zh"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(1)', 'footer': '1 记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[text()="TEST-SLAPOSJS-NETWORK-BY-ORGASNISATION 0"]
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//a[text()="TEST-SLAPOSJS-NETWORK-BY-ORGASNISATION 0"]
</td>
<td></td>
</tr>
<tal:block
define=
"header python: '计算机网络 :TEST-SLAPOSJS-NETWORK-BY-ORGASNISATION 0'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tr>
<td
colspan=
"3"
><b
tal:content=
"python: 'Transfer Network to a Organisation'"
>
Menu Item
</b></td>
</tr>
<tal:block
tal:define=
"menu_action python: 'Transfer'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_submenu_action"
/>
</tal:block>
<tal:block
define=
"header python: '转移计算机网络'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//select[@name="destination_section"]
</td>
<td></td>
</tr>
<tr>
<td>
select
</td>
<td>
//select[@name="destination_section"]
</td>
<td>
TEST-SLAPOSJS-ORGANISATION-TO-SHARE-NETWORK 0
</td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_proceed"
/>
<tal:block
tal:define=
"notification_configuration python: {'class': 'success',
'text': '计算机网络已转移。'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/wait_for_notification"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_activities_and_front_page"
/>
<tal:block
define=
"menu_item python: '网络'; header menu_item; menu_item_data python: 'Networks'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_zh"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(1)', 'footer': '1 记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[text()="TEST-SLAPOSJS-NETWORK-BY-ORGASNISATION 0"]
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//a[text()="TEST-SLAPOSJS-NETWORK-BY-ORGASNISATION 0"]
</td>
<td></td>
</tr>
<tal:block
define=
"header python: '计算机网络 :TEST-SLAPOSJS-NETWORK-BY-ORGASNISATION 0'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tr>
<td>
waitForTextPresent
</td>
<td>
TEST-SLAPOSJS-ORGANISATION-TO-SHARE-NETWORK 0
</td>
<td></td>
</tr>
<tal:block
define=
"person_name python: 'Demo User Functional'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_account"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(1)', 'footer': '1 记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[text()="TEST-SLAPOSJS-ORGANISATION-TO-SHARE-NETWORK 0"]
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//a[text()="TEST-SLAPOSJS-ORGANISATION-TO-SHARE-NETWORK 0"]
</td>
<td></td>
</tr>
<tal:block
define=
"header python: '组织 : TEST-SLAPOSJS-ORGANISATION-TO-SHARE-NETWORK 0'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tr>
<td
colspan=
"3"
><b>
Invite User
</b>
</td>
</tr>
<tal:block
define=
"menu_action python: 'Invite User'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_submenu_action"
/>
</tal:block>
<tal:block
define=
"header python: '生成新的邀请链接'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_proceed"
/>
<tal:block
define=
"header python: '生成新的邀请链接'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tal:block
tal:define=
"notification_configuration python: {'class': 'success',
'text': '新的邀请链接已生成。'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/wait_for_notification"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//p[@id="invitation_link"]
</td>
<td></td>
</tr>
<tr>
<td>
storeText
</td>
<td>
//p[@id="invitation_link"]
</td>
<td>
invitation_link
</td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_login_with_another_user"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_front_page"
/>
<tal:block
define=
"person_name python: 'Another Demo User Functional'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_account"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(1)', 'footer': '1 记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(0)', 'footer': '没有记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tr>
<td>
openAndWait
</td>
<td>
${invitation_link}
</td>
<td></td>
</tr>
<tal:block
define=
"header python: '成功...'; "
>
<tr>
<td>
waitForElementPresent
</td>
<td
tal:content=
"python: '//div[contains(@data-gadget-url, \'gadget_slapos_header.html\')]//span[@data-i18n=\'%s\']' % header"
>
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td
tal:content=
"python: '//div[contains(@data-gadget-url, \'gadget_slapos_header.html\')]//span[@data-i18n=\'%s\']' % header"
>
</td>
<td></td>
</tr>
</tal:block>
<tr>
<td>
assertTextPresent
</td>
<td>
You sucessfully join a new organisation: TEST-SLAPOSJS-ORGANISATION-TO-SHARE-NETWORK 0.
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//a[@data-i18n='Continue']
</td>
<td></td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_activities_and_front_page"
/>
<tal:block
define=
"person_name python: 'Another Demo User Functional'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_account"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(1)', 'footer': '1 记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tr>
<td>
waitForTextPresent
</td>
<td>
TEST-SLAPOSJS-ORGANISATION-TO-SHARE-NETWORK 0
</td>
<td></td>
</tr>
<tal:block
define=
"menu_item python: '网络'; header menu_item; menu_item_data python:'Networks'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_zh"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(1)', 'footer': '1 记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[text()="TEST-SLAPOSJS-NETWORK-BY-ORGASNISATION 0"]
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//a[text()="TEST-SLAPOSJS-NETWORK-BY-ORGASNISATION 0"]
</td>
<td></td>
</tr>
<tal:block
define=
"header python: '计算机网络 :TEST-SLAPOSJS-NETWORK-BY-ORGASNISATION 0'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_logout"
/>
</tbody>
</table>
</body>
</html>
\ No newline at end of file
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSNetworkSharedByProject.xml
deleted
100644 → 0
View file @
901078d4
<?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>
testSlapOSJSNetworkSharedByProject
</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>
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSNetworkSharedByProject.zpt
deleted
100644 → 0
View file @
901078d4
<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 JS Network Shared By Project
</title>
</head>
<body>
<table
cellpadding=
"1"
cellspacing=
"1"
border=
"1"
>
<thead>
<tr>
<td
rowspan=
"1"
colspan=
"3"
>
Test SlapOS JS Network Shared By Project
</td>
</tr>
</thead>
<tbody>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_init"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_login"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_front_page"
/>
<tal:block
define=
"document_title python: 'TEST-SLAPOSJS-PROJECT-TO-SHARE-NETWORK 0';"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/create_simple_project"
/>
</tal:block>
<tal:block
define=
"document_title python: 'TEST-SLAPOSJS-NETWORK-BY-PROJECT 0';"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/create_simple_network"
/>
</tal:block>
<tr>
<td
colspan=
"3"
><b
tal:content=
"python: 'Wait index the documents'"
>
Menu Item
</b></td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_activities_and_front_page"
/>
<tal:block
define=
"menu_item python: '网络'; header menu_item; menu_item_data python: 'Networks'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_zh"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(1)', 'footer': '1 记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[text()="TEST-SLAPOSJS-NETWORK-BY-PROJECT 0"]
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//a[text()="TEST-SLAPOSJS-NETWORK-BY-PROJECT 0"]
</td>
<td></td>
</tr>
<tal:block
define=
"header python: '计算机网络 :TEST-SLAPOSJS-NETWORK-BY-PROJECT 0'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tr>
<td
colspan=
"3"
><b
tal:content=
"python: 'Transfer Network to a Project'"
>
Menu Item
</b></td>
</tr>
<tal:block
tal:define=
"menu_action python: 'Transfer'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_submenu_action"
/>
</tal:block>
<tal:block
define=
"header python: '转移计算机网络'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//select[@name="destination_project"]
</td>
<td></td>
</tr>
<tr>
<td>
select
</td>
<td>
//select[@name="destination_project"]
</td>
<td>
TEST-SLAPOSJS-PROJECT-TO-SHARE-NETWORK 0
</td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_proceed"
/>
<tal:block
tal:define=
"notification_configuration python: {'class': 'success',
'text': '计算机网络已转移。'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/wait_for_notification"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_activities_and_front_page"
/>
<tal:block
define=
"menu_item python: '网络'; header menu_item; menu_item_data python: 'Networks'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_zh"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(1)', 'footer': '1 记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[text()="TEST-SLAPOSJS-NETWORK-BY-PROJECT 0"]
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//a[text()="TEST-SLAPOSJS-NETWORK-BY-PROJECT 0"]
</td>
<td></td>
</tr>
<tal:block
define=
"header python: '计算机网络 :TEST-SLAPOSJS-NETWORK-BY-PROJECT 0'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tr>
<td>
waitForTextPresent
</td>
<td>
TEST-SLAPOSJS-PROJECT-TO-SHARE-NETWORK 0
</td>
<td></td>
</tr>
<tal:block
define=
"menu_item python: '项目'; header menu_item; menu_item_data python:'Projects'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_zh"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(1)', 'footer': '1 记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[text()="TEST-SLAPOSJS-PROJECT-TO-SHARE-NETWORK 0"]
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//a[text()="TEST-SLAPOSJS-PROJECT-TO-SHARE-NETWORK 0"]
</td>
<td></td>
</tr>
<tal:block
define=
"header python: '项目 : TEST-SLAPOSJS-PROJECT-TO-SHARE-NETWORK 0'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tr>
<td
colspan=
"3"
><b>
Invite User
</b>
</td>
</tr>
<tal:block
define=
"menu_action python: 'Invite User'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_submenu_action"
/>
</tal:block>
<tal:block
define=
"header python: '生成新的邀请链接'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_proceed"
/>
<tal:block
define=
"header python: '生成新的邀请链接'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tal:block
tal:define=
"notification_configuration python: {'class': 'success',
'text': '新的邀请链接已生成。'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/wait_for_notification"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//p[@id="invitation_link"]
</td>
<td></td>
</tr>
<tr>
<td>
storeText
</td>
<td>
//p[@id="invitation_link"]
</td>
<td>
invitation_link
</td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_login_with_another_user"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_front_page"
/>
<tal:block
define=
"menu_item python: '项目'; header menu_item; menu_item_data python:'Projects'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_zh"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(0)', 'footer': '没有记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tr>
<td>
openAndWait
</td>
<td>
${invitation_link}
</td>
<td></td>
</tr>
<tal:block
define=
"header python: '成功...'; "
>
<tr>
<td>
waitForElementPresent
</td>
<td
tal:content=
"python: '//div[contains(@data-gadget-url, \'gadget_slapos_header.html\')]//span[@data-i18n=\'%s\']' % header"
>
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td
tal:content=
"python: '//div[contains(@data-gadget-url, \'gadget_slapos_header.html\')]//span[@data-i18n=\'%s\']' % header"
>
</td>
<td></td>
</tr>
</tal:block>
<tr>
<td>
assertTextPresent
</td>
<td>
You sucessfully join a new project: TEST-SLAPOSJS-PROJECT-TO-SHARE-NETWORK 0.
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//a[@data-i18n='Continue']
</td>
<td></td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_activities_and_front_page"
/>
<tal:block
define=
"menu_item python: '项目'; header menu_item; menu_item_data python:'Projects'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_zh"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(1)', 'footer': '1 记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tr>
<td>
waitForTextPresent
</td>
<td>
TEST-SLAPOSJS-PROJECT-TO-SHARE-NETWORK 0
</td>
<td></td>
</tr>
<tal:block
define=
"menu_item python: '网络'; header menu_item; menu_item_data python: 'Networks'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_zh"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(1)', 'footer': '1 记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[text()="TEST-SLAPOSJS-NETWORK-BY-PROJECT 0"]
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//a[text()="TEST-SLAPOSJS-NETWORK-BY-PROJECT 0"]
</td>
<td></td>
</tr>
<tal:block
define=
"header python: '计算机网络 :TEST-SLAPOSJS-NETWORK-BY-PROJECT 0'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_logout"
/>
</tbody>
</table>
</body>
</html>
\ No newline at end of file
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSOrganisation.xml
deleted
100644 → 0
View file @
901078d4
<?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>
testSlapOSJSOrganisation
</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>
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSOrganisation.zpt
deleted
100644 → 0
View file @
901078d4
<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 JS Organisation
</title>
</head>
<body>
<table
cellpadding=
"1"
cellspacing=
"1"
border=
"1"
>
<thead>
<tr>
<td
rowspan=
"1"
colspan=
"3"
>
Test SlapOS JS Organisation
</td>
</tr>
</thead>
<tbody>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_init"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_login"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_front_page"
/>
<tal:block
define=
"person_name python: 'Demo User Functional'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_account"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(1)', 'footer': '1 记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(0)', 'footer': '没有记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tr>
<td
colspan=
"3"
><b>
Create an Organisation
</b>
</td>
</tr>
<tal:block
define=
"menu_action python: 'Add Organisation'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_submenu_action"
/>
</tal:block>
<tal:block
define=
"header python: '新组织'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tr>
<td
colspan=
"3"
><b>
Fill the form
</b>
</td>
</tr>
<tr>
<td>
type
</td>
<td>
//input[@name='title']
</td>
<td>
demo_test_organisation_from_testSlapOSJSOrganisation
</td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_proceed"
/>
<tal:block
tal:define=
"notification_configuration python: {'class': 'success',
'text': '新的组织已创建。'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/wait_for_notification"
/>
</tal:block>
<tal:block
define=
"header python: '组织 : demo_test_organisation_from_testSlapOSJSOrganisation'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_logout"
/>
</tbody>
</table>
</body>
</html>
\ No newline at end of file
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSOrganisationInvitation.xml
deleted
100644 → 0
View file @
901078d4
<?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>
testSlapOSJSOrganisationInvitation
</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>
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSOrganisationInvitation.zpt
deleted
100644 → 0
View file @
901078d4
<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 JS Organisation Invitation
</title>
</head>
<body>
<table
cellpadding=
"1"
cellspacing=
"1"
border=
"1"
>
<thead>
<tr>
<td
rowspan=
"1"
colspan=
"3"
>
Test SlapOS JS Organisation Invitation
</td>
</tr>
</thead>
<tbody>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_init"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_login"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_front_page"
/>
<tal:block
define=
"person_name python: 'Demo User Functional'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_account"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(1)', 'footer': '1 记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(0)', 'footer': '没有记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tr>
<td
colspan=
"3"
><b>
Create an Organisation
</b>
</td>
</tr>
<tal:block
define=
"menu_action python: 'Add Organisation'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_submenu_action"
/>
</tal:block>
<tal:block
define=
"header python: '新组织'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tr>
<td
colspan=
"3"
><b>
Fill the form
</b>
</td>
</tr>
<tr>
<td>
type
</td>
<td>
//input[@name='title']
</td>
<td>
demo_test_organisation_from_testSlapOSJSOrganisationInvitation
</td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_proceed"
/>
<tal:block
tal:define=
"notification_configuration python: {'class': 'success',
'text': '新的组织已创建。'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/wait_for_notification"
/>
</tal:block>
<tal:block
define=
"header python: '组织 : demo_test_organisation_from_testSlapOSJSOrganisationInvitation'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tr>
<td
colspan=
"3"
><b>
Fill the form
</b>
</td>
</tr>
<tal:block
define=
"menu_action python: 'Invite User'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_submenu_action"
/>
</tal:block>
<tal:block
define=
"header python: '生成新的邀请链接'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_proceed"
/>
<tal:block
define=
"header python: '生成新的邀请链接'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tal:block
tal:define=
"notification_configuration python: {'class': 'success',
'text': '新的邀请链接已生成。'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/wait_for_notification"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//p[@id="invitation_link"]
</td>
<td></td>
</tr>
<tr>
<td>
storeText
</td>
<td>
//p[@id="invitation_link"]
</td>
<td>
invitation_link
</td>
</tr>
<tr>
<td>
openAndWait
</td>
<td>
${invitation_link}
</td>
<td></td>
</tr>
<tal:block
define=
"header python: '失败...'; "
>
<tr>
<td>
waitForElementPresent
</td>
<td
tal:content=
"python: '//div[contains(@data-gadget-url, \'gadget_slapos_header.html\')]//span[@data-i18n=\'%s\']' % header"
>
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td
tal:content=
"python: '//div[contains(@data-gadget-url, \'gadget_slapos_header.html\')]//span[@data-i18n=\'%s\']' % header"
>
</td>
<td></td>
</tr>
</tal:block>
<tr>
<td>
assertTextPresent
</td>
<td>
Invitation Token cannot be used by the same user that generated the token!
</td>
<td></td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_login_with_another_user"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_front_page"
/>
<tal:block
define=
"person_name python: 'Another Demo User Functional'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_account"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(1)', 'footer': '1 记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(0)', 'footer': '没有记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tr>
<td>
openAndWait
</td>
<td>
${invitation_link}
</td>
<td></td>
</tr>
<tal:block
define=
"header python: '成功...'; "
>
<tr>
<td>
waitForElementPresent
</td>
<td
tal:content=
"python: '//div[contains(@data-gadget-url, \'gadget_slapos_header.html\')]//span[@data-i18n=\'%s\']' % header"
>
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td
tal:content=
"python: '//div[contains(@data-gadget-url, \'gadget_slapos_header.html\')]//span[@data-i18n=\'%s\']' % header"
>
</td>
<td></td>
</tr>
</tal:block>
<tr>
<td>
assertTextPresent
</td>
<td>
You sucessfully join a new organisation: demo_test_organisation_from_testSlapOSJSOrganisationInvitation.
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//a[@data-i18n='Continue']
</td>
<td></td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_activities_and_front_page"
/>
<tal:block
define=
"person_name python: 'Another Demo User Functional'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_account"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(1)', 'footer': '1 记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tr>
<td>
waitForTextPresent
</td>
<td>
demo_test_organisation_from_testSlapOSJSOrganisationInvitation
</td>
<td></td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_logout"
/>
</tbody>
</table>
</body>
</html>
\ No newline at end of file
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSProject.xml
deleted
100644 → 0
View file @
901078d4
<?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>
testSlapOSJSProject
</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>
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSProject.zpt
deleted
100644 → 0
View file @
901078d4
<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 JS Project
</title>
</head>
<body>
<table
cellpadding=
"1"
cellspacing=
"1"
border=
"1"
>
<thead>
<tr>
<td
rowspan=
"1"
colspan=
"3"
>
Test SlapOS JS Project
</td>
</tr>
</thead>
<tbody>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_init"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_login"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_front_page"
/>
<tal:block
define=
"document_title python: 'TEST-SLAPOSJS-PROJECT 0';"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/create_simple_project"
/>
</tal:block>
<tr>
<td>
type
</td>
<td>
//textarea[@id="description"]
</td>
<td>
TEST-SLAPOSJS-PROJECT DESCRIPTION
</td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/save"
/>
<!-- check site -->
<!-- Broken history to return
<tr>
<td>click</td>
<td>//a[@data-i18n="Project : TEST-SLAPOSJS-PROJECT 0"]</td>
<td></td>
</tr>
-->
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_activities_and_front_page"
/>
<tal:block
define=
"menu_item python: '项目'; header menu_item; menu_item_data python: 'Projects'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_zh"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(1)', 'footer': '1 记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[text()="TEST-SLAPOSJS-PROJECT 0"]
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//a[text()="TEST-SLAPOSJS-PROJECT 0"]
</td>
<td></td>
</tr>
<tal:block
define=
"header python: '项目 : TEST-SLAPOSJS-PROJECT 0'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tal:block
tal:define=
"delete_configuration python: {'header_title': '删除项目: TEST-SLAPOSJS-PROJECT 0',
'notification_text': '项目已删除。'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/delete_simple"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_activities_and_front_page"
/>
<tal:block
define=
"menu_item python: '项目'; header menu_item; menu_item_data python: 'Projects'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_zh"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(0)', 'footer': '没有记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_logout"
/>
</tbody>
</table>
</body>
</html>
\ No newline at end of file
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSProjectInvitation.xml
deleted
100644 → 0
View file @
901078d4
<?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>
testSlapOSJSProjectInvitation
</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>
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSProjectInvitation.zpt
deleted
100644 → 0
View file @
901078d4
<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 Project Invitation
</title>
</head>
<body>
<table
cellpadding=
"1"
cellspacing=
"1"
border=
"1"
>
<thead>
<tr>
<td
rowspan=
"1"
colspan=
"3"
>
Test Project Invitation
</td>
</tr>
</thead>
<tbody>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_init"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_login"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_front_page"
/>
<tal:block
define=
"document_title python: 'TEST-SLAPOSJS-PROJECT-INVITATION 0';"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/create_simple_project"
/>
</tal:block>
<tr>
<td
colspan=
"3"
><b>
Invite User/b>
</td>
</tr>
<tal:block
define=
"menu_action python: 'Invite User'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_submenu_action"
/>
</tal:block>
<tal:block
define=
"header python: '生成新的邀请链接'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_proceed"
/>
<tal:block
define=
"header python: '生成新的邀请链接'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tal:block
tal:define=
"notification_configuration python: {'class': 'success',
'text': '新的邀请链接已生成。'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/wait_for_notification"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//p[@id="invitation_link"]
</td>
<td></td>
</tr>
<tr>
<td>
storeText
</td>
<td>
//p[@id="invitation_link"]
</td>
<td>
invitation_link
</td>
</tr>
<tr>
<td>
openAndWait
</td>
<td>
${invitation_link}
</td>
<td></td>
</tr>
<tal:block
define=
"header python: '失败...'; "
>
<tr>
<td>
waitForElementPresent
</td>
<td
tal:content=
"python: '//div[contains(@data-gadget-url, \'gadget_slapos_header.html\')]//span[@data-i18n=\'%s\']' % header"
></td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td
tal:content=
"python: '//div[contains(@data-gadget-url, \'gadget_slapos_header.html\')]//span[@data-i18n=\'%s\']' % header"
></td>
<td></td>
</tr>
</tal:block>
<tr>
<td>
assertTextPresent
</td>
<td>
Invitation Token cannot be used by the same user that generated the token!
</td>
<td></td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_login_with_another_user"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_front_page"
/>
<tal:block
define=
"menu_item python: '项目'; header menu_item; menu_item_data python: 'Projects'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_zh"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(0)', 'footer': '没有记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tr>
<td>
openAndWait
</td>
<td>
${invitation_link}
</td>
<td></td>
</tr>
<tal:block
define=
"header python: '成功...'; "
>
<tr>
<td>
waitForElementPresent
</td>
<td
tal:content=
"python: '//div[contains(@data-gadget-url, \'gadget_slapos_header.html\')]//span[@data-i18n=\'%s\']' % header"
></td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td
tal:content=
"python: '//div[contains(@data-gadget-url, \'gadget_slapos_header.html\')]//span[@data-i18n=\'%s\']' % header"
></td>
<td></td>
</tr>
</tal:block>
<tr>
<td>
assertTextPresent
</td>
<td>
You sucessfully join a new project: TEST-SLAPOSJS-PROJECT-INVITATION 0.
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//a[@data-i18n='Continue']
</td>
<td></td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_activities_and_front_page"
/>
<tal:block
define=
"menu_item python: '项目'; header menu_item; menu_item_data python: 'Projects'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_zh"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(1)', 'footer': '1 记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tr>
<td>
waitForTextPresent
</td>
<td>
TEST-SLAPOSJS-PROJECT-INVITATION 0
</td>
<td></td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_logout"
/>
</tbody></table>
</body>
</html>
\ No newline at end of file
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSResetPasswordByMail.xml
deleted
100644 → 0
View file @
901078d4
<?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>
testSlapOSJSResetPasswordByMail
</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>
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSResetPasswordByMail.zpt
deleted
100644 → 0
View file @
901078d4
<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 JS Subscribe
</title>
</head>
<body>
<table
cellpadding=
"1"
cellspacing=
"1"
border=
"1"
>
<thead>
<tr>
<td
rowspan=
"1"
colspan=
"3"
>
test SlapOS JS Reset Password By Mail
</td>
</tr>
</thead>
<tbody>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_init"
/>
<tr>
<td>
open
</td>
<td>
${base_url}/web_site_module/hostingjs/zh/WebSite_logout
</td>
<td></td>
</tr>
<!-- Initialize -->
<tr>
<td>
open
</td>
<td>
${base_url}/web_site_module/hostingjs/zh/
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//input[@value='登录']
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[text()='忘记密码']
</td>
<td></td>
</tr>
<tr>
<td>
clickAndWait
</td>
<td>
//a[text()='忘记密码']
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//input[@value='验证']
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//input[@name='user_login']
</td>
<td></td>
</tr>
<tr>
<td>
type
</td>
<td>
//input[@name='user_login']
</td>
<td>
demo_functional_user
</td>
</tr>
<tr>
<td>
clickAndWait
</td>
<td>
//input[@value='验证']
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//span[@data-i18n="An email has been sent to you."]
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//span[@data-i18n="An email has been sent to you."]
</td>
<td></td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplate/macros/wait_for_activities"
/>
<tr>
<td>
open
</td>
<td>
${base_url}/web_site_module/hostingjs/zh/ERP5Site_getDemoFunctionalUserResetPasswordLinkSentByMail
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[@name="reset_password"]
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//a[@name="reset_password"]
</td>
<td></td>
</tr>
<tr>
<td>
clickAndWait
</td>
<td>
//a[@name="reset_password"]
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//input[@value='Validate']
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//input[@value='Validate']
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//input[@name='password']
</td>
<td></td>
</tr>
<tr>
<td>
type
</td>
<td>
//input[@name='password']
</td>
<td>
s0m
&
PA$$word
</td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//input[@name='password_confirm']
</td>
<td></td>
</tr>
<tr>
<td>
type
</td>
<td>
//input[@name='password_confirm']
</td>
<td>
s0m
&
PA$$word
</td>
</tr>
<tr>
<td>
clickAndWait
</td>
<td>
//input[@value='Validate']
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//span[@data-i18n="Password changed."]
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//span[@data-i18n="Password changed."]
</td>
<td></td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplate/macros/wait_for_activities"
/>
<tr>
<td>
open
</td>
<td>
${base_url}/web_site_module/hostingjs/zh/
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//input[@value='登录']
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
__ac_name
</td>
<td></td>
</tr>
<tr>
<td>
type
</td>
<td>
__ac_name
</td>
<td>
demo_functional_user
</td>
</tr>
<tr>
<td>
type
</td>
<td>
__ac_password
</td>
<td>
s0m
&
PA$$word
</td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//input[@value="登录"]
</td>
<td></td>
</tr>
<tr>
<td>
clickAndWait
</td>
<td>
//input[@value="登录"]
</td>
<td></td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_front_page"
/>
<tal:block
define=
"person_name python: 'Demo User Functional'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_account"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_logout"
/>
</tbody>
</table>
</body>
</html>
\ No newline at end of file
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSServer.xml
deleted
100644 → 0
View file @
901078d4
<?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>
testSlapOSJSServer
</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>
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSServer.zpt
deleted
100644 → 0
View file @
901078d4
<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 JS Server
</title>
</head>
<body>
<table
cellpadding=
"1"
cellspacing=
"1"
border=
"1"
>
<thead>
<tr>
<td
rowspan=
"1"
colspan=
"3"
>
Test SlapOS JS Server
</td>
</tr>
</thead>
<tbody>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_init"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_login"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_front_page"
/>
<tal:block
define=
"document_title python: 'TEST-SLAPOSJS-COMPUTER 0';"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/create_simple_computer"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_activities_and_front_page"
/>
<tal:block
define=
"menu_item python: '服务器'; header menu_item; menu_item_data python: 'Servers'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_zh"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(1)', 'footer': '1 记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[text()="TEST-SLAPOSJS-COMPUTER 0"]
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//a[text()="TEST-SLAPOSJS-COMPUTER 0"]
</td>
<td></td>
</tr>
<tal:block
define=
"header python: '计算机: TEST-SLAPOSJS-COMPUTER 0'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tr>
<td
colspan=
"3"
><b>
Supply a Software
</b></td>
</tr>
<tal:block
define=
"menu_action python: 'Supply'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_submenu_action"
/>
</tal:block>
<tr>
<td
colspan=
"3"
><b>
Select a Software Product
</b></td>
</tr>
<tal:block
define=
"header python: '1/3 选择一个软件'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//div[contains(@data-gadget-url, 'gadget_erp5_field_listbox.html')]//h1[contains(text(), '软件产品')]
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//div[contains(@data-gadget-url, 'gadget_erp5_field_listbox.html')]//h1[contains(text(), '软件产品')]
</td>
<td></td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/wait_for_listbox_loaded"
/>
<tr>
<td>
waitForElementPresent
</td>
<td>
//td/a[text()="Frontend"]
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//td/a[text()="Frontend"]
</td>
<td></td>
</tr>
<tr>
<td
colspan=
"3"
><b>
Select a Software Release
</b></td>
</tr>
<tal:block
define=
"header python: '2/3 选择一个发布'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//div[contains(@data-gadget-url, 'gadget_erp5_field_listbox.html')]//h1[contains(text(), '软件发布')]
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//div[contains(@data-gadget-url, 'gadget_erp5_field_listbox.html')]//h1[contains(text(), '软件发布')]
</td>
<td></td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/wait_for_listbox_loaded"
/>
<tr>
<td>
click
</td>
<td>
//td/a[text()="Frontend"]
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//label[text()="将要安装发布软件"]
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//label[text()="目标计算机标题"]
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//p[text()="TEST-SLAPOSJS-COMPUTER 0"]
</td>
<td></td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_proceed"
/>
<tal:block
tal:define=
"notification_configuration python: {'class': 'success',
'text': '新的软件安装已创建。'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/wait_for_notification"
/>
</tal:block>
<tal:block
define=
"header python: 'Software Installation : Frontend'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[text()="TEST-SLAPOSJS-COMPUTER 0"]
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//a[text()="TEST-SLAPOSJS-COMPUTER 0"]
</td>
<td></td>
</tr>
<tr>
<td>
pause
</td>
<td>
5000
</td>
<td>
5000
</td>
</tr>
<tal:block
define=
"header python: '计算机: TEST-SLAPOSJS-COMPUTER 0'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_activities_and_front_page"
/>
<tal:block
define=
"menu_item python: '服务器'; header menu_item; menu_item_data python: 'Servers'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_zh"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(1)', 'footer': '1 记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[text()="TEST-SLAPOSJS-COMPUTER 0"]
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//a[text()="TEST-SLAPOSJS-COMPUTER 0"]
</td>
<td></td>
</tr>
<tal:block
define=
"header python: '计算机: TEST-SLAPOSJS-COMPUTER 0'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tr>
<td>
click
</td>
<td>
//th/a[text()="软件发布"]
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//td/a[contains(text(), "Frontend (0.1)")]
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//td/a[contains(text(), "Frontend (0.1)")]
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//td/a[contains(text(), "Frontend (0.1)")]
</td>
<td></td>
</tr>
<tal:block
define=
"header python: 'Software Installation : Frontend'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tal:block
define=
"menu_action python: 'Destroy'"
>
<tr>
<td
colspan=
"3"
><b
tal:content=
"python: 'Click on %s' % menu_action"
>
Menu Item
</b></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td
tal:content=
"python: '//div[contains(@data-gadget-url, \'gadget_slapos_header.html\')]//a[@data-i18n=\'%s\']' % menu_action"
>
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td
tal:content=
"python: '//div[contains(@data-gadget-url, \'gadget_slapos_header.html\')]//a[@data-i18n=\'%s\']' % menu_action"
>
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td
tal:content=
"python: '//div[contains(@data-gadget-url, \'gadget_slapos_header.html\')]//a[@data-i18n=\'%s\']' % menu_action"
>
</td>
<td></td>
</tr>
</tal:block>
<tal:block
define=
"header python: '销毁软件安装'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_proceed"
/>
<tal:block
tal:define=
"notification_configuration python: {'class': 'success',
'text': '您成功请求销毁。'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/wait_for_notification"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[text()="TEST-SLAPOSJS-COMPUTER 0"]
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//a[text()="TEST-SLAPOSJS-COMPUTER 0"]
</td>
<td></td>
</tr>
<tal:block
define=
"header python: '计算机: TEST-SLAPOSJS-COMPUTER 0'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tr>
<td
colspan=
"3"
><b>
Try to request a new Certificate
</b></td>
</tr>
<tal:block
define=
"menu_action python: 'Request Certificate'"
>
<tr>
<td
colspan=
"3"
><b
tal:content=
"python: 'Click on %s' % menu_action"
>
Menu Item
</b></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td
tal:content=
"python: '//div[contains(@data-gadget-url, \'gadget_slapos_header.html\')]//a[@data-i18n=\'%s\']' % menu_action"
>
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td
tal:content=
"python: '//div[contains(@data-gadget-url, \'gadget_slapos_header.html\')]//a[@data-i18n=\'%s\']' % menu_action"
>
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td
tal:content=
"python: '//div[contains(@data-gadget-url, \'gadget_slapos_header.html\')]//a[@data-i18n=\'%s\']' % menu_action"
>
</td>
<td></td>
</tr>
</tal:block>
<tal:block
define=
"header python: '请求新的证书'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_proceed"
/>
<tal:block
tal:define=
"notification_configuration python: {'class': 'success',
'text': '该计算机已拥有一个证书,请在请求新的证书之前吊销已有证书。'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/wait_for_notification"
/>
</tal:block>
<tal:block
define=
"header python: '请求新的证书'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_page_header"
/>
</tal:block>
<tal:block
define=
"header python: '计算机: TEST-SLAPOSJS-COMPUTER 0'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tr>
<td
colspan=
"3"
><b>
Revoke Certificate
</b></td>
</tr>
<tal:block
define=
"menu_action python: 'Revoke Certificate'"
>
<tr>
<td
colspan=
"3"
><b
tal:content=
"python: 'Click on %s' % menu_action"
>
Menu Item
</b></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td
tal:content=
"python: '//div[contains(@data-gadget-url, \'gadget_slapos_header.html\')]//a[@data-i18n=\'%s\']' % menu_action"
>
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td
tal:content=
"python: '//div[contains(@data-gadget-url, \'gadget_slapos_header.html\')]//a[@data-i18n=\'%s\']' % menu_action"
>
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td
tal:content=
"python: '//div[contains(@data-gadget-url, \'gadget_slapos_header.html\')]//a[@data-i18n=\'%s\']' % menu_action"
>
</td>
<td></td>
</tr>
</tal:block>
<tal:block
define=
"header python: '吊销计算机证书'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_proceed"
/>
<tal:block
tal:define=
"notification_configuration python: {'class': 'success',
'text': '证书已吊销。'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/wait_for_notification"
/>
</tal:block>
<tr>
<td
colspan=
"3"
><b>
Try again Request Certificate
</b></td>
</tr>
<tal:block
define=
"header python: '计算机: TEST-SLAPOSJS-COMPUTER 0'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tal:block
define=
"menu_action python: 'Request Certificate'"
>
<tr>
<td
colspan=
"3"
><b
tal:content=
"python: 'Click on %s' % menu_action"
>
Menu Item
</b></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td
tal:content=
"python: '//div[contains(@data-gadget-url, \'gadget_slapos_header.html\')]//a[@data-i18n=\'%s\']' % menu_action"
>
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td
tal:content=
"python: '//div[contains(@data-gadget-url, \'gadget_slapos_header.html\')]//a[@data-i18n=\'%s\']' % menu_action"
>
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td
tal:content=
"python: '//div[contains(@data-gadget-url, \'gadget_slapos_header.html\')]//a[@data-i18n=\'%s\']' % menu_action"
>
</td>
<td></td>
</tr>
</tal:block>
<tal:block
define=
"header python: '请求新的证书'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_proceed"
/>
<tal:block
tal:define=
"notification_configuration python: {'class': 'success',
'text': '证书已请求。'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/wait_for_notification"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//textarea[@name="certificate"]
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//textarea[@name="key"]
</td>
<td></td>
</tr>
<tal:block
define=
"header python: '请求新的证书'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_page_header"
/>
</tal:block>
<tal:block
define=
"header python: '计算机: TEST-SLAPOSJS-COMPUTER 0'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tr>
<td
colspan=
"3"
><b>
Update Allocation Scope
</b></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//select[@id="allocation_scope"]
</td>
<td></td>
</tr>
<tr>
<td>
select
</td>
<td>
//select[@id="allocation_scope"]
</td>
<td>
开启(仅朋友)
</td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/save"
/>
<tr>
<td>
waitForElementPresent
</td>
<td>
//textarea[@id="subject_list"]
</td>
<td></td>
</tr>
<tr>
<td>
type
</td>
<td>
//textarea[@id="subject_list"]
</td>
<td>
demo@user.com
</td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/save"
/>
<tr>
<td>
assertValue
</td>
<td>
//textarea[@id="subject_list"]
</td>
<td>
demo@user.com
</td>
</tr>
<tal:block
define=
"menu_item python: '服务器'; header menu_item; menu_item_data python: 'Servers'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_zh"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_activities_and_front_page"
/>
<tal:block
define=
"menu_item python: '服务器'; header menu_item; menu_item_data python: 'Servers'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_zh"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(1)', 'footer': '1 记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[text()="TEST-SLAPOSJS-COMPUTER 0"]
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//a[text()="TEST-SLAPOSJS-COMPUTER 0"]
</td>
<td></td>
</tr>
<tal:block
define=
"header python: '计算机: TEST-SLAPOSJS-COMPUTER 0'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tr>
<td
colspan=
"3"
><b>
Update Allocation Scope
</b></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//select[@id="allocation_scope"]
</td>
<td></td>
</tr>
<tr>
<td>
select
</td>
<td>
//select[@id="allocation_scope"]
</td>
<td>
永久终止并删除
</td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/save"
/>
<tal:block
define=
"menu_item python: '服务器'; header menu_item; menu_item_data python: 'Servers'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_zh"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_activities_and_front_page"
/>
<tal:block
define=
"menu_item python: '服务器'; header menu_item; menu_item_data python: 'Servers'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_zh"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(0)', 'footer': '没有记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_logout"
/>
</tbody>
</table>
</body>
</html>
\ No newline at end of file
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSServerSharedByOrganisation.xml
deleted
100644 → 0
View file @
901078d4
<?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>
testSlapOSJSServerSharedByOrganisation
</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>
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSServerSharedByOrganisation.zpt
deleted
100644 → 0
View file @
901078d4
<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 JS Server Shared By Organisation
</title>
</head>
<body>
<table
cellpadding=
"1"
cellspacing=
"1"
border=
"1"
>
<thead>
<tr>
<td
rowspan=
"1"
colspan=
"3"
>
Test SlapOS JS Server Shared By Organisation
</td>
</tr>
</thead>
<tbody>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_init"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_login"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_front_page"
/>
<tal:block
define=
"document_title python: 'TEST-SLAPOSJS-ORGANISATION-TO-SHARE-COMPUTER 0';"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/create_user_organisation"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_activities_and_front_page"
/>
<tal:block
define=
"document_title python: 'TEST-SLAPOSJS-COMPUTER-SHARED-BY-ORGANISATION 0';"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/create_simple_computer"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_activities_and_front_page"
/>
<tal:block
define=
"menu_item python: '服务器'; header menu_item; menu_item_data python: 'Servers'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_zh"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(1)', 'footer': '1 记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[text()="TEST-SLAPOSJS-COMPUTER-SHARED-BY-ORGANISATION 0"]
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//a[text()="TEST-SLAPOSJS-COMPUTER-SHARED-BY-ORGANISATION 0"]
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[@data-i18n="计算机: TEST-SLAPOSJS-COMPUTER-SHARED-BY-ORGANISATION 0"]
</td>
<td></td>
</tr>
<tr>
<td
colspan=
"3"
><b
tal:content=
"python: 'Transfer Computer to a Organisation'"
>
Menu Item
</b></td>
</tr>
<tal:block
tal:define=
"menu_action python: 'Transfer'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_submenu_action"
/>
</tal:block>
<tal:block
define=
"header python: '转移计算机'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//select[@name="destination_section"]
</td>
<td></td>
</tr>
<tr>
<td>
select
</td>
<td>
//select[@name="destination_section"]
</td>
<td>
TEST-SLAPOSJS-ORGANISATION-TO-SHARE-COMPUTER 0
</td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_proceed"
/>
<tal:block
tal:define=
"notification_configuration python: {'class': 'success',
'text': '计算机已转移。'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/wait_for_notification"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_activities_and_front_page"
/>
<tal:block
define=
"menu_item python: '服务器'; header menu_item; menu_item_data python: 'Servers'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_zh"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(1)', 'footer': '1 记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[text()="TEST-SLAPOSJS-COMPUTER-SHARED-BY-ORGANISATION 0"]
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//a[text()="TEST-SLAPOSJS-COMPUTER-SHARED-BY-ORGANISATION 0"]
</td>
<td></td>
</tr>
<tal:block
define=
"header python: '计算机: TEST-SLAPOSJS-COMPUTER-SHARED-BY-ORGANISATION 0'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tr>
<td>
waitForTextPresent
</td>
<td>
TEST-SLAPOSJS-COMPUTER-SHARED-BY-ORGANISATION 0
</td>
<td></td>
</tr>
<tal:block
define=
"person_name python: 'Demo User Functional'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_account"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(1)', 'footer': '1 记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[text()="TEST-SLAPOSJS-ORGANISATION-TO-SHARE-COMPUTER 0"]
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//a[text()="TEST-SLAPOSJS-ORGANISATION-TO-SHARE-COMPUTER 0"]
</td>
<td></td>
</tr>
<tal:block
define=
"header python: '组织 : TEST-SLAPOSJS-ORGANISATION-TO-SHARE-COMPUTER 0'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tr>
<td
colspan=
"3"
><b>
Invite User/b>
</td>
</tr>
<tal:block
define=
"menu_action python: 'Invite User'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_submenu_action"
/>
</tal:block>
<tal:block
define=
"header python: '生成新的邀请链接'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_proceed"
/>
<tal:block
define=
"header python: '生成新的邀请链接'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tal:block
tal:define=
"notification_configuration python: {'class': 'success',
'text': '新的邀请链接已生成。'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/wait_for_notification"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//p[@id="invitation_link"]
</td>
<td></td>
</tr>
<tr>
<td>
storeText
</td>
<td>
//p[@id="invitation_link"]
</td>
<td>
invitation_link
</td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_login_with_another_user"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_front_page"
/>
<tal:block
define=
"person_name python: 'Another Demo User Functional'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_account"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(1)', 'footer': '1 记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(0)', 'footer': '没有记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tr>
<td>
openAndWait
</td>
<td>
${invitation_link}
</td>
<td></td>
</tr>
<tal:block
define=
"header python: '成功...'; "
>
<tr>
<td>
waitForElementPresent
</td>
<td
tal:content=
"python: '//div[contains(@data-gadget-url, \'gadget_slapos_header.html\')]//span[@data-i18n=\'%s\']' % header"
></td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td
tal:content=
"python: '//div[contains(@data-gadget-url, \'gadget_slapos_header.html\')]//span[@data-i18n=\'%s\']' % header"
></td>
<td></td>
</tr>
</tal:block>
<tr>
<td>
assertTextPresent
</td>
<td>
You sucessfully join a new organisation: TEST-SLAPOSJS-ORGANISATION-TO-SHARE-COMPUTER 0.
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//a[@data-i18n='Continue']
</td>
<td></td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_activities_and_front_page"
/>
<tal:block
define=
"person_name python: 'Another Demo User Functional'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_account"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(1)', 'footer': '1 记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tr>
<td>
waitForTextPresent
</td>
<td>
TEST-SLAPOSJS-ORGANISATION-TO-SHARE-COMPUTER 0
</td>
<td></td>
</tr>
<tal:block
define=
"menu_item python: '服务器'; header menu_item; menu_item_data python: 'Servers'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_zh"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(1)', 'footer': '1 记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[text()="TEST-SLAPOSJS-COMPUTER-SHARED-BY-ORGANISATION 0"]
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//a[text()="TEST-SLAPOSJS-COMPUTER-SHARED-BY-ORGANISATION 0"]
</td>
<td></td>
</tr>
<tal:block
define=
"header python: '计算机: TEST-SLAPOSJS-COMPUTER-SHARED-BY-ORGANISATION 0'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_logout"
/>
</tbody></table>
</body>
</html>
\ No newline at end of file
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSServerSharedByProject.xml
deleted
100644 → 0
View file @
901078d4
<?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>
testSlapOSJSServerSharedByProject
</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>
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSServerSharedByProject.zpt
deleted
100644 → 0
View file @
901078d4
<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 JS Server Shared By Project
</title>
</head>
<body>
<table
cellpadding=
"1"
cellspacing=
"1"
border=
"1"
>
<thead>
<tr>
<td
rowspan=
"1"
colspan=
"3"
>
Test SlapOS JS Server Shared By Project
</td>
</tr>
</thead>
<tbody>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_init"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_login"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_front_page"
/>
<tal:block
define=
"document_title python: 'TEST-SLAPOSJS-PROJECT-TO-SHARE-COMPUTER 0';"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/create_simple_project"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_activities_and_front_page"
/>
<tal:block
define=
"document_title python: 'TEST-SLAPOSJS-COMPUTER-SHARED-BY-PROJECT 0';"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/create_simple_computer"
/>
</tal:block>
<tr>
<td
colspan=
"3"
><b
tal:content=
"python: 'Transfer Computer to a Project'"
>
Menu Item
</b></td>
</tr>
<tal:block
tal:define=
"menu_action python: 'Transfer'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_submenu_action"
/>
</tal:block>
<tal:block
define=
"header python: '转移计算机'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//select[@name="destination_project"]
</td>
<td></td>
</tr>
<tr>
<td>
select
</td>
<td>
//select[@name="destination_project"]
</td>
<td>
TEST-SLAPOSJS-PROJECT-TO-SHARE-COMPUTER 0
</td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_proceed"
/>
<tal:block
tal:define=
"notification_configuration python: {'class': 'success',
'text': '计算机已转移。'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/wait_for_notification"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_activities_and_front_page"
/>
<tal:block
define=
"menu_item python: '服务器'; header menu_item; menu_item_data python: 'Servers'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_zh"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(1)', 'footer': '1 记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[text()="TEST-SLAPOSJS-COMPUTER-SHARED-BY-PROJECT 0"]
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//a[text()="TEST-SLAPOSJS-COMPUTER-SHARED-BY-PROJECT 0"]
</td>
<td></td>
</tr>
<tal:block
define=
"header python: '计算机: TEST-SLAPOSJS-COMPUTER-SHARED-BY-PROJECT 0'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tr>
<td>
waitForTextPresent
</td>
<td>
TEST-SLAPOSJS-PROJECT-TO-SHARE-COMPUTER 0
</td>
<td></td>
</tr>
<tal:block
define=
"menu_item python: '项目'; header menu_item; menu_item_data python: 'Projects'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_zh"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(1)', 'footer': '1 记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[text()="TEST-SLAPOSJS-PROJECT-TO-SHARE-COMPUTER 0"]
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//a[text()="TEST-SLAPOSJS-PROJECT-TO-SHARE-COMPUTER 0"]
</td>
<td></td>
</tr>
<tal:block
define=
"header python: '项目 : TEST-SLAPOSJS-PROJECT-TO-SHARE-COMPUTER 0'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tr>
<td
colspan=
"3"
><b>
Invite User/b>
</td>
</tr>
<tal:block
define=
"menu_action python: 'Invite User'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_submenu_action"
/>
</tal:block>
<tal:block
define=
"header python: '生成新的邀请链接'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_proceed"
/>
<tal:block
define=
"header python: '生成新的邀请链接'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tal:block
tal:define=
"notification_configuration python: {'class': 'success',
'text': '新的邀请链接已生成。'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/wait_for_notification"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//p[@id="invitation_link"]
</td>
<td></td>
</tr>
<tr>
<td>
storeText
</td>
<td>
//p[@id="invitation_link"]
</td>
<td>
invitation_link
</td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_login_with_another_user"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_front_page"
/>
<tal:block
define=
"menu_item python: '项目'; header menu_item; menu_item_data python: 'Projects'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_zh"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(0)', 'footer': '没有记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tr>
<td>
openAndWait
</td>
<td>
${invitation_link}
</td>
<td></td>
</tr>
<tal:block
define=
"header python: '成功...'; "
>
<tr>
<td>
waitForElementPresent
</td>
<td
tal:content=
"python: '//div[contains(@data-gadget-url, \'gadget_slapos_header.html\')]//span[@data-i18n=\'%s\']' % header"
></td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td
tal:content=
"python: '//div[contains(@data-gadget-url, \'gadget_slapos_header.html\')]//span[@data-i18n=\'%s\']' % header"
></td>
<td></td>
</tr>
</tal:block>
<tr>
<td>
assertTextPresent
</td>
<td>
You sucessfully join a new project: TEST-SLAPOSJS-PROJECT-TO-SHARE-COMPUTER 0.
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//a[@data-i18n='Continue']
</td>
<td></td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_activities_and_front_page"
/>
<tal:block
define=
"menu_item python: '项目'; header menu_item; menu_item_data python: 'Projects'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_zh"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(1)', 'footer': '1 记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tr>
<td>
waitForTextPresent
</td>
<td>
TEST-SLAPOSJS-PROJECT-TO-SHARE-COMPUTER 0
</td>
<td></td>
</tr>
<tal:block
define=
"menu_item python: '服务器'; header menu_item; menu_item_data python: 'Servers'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_zh"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(1)', 'footer': '1 记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[text()="TEST-SLAPOSJS-COMPUTER-SHARED-BY-PROJECT 0"]
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//a[text()="TEST-SLAPOSJS-COMPUTER-SHARED-BY-PROJECT 0"]
</td>
<td></td>
</tr>
<tal:block
define=
"header python: '计算机: TEST-SLAPOSJS-COMPUTER-SHARED-BY-PROJECT 0'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_logout"
/>
</tbody></table>
</body>
</html>
\ No newline at end of file
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSServerToken.xml
deleted
100644 → 0
View file @
901078d4
<?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>
testSlapOSJSServerToken
</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>
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSServerToken.zpt
deleted
100644 → 0
View file @
901078d4
<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 JS Server Token
</title>
</head>
<body>
<table
cellpadding=
"1"
cellspacing=
"1"
border=
"1"
>
<thead>
<tr>
<td
rowspan=
"1"
colspan=
"3"
>
Test SlapOS JS Server Token
</td>
</tr>
</thead>
<tbody>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_init"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_login"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_front_page"
/>
<tal:block
define=
"menu_item python: '服务器'; header menu_item; menu_item_data python: 'Servers'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_zh"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(0)', 'footer': '没有记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tr>
<td
colspan=
"3"
><b
tal:content=
"python: 'Click on Token'"
>
Menu Item
</b></td>
</tr>
<tal:block
define=
"menu_action python: 'Token'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_submenu_action"
/>
</tal:block>
<tal:block
define=
"header python: '请求新令牌'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_proceed"
/>
<tal:block
tal:define=
"notification_configuration python: {'class': 'success',
'text': '令牌已请求。'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/wait_for_notification"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//label[text()="您的令牌"]
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//label[text()="您的令牌"]
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td
tal:content=
"python: '//div[contains(@data-gadget-url, \'gadget_erp5_field_string.html\')]//p[contains(text(), \'%s%02d%02d-\')]' % (DateTime().year(),DateTime().month(),DateTime().day())"
>
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td
tal:content=
"python: '//div[contains(@data-gadget-url, \'gadget_erp5_field_string.html\')]//p[contains(text(), \'%s%02d%02d-\')]' % (DateTime().year(),DateTime().month(),DateTime().day())"
>
</td>
<td></td>
</tr>
<tal:block
define=
"header python: '请求新令牌'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_page_header"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td
tal:content=
"python: '//div[contains(@data-gadget-url, \'gadget_erp5_field_listbox.html\')]//h1[contains(text(), \'服务器\')]'"
>
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td
tal:content=
"python: '//div[contains(@data-gadget-url, \'gadget_erp5_field_listbox.html\')]//h1[contains(text(), \'服务器\')]'"
>
</td>
<td></td>
</tr>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(0)', 'footer': '没有记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_logout"
/>
</tbody>
</table>
</body>
</html>
\ No newline at end of file
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSService.xml
deleted
100644 → 0
View file @
901078d4
<?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>
testSlapOSJSService
</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>
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSService.zpt
deleted
100644 → 0
View file @
901078d4
<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 JS Service
</title>
</head>
<body>
<table
cellpadding=
"1"
cellspacing=
"1"
border=
"1"
>
<thead>
<tr>
<td
rowspan=
"1"
colspan=
"3"
>
Test SlapOS JS Service
</td>
</tr>
</thead>
<tbody>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_init"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_login"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_front_page"
/>
<tal:block
define=
"menu_item python: '服务'; header menu_item; menu_item_data python:'Services'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_zh"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(0)', 'footer': '没有记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tal:block
define=
"menu_action python: 'Add'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_submenu_action"
/>
</tal:block>
<tr>
<td
colspan=
"3"
><b>
Request a Software
</b></td>
</tr>
<tal:block
define=
"software_product python: 'Frontend'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/select_software_product"
/>
</tal:block>
<tal:block
define=
"software_release python: 'Frontend'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/select_software_release"
/>
</tal:block>
<tr>
<td
colspan=
"3"
><b>
Fill Request form
</b></td>
</tr>
<tal:block
define=
"header python: '3/3 请求服务: Frontend'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//input[@id="title"]
</td>
<td></td>
</tr>
<tr>
<td>
type
</td>
<td>
//input[@id="title"]
</td>
<td>
TEST-SLAPOSJS-SERVICE-FRONTEND 0
</td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//div[contains(@data-gadget-url,
'gadget_erp5_page_slap_parameter_form.html')]//select[@name="software_type"]
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//div[contains(@data-gadget-url,
'gadget_erp5_page_slap_parameter_form.html')]//select[@name="software_type"]
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//div[contains(@data-gadget-url,
'gadget_erp5_page_slap_parameter_form.html')]//select[@name="software_type"]//option[text()="Custom Personal"]
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//div[contains(@data-gadget-url,
'gadget_erp5_page_slap_parameter_form.html')]//select[@name="software_type"]//option[text()="Custom Personal"]
</td>
<td></td>
</tr>
<tr>
<td>
select
</td>
<td>
//div[contains(@data-gadget-url,
'gadget_erp5_page_slap_parameter_form.html')]//select[@name="software_type"]
</td>
<td>
Custom Personal
</td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//input[@name="//public-ipv4"]
</td>
<td></td>
</tr>
<tr>
<td>
type
</td>
<td>
//input[@name="//public-ipv4"]
</td>
<td>
http://www.erp5.com
</td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_proceed"
/>
<tal:block
tal:define=
"notification_configuration python: {'class': 'success',
'text': '已创建新的服务。'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/wait_for_notification"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_activities_and_front_page"
/>
<tal:block
define=
"menu_item python: '服务'; header menu_item; menu_item_data python:'Services'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_zh"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(1)', 'footer': '1 记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[text()="TEST-SLAPOSJS-SERVICE-FRONTEND 0"]
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//a[text()="TEST-SLAPOSJS-SERVICE-FRONTEND 0"]
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[@data-i18n="托管订阅: TEST-SLAPOSJS-SERVICE-FRONTEND 0"]
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//div[contains(@data-gadget-url,
'gadget_erp5_page_slap_parameter_form.html')]//select[@name="software_type"]
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//div[contains(@data-gadget-url,
'gadget_erp5_page_slap_parameter_form.html')]//select[@name="software_type"]
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//div[contains(@data-gadget-url,
'gadget_erp5_page_slap_parameter_form.html')]//select[@name="software_type"]//option[text()="Custom Personal"]
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//div[contains(@data-gadget-url,
'gadget_erp5_page_slap_parameter_form.html')]//select[@name="software_type"]//option[text()="Custom Personal"]
</td>
<td></td>
</tr>
<tr>
<td>
verifyValue
</td>
<td>
//div[contains(@data-gadget-url,
'gadget_erp5_page_slap_parameter_form.html')]//select[@name="software_type"]
</td>
<td>
custom-personal
</td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//input[@name="//public-ipv4"]
</td>
<td></td>
</tr>
<tr>
<td>
verifyValue
</td>
<td>
//input[@name="//public-ipv4"]
</td>
<td>
http://www.erp5.com
</td>
</tr>
<!-- Update Add Ticket -->
<!-- Update Stop -->
<!-- Update Start -->
<tal:block
define=
"menu_action python: 'Destroy'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_submenu_action"
/>
</tal:block>
<tal:block
define=
"header python: '销毁托管订阅: TEST-SLAPOSJS-SERVICE-FRONTEND 0'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_proceed"
/>
<tal:block
tal:define=
"notification_configuration python: {'class': 'success',
'text': '服务已销毁。'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/wait_for_notification"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_activities_and_front_page"
/>
<tal:block
define=
"menu_item python: '服务'; header menu_item; menu_item_data python:'Services'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_zh"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(0)', 'footer': '没有记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_logout"
/>
</tbody>
</table>
</body>
</html>
\ No newline at end of file
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSServiceDuplicatedRequest.xml
deleted
100644 → 0
View file @
901078d4
<?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>
testSlapOSJSServiceDuplicatedRequest
</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>
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSServiceDuplicatedRequest.zpt
deleted
100644 → 0
View file @
901078d4
<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 JS Service Duplicated Request
</title>
</head>
<body>
<table
cellpadding=
"1"
cellspacing=
"1"
border=
"1"
>
<thead>
<tr>
<td
rowspan=
"1"
colspan=
"3"
>
Test SlapOS JS Service Duplicated Request
</td>
</tr>
</thead>
<tbody>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_init"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_login"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_front_page"
/>
<tal:block
define=
"menu_item python: '服务'; header menu_item; menu_item_data python:'Services'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_zh"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(0)', 'footer': '没有记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tal:block
define=
"menu_action python: 'Add'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_submenu_action"
/>
</tal:block>
<tr>
<td
colspan=
"3"
><b>
Request a Software
</b></td>
</tr>
<tal:block
define=
"software_product python: 'Frontend'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/select_software_product"
/>
</tal:block>
<tal:block
define=
"software_release python: 'Frontend'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/select_software_release"
/>
</tal:block>
<tr>
<td
colspan=
"3"
><b>
Fill Request form
</b></td>
</tr>
<tal:block
define=
"header python: '3/3 请求服务: Frontend'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//input[@id="title"]
</td>
<td></td>
</tr>
<tr>
<td>
type
</td>
<td>
//input[@id="title"]
</td>
<td>
TEST-SLAPOSJS-SERVICE-FRONTEND 0
</td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//div[contains(@data-gadget-url,
'gadget_erp5_page_slap_parameter_form.html')]//select[@name="software_type"]
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//div[contains(@data-gadget-url,
'gadget_erp5_page_slap_parameter_form.html')]//select[@name="software_type"]
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//div[contains(@data-gadget-url,
'gadget_erp5_page_slap_parameter_form.html')]//select[@name="software_type"]//option[text()="Custom Personal"]
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//div[contains(@data-gadget-url,
'gadget_erp5_page_slap_parameter_form.html')]//select[@name="software_type"]//option[text()="Custom Personal"]
</td>
<td></td>
</tr>
<tr>
<td>
select
</td>
<td>
//div[contains(@data-gadget-url,
'gadget_erp5_page_slap_parameter_form.html')]//select[@name="software_type"]
</td>
<td>
Custom Personal
</td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//input[@name="//public-ipv4"]
</td>
<td></td>
</tr>
<tr>
<td>
type
</td>
<td>
//input[@name="//public-ipv4"]
</td>
<td>
http://www.erp5.com
</td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_proceed"
/>
<tal:block
tal:define=
"notification_configuration python: {'class': 'success',
'text': '已创建新的服务。'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/wait_for_notification"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_activities_and_front_page"
/>
<tal:block
define=
"menu_item python: '服务'; header menu_item; menu_item_data python:'Services'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_zh"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(1)', 'footer': '1 记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[text()="TEST-SLAPOSJS-SERVICE-FRONTEND 0"]
</td>
<td></td>
</tr>
<tal:block
define=
"menu_action python: 'Add'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_submenu_action"
/>
</tal:block>
<tr>
<td
colspan=
"3"
><b>
Request a Software
</b></td>
</tr>
<tal:block
define=
"software_product python: 'Frontend'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/select_software_product"
/>
</tal:block>
<tal:block
define=
"software_release python: 'Frontend'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/select_software_release"
/>
</tal:block>
<tr>
<td
colspan=
"3"
><b>
Fill Request form
</b></td>
</tr>
<tal:block
define=
"header python: '3/3 请求服务: Frontend'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//input[@id="title"]
</td>
<td></td>
</tr>
<tr>
<td>
type
</td>
<td>
//input[@id="title"]
</td>
<td>
TEST-SLAPOSJS-SERVICE-FRONTEND 0
</td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//div[contains(@data-gadget-url,
'gadget_erp5_page_slap_parameter_form.html')]//select[@name="software_type"]
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//div[contains(@data-gadget-url,
'gadget_erp5_page_slap_parameter_form.html')]//select[@name="software_type"]
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//div[contains(@data-gadget-url,
'gadget_erp5_page_slap_parameter_form.html')]//select[@name="software_type"]//option[text()="Custom Personal"]
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//div[contains(@data-gadget-url,
'gadget_erp5_page_slap_parameter_form.html')]//select[@name="software_type"]//option[text()="Custom Personal"]
</td>
<td></td>
</tr>
<tr>
<td>
select
</td>
<td>
//div[contains(@data-gadget-url,
'gadget_erp5_page_slap_parameter_form.html')]//select[@name="software_type"]
</td>
<td>
Custom Personal
</td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//input[@name="//public-ipv4"]
</td>
<td></td>
</tr>
<tr>
<td>
type
</td>
<td>
//input[@name="//public-ipv4"]
</td>
<td>
http://www.erp5.com
</td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_proceed"
/>
<tal:block
tal:define=
"notification_configuration python: {'class': 'error',
'text': 'A service with this title already exists.'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/wait_for_notification"
/>
</tal:block>
<tal:block
define=
"menu_item python: '服务'; header menu_item; menu_item_data python:'Services'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_zh"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(1)', 'footer': '1 记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[text()="TEST-SLAPOSJS-SERVICE-FRONTEND 0"]
</td>
<td></td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_logout"
/>
</tbody>
</table>
</body>
</html>
\ No newline at end of file
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSServiceJSONSerialisation.xml
deleted
100644 → 0
View file @
901078d4
<?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>
testSlapOSJSServiceJSONSerialisation
</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>
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSServiceJSONSerialisation.zpt
deleted
100644 → 0
View file @
901078d4
<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 JS Service JSON Serialisation
</title>
</head>
<body>
<table
cellpadding=
"1"
cellspacing=
"1"
border=
"1"
>
<thead>
<tr>
<td
rowspan=
"1"
colspan=
"3"
>
Test SlapOS JS Service JSON Serialisation
</td>
</tr>
</thead>
<tbody>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_init"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_login"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_front_page"
/>
<tal:block
define=
"menu_item python: '服务'; header menu_item; menu_item_data python:'Services'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_zh"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(0)', 'footer': '没有记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tal:block
define=
"menu_action python: 'Add'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_submenu_action"
/>
</tal:block>
<tr>
<td
colspan=
"3"
><b>
Request a Software
</b></td>
</tr>
<tal:block
define=
"software_product python: 'KVM'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/select_software_product"
/>
</tal:block>
<tal:block
define=
"software_release python: 'KVM'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/select_software_release"
/>
</tal:block>
<tr>
<td
colspan=
"3"
><b>
Fill Request form
</b></td>
</tr>
<tal:block
define=
"header python: '3/3 请求服务: KVM'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//input[@id="title"]
</td>
<td></td>
</tr>
<tr>
<td>
type
</td>
<td>
//input[@id="title"]
</td>
<td>
TEST-SLAPOSJS-SERVICE-KVM-CLUSTER 0
</td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//div[contains(@data-gadget-url,
'gadget_erp5_page_slap_parameter_form.html')]//select[@name="software_type"]
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//div[contains(@data-gadget-url,
'gadget_erp5_page_slap_parameter_form.html')]//select[@name="software_type"]
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//div[contains(@data-gadget-url,
'gadget_erp5_page_slap_parameter_form.html')]//select[@name="software_type"]//option[text()="Cluster"]
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//div[contains(@data-gadget-url,
'gadget_erp5_page_slap_parameter_form.html')]//select[@name="software_type"]//option[text()="Cluster"]
</td>
<td></td>
</tr>
<tr>
<td>
select
</td>
<td>
//div[contains(@data-gadget-url,
'gadget_erp5_page_slap_parameter_form.html')]//select[@name="software_type"]
</td>
<td>
Cluster
</td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//input[@name="ADD//kvm-partition-dict"]
</td>
<td></td>
</tr>
<tr>
<td>
type
</td>
<td>
//input[@name="ADD//kvm-partition-dict"]
</td>
<td>
KVM-CLUSTER-INSTANCE-0
</td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//button[@name="//kvm-partition-dict"]
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//button[@name="//kvm-partition-dict"]
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//input[@name="//kvm-partition-dict/KVM-CLUSTER-INSTANCE-0/disk-size"]
</td>
<td></td>
</tr>
<tr>
<td>
type
</td>
<td>
//input[@name="//kvm-partition-dict/KVM-CLUSTER-INSTANCE-0/disk-size"]
</td>
<td>
10
</td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//input[@name="ADD//kvm-partition-dict"]
</td>
<td></td>
</tr>
<tr>
<td>
type
</td>
<td>
//input[@name="ADD//kvm-partition-dict"]
</td>
<td>
KVM-CLUSTER-INSTANCE-1
</td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//button[@name="//kvm-partition-dict"]
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//button[@name="//kvm-partition-dict"]
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//input[@name="//kvm-partition-dict/KVM-CLUSTER-INSTANCE-1/disk-size"]
</td>
<td></td>
</tr>
<tr>
<td>
type
</td>
<td>
//input[@name="//kvm-partition-dict/KVM-CLUSTER-INSTANCE-1/disk-size"]
</td>
<td>
20
</td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_proceed"
/>
<tal:block
tal:define=
"notification_configuration python: {'class': 'success',
'text': '已创建新的服务。'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/wait_for_notification"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_activities_and_front_page"
/>
<tal:block
define=
"menu_item python: '服务'; header menu_item; menu_item_data python:'Services'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_zh"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(1)', 'footer': '1 记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[text()="TEST-SLAPOSJS-SERVICE-KVM-CLUSTER 0"]
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//a[text()="TEST-SLAPOSJS-SERVICE-KVM-CLUSTER 0"]
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[@data-i18n="托管订阅: TEST-SLAPOSJS-SERVICE-KVM-CLUSTER 0"]
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//input[@name="//kvm-partition-dict/KVM-CLUSTER-INSTANCE-1/disk-size"]
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//input[@name="//kvm-partition-dict/KVM-CLUSTER-INSTANCE-1/disk-size"]
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//input[@name="//kvm-partition-dict/KVM-CLUSTER-INSTANCE-0/disk-size"]
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//input[@name="//kvm-partition-dict/KVM-CLUSTER-INSTANCE-0/disk-size"]
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//span[@class="bt_close CLOSE//kvm-partition-dict/KVM-CLUSTER-INSTANCE-1"]
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//span[@class="bt_close CLOSE//kvm-partition-dict/KVM-CLUSTER-INSTANCE-1"]
</td>
<td></td>
</tr>
<tr>
<td>
pause
</td>
<td>
1000
</td>
<td>
2000
</td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_save"
/>
<tal:block
tal:define=
"notification_configuration python: {'class': 'success',
'text': '数据已更新。'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/wait_for_notification"
/>
</tal:block>
<tal:block
define=
"menu_item python: '服务'; header menu_item; menu_item_data python: 'Services'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_zh"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(1)', 'footer': '1 记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[text()="TEST-SLAPOSJS-SERVICE-KVM-CLUSTER 0"]
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//a[text()="TEST-SLAPOSJS-SERVICE-KVM-CLUSTER 0"]
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[@data-i18n="托管订阅: TEST-SLAPOSJS-SERVICE-KVM-CLUSTER 0"]
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//input[@name="//kvm-partition-dict/KVM-CLUSTER-INSTANCE-0/disk-size"]
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//input[@name="//kvm-partition-dict/KVM-CLUSTER-INSTANCE-0/disk-size"]
</td>
<td></td>
</tr>
<tr>
<td>
assertElementNotPresent
</td>
<td>
//input[@name="//kvm-partition-dict/KVM-CLUSTER-INSTANCE-1/disk-size"]
</td>
<td></td>
</tr>
<tal:block
define=
"menu_action python: 'Destroy'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_submenu_action"
/>
</tal:block>
<tal:block
define=
"header python: '销毁托管订阅: TEST-SLAPOSJS-SERVICE-KVM-CLUSTER 0'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_proceed"
/>
<tal:block
tal:define=
"notification_configuration python: {'class': 'success',
'text': '服务已销毁。'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/wait_for_notification"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_activities_and_front_page"
/>
<tal:block
define=
"menu_item python: '服务'; header menu_item; menu_item_data python:'Services'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_zh"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(0)', 'footer': '没有记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_logout"
/>
</tbody>
</table>
</body>
</html>
\ No newline at end of file
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSServiceSharedByOrganisation.xml
deleted
100644 → 0
View file @
901078d4
<?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>
testSlapOSJSServiceSharedByOrganisation
</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>
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSServiceSharedByOrganisation.zpt
deleted
100644 → 0
View file @
901078d4
<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 JS Service Shared By Organisation
</title>
</head>
<body>
<table
cellpadding=
"1"
cellspacing=
"1"
border=
"1"
>
<thead>
<tr>
<td
rowspan=
"1"
colspan=
"3"
>
Test SlapOS JS Service Shared By Organisation
</td>
</tr>
</thead>
<tbody>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_init"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_login"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_front_page"
/>
<tal:block
define=
"document_title python: 'TEST-SLAPOSJS-ORGANISATION-TO-SHARE-SERVICE 0';"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/create_user_organisation"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_activities_and_front_page"
/>
<tal:block
define=
"menu_item python: '服务'; header menu_item; menu_item_data python:'Services'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_zh"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(0)', 'footer': '没有记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tal:block
define=
"menu_action python: 'Add'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_submenu_action"
/>
</tal:block>
<tr>
<td
colspan=
"3"
><b>
Request a Software
</b></td>
</tr>
<tr>
<td
colspan=
"3"
><b>
Select a Software Product
</b></td>
</tr>
<tal:block
define=
"header python: '1/3 选择一个软件'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//div[contains(@data-gadget-url, 'gadget_erp5_field_listbox.html')]//h1[contains(text(), '软件产品')]
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//div[contains(@data-gadget-url, 'gadget_erp5_field_listbox.html')]//h1[contains(text(), '软件产品')]
</td>
<td></td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/wait_for_listbox_loaded"
/>
<tr>
<td>
waitForElementPresent
</td>
<td>
//td/a[text()="Frontend"]
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//td/a[text()="Frontend"]
</td>
<td></td>
</tr>
<tr>
<td
colspan=
"3"
><b>
Select a Software Release
</b></td>
</tr>
<tal:block
define=
"header python: '2/3 选择一个发布'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//div[contains(@data-gadget-url, 'gadget_erp5_field_listbox.html')]//h1[contains(text(), '软件发布')]
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//div[contains(@data-gadget-url, 'gadget_erp5_field_listbox.html')]//h1[contains(text(), '软件发布')]
</td>
<td></td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/wait_for_listbox_loaded"
/>
<tr>
<td>
click
</td>
<td>
//td/a[text()="Frontend"]
</td>
<td></td>
</tr>
<tr>
<td
colspan=
"3"
><b>
Fill Request form
</b></td>
</tr>
<tal:block
define=
"header python: '3/3 请求服务: Frontend'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//input[@id="title"]
</td>
<td></td>
</tr>
<tr>
<td>
type
</td>
<td>
//input[@id="title"]
</td>
<td>
TEST-SLAPOSJS-SERVICE-SHARED-BY-ORGANISATION 0
</td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//div[contains(@data-gadget-url,
'gadget_erp5_page_slap_parameter_form.html')]//select[@name="software_type"]
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//div[contains(@data-gadget-url,
'gadget_erp5_page_slap_parameter_form.html')]//select[@name="software_type"]
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//div[contains(@data-gadget-url,
'gadget_erp5_page_slap_parameter_form.html')]//select[@name="software_type"]//option[text()="Custom Personal"]
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//div[contains(@data-gadget-url,
'gadget_erp5_page_slap_parameter_form.html')]//select[@name="software_type"]//option[text()="Custom Personal"]
</td>
<td></td>
</tr>
<tr>
<td>
select
</td>
<td>
//div[contains(@data-gadget-url,
'gadget_erp5_page_slap_parameter_form.html')]//select[@name="software_type"]
</td>
<td>
Custom Personal
</td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//input[@name="//public-ipv4"]
</td>
<td></td>
</tr>
<tr>
<td>
type
</td>
<td>
//input[@name="//public-ipv4"]
</td>
<td>
http://www.erp5.com
</td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_proceed"
/>
<tal:block
tal:define=
"notification_configuration python: {'class': 'success',
'text': '已创建新的服务。'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/wait_for_notification"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_activities_and_front_page"
/>
<tal:block
define=
"menu_item python: '服务'; header menu_item; menu_item_data python:'Services'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_zh"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(1)', 'footer': '1 记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[text()="TEST-SLAPOSJS-SERVICE-SHARED-BY-ORGANISATION 0"]
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//a[text()="TEST-SLAPOSJS-SERVICE-SHARED-BY-ORGANISATION 0"]
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[@data-i18n="托管订阅: TEST-SLAPOSJS-SERVICE-SHARED-BY-ORGANISATION 0"]
</td>
<td></td>
</tr>
<tr>
<td
colspan=
"3"
><b
tal:content=
"python: 'Transfer Service to a Organisation'"
>
Menu Item
</b></td>
</tr>
<tal:block
tal:define=
"menu_action python: 'Transfer'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_submenu_action"
/>
</tal:block>
<tal:block
define=
"header python: '转移服务'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//select[@name="destination"]
</td>
<td></td>
</tr>
<tr>
<td>
select
</td>
<td>
//select[@name="destination"]
</td>
<td>
TEST-SLAPOSJS-ORGANISATION-TO-SHARE-SERVICE 0
</td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_proceed"
/>
<tal:block
tal:define=
"notification_configuration python: {'class': 'success',
'text': 'Service is transferred.'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/wait_for_notification"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_activities_and_front_page"
/>
<tal:block
define=
"menu_item python: '服务'; header menu_item; menu_item_data python:'Services'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_zh"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(1)', 'footer': '1 记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[text()="TEST-SLAPOSJS-SERVICE-SHARED-BY-ORGANISATION 0"]
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//a[text()="TEST-SLAPOSJS-SERVICE-SHARED-BY-ORGANISATION 0"]
</td>
<td></td>
</tr>
<tal:block
define=
"header python: '托管订阅: TEST-SLAPOSJS-SERVICE-SHARED-BY-ORGANISATION 0'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tr>
<td>
waitForTextPresent
</td>
<td>
TEST-SLAPOSJS-ORGANISATION-TO-SHARE-SERVICE 0
</td>
<td></td>
</tr>
<tal:block
define=
"person_name python: 'Demo User Functional'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_account"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(1)', 'footer': '1 记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[text()="TEST-SLAPOSJS-ORGANISATION-TO-SHARE-SERVICE 0"]
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//a[text()="TEST-SLAPOSJS-ORGANISATION-TO-SHARE-SERVICE 0"]
</td>
<td></td>
</tr>
<tal:block
define=
"header python: '组织 : TEST-SLAPOSJS-ORGANISATION-TO-SHARE-SERVICE 0'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tr>
<td
colspan=
"3"
><b>
Invite User/b>
</td>
</tr>
<tal:block
define=
"menu_action python: 'Invite User'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_submenu_action"
/>
</tal:block>
<tal:block
define=
"header python: '生成新的邀请链接'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_proceed"
/>
<tal:block
define=
"header python: '生成新的邀请链接'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tal:block
tal:define=
"notification_configuration python: {'class': 'success',
'text': '新的邀请链接已生成。'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/wait_for_notification"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//p[@id="invitation_link"]
</td>
<td></td>
</tr>
<tr>
<td>
storeText
</td>
<td>
//p[@id="invitation_link"]
</td>
<td>
invitation_link
</td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_login_with_another_user"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_front_page"
/>
<tal:block
define=
"person_name python: 'Another Demo User Functional'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_account"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(1)', 'footer': '1 记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(0)', 'footer': '没有记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tr>
<td>
openAndWait
</td>
<td>
${invitation_link}
</td>
<td></td>
</tr>
<tal:block
define=
"header python: '成功...'; "
>
<tr>
<td>
waitForElementPresent
</td>
<td
tal:content=
"python: '//div[contains(@data-gadget-url, \'gadget_slapos_header.html\')]//span[@data-i18n=\'%s\']' % header"
></td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td
tal:content=
"python: '//div[contains(@data-gadget-url, \'gadget_slapos_header.html\')]//span[@data-i18n=\'%s\']' % header"
></td>
<td></td>
</tr>
</tal:block>
<tr>
<td>
assertTextPresent
</td>
<td>
You sucessfully join a new organisation: TEST-SLAPOSJS-ORGANISATION-TO-SHARE-SERVICE 0.
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//a[@data-i18n='Continue']
</td>
<td></td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_activities_and_front_page"
/>
<tal:block
define=
"person_name python: 'Another Demo User Functional'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_account"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(1)', 'footer': '1 记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tr>
<td>
waitForTextPresent
</td>
<td>
TEST-SLAPOSJS-ORGANISATION-TO-SHARE-SERVICE 0
</td>
<td></td>
</tr>
<tal:block
define=
"menu_item python: '服务'; header menu_item; menu_item_data python: 'Services'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_zh"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(1)', 'footer': '1 记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[text()="TEST-SLAPOSJS-SERVICE-SHARED-BY-ORGANISATION 0"]
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//a[text()="TEST-SLAPOSJS-SERVICE-SHARED-BY-ORGANISATION 0"]
</td>
<td></td>
</tr>
<tal:block
define=
"header python: '托管订阅: TEST-SLAPOSJS-SERVICE-SHARED-BY-ORGANISATION 0'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_logout"
/>
</tbody></table>
</body>
</html>
\ No newline at end of file
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSServiceSharedByProject.xml
deleted
100644 → 0
View file @
901078d4
<?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>
testSlapOSJSServiceSharedByProject
</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>
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSServiceSharedByProject.zpt
deleted
100644 → 0
View file @
901078d4
<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 JS Service Shared By Project
</title>
</head>
<body>
<table
cellpadding=
"1"
cellspacing=
"1"
border=
"1"
>
<thead>
<tr>
<td
rowspan=
"1"
colspan=
"3"
>
Test SlapOS JS Service Shared By Project
</td>
</tr>
</thead>
<tbody>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_init"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_login"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_front_page"
/>
<tal:block
define=
"document_title python: 'TEST-SLAPOSJS-PROJECT-TO-SHARE-SERVICE 0';"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/create_simple_project"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_activities_and_front_page"
/>
<tal:block
define=
"menu_item python: '服务'; header menu_item; menu_item_data python:'Services'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_zh"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(0)', 'footer': '没有记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tal:block
define=
"menu_action python: 'Add'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_submenu_action"
/>
</tal:block>
<tr>
<td
colspan=
"3"
><b>
Request a Software
</b></td>
</tr>
<tr>
<td
colspan=
"3"
><b>
Select a Software Product
</b></td>
</tr>
<tal:block
define=
"header python: '1/3 选择一个软件'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//div[contains(@data-gadget-url, 'gadget_erp5_field_listbox.html')]//h1[contains(text(), '软件产品')]
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//div[contains(@data-gadget-url, 'gadget_erp5_field_listbox.html')]//h1[contains(text(), '软件产品')]
</td>
<td></td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/wait_for_listbox_loaded"
/>
<tr>
<td>
waitForElementPresent
</td>
<td>
//td/a[text()="Frontend"]
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//td/a[text()="Frontend"]
</td>
<td></td>
</tr>
<tr>
<td
colspan=
"3"
><b>
Select a Software Release
</b></td>
</tr>
<tal:block
define=
"header python: '2/3 选择一个发布'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//div[contains(@data-gadget-url, 'gadget_erp5_field_listbox.html')]//h1[contains(text(), '软件发布')]
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//div[contains(@data-gadget-url, 'gadget_erp5_field_listbox.html')]//h1[contains(text(), '软件发布')]
</td>
<td></td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/wait_for_listbox_loaded"
/>
<tr>
<td>
click
</td>
<td>
//td/a[text()="Frontend"]
</td>
<td></td>
</tr>
<tr>
<td
colspan=
"3"
><b>
Fill Request form
</b></td>
</tr>
<tal:block
define=
"header python: '3/3 请求服务: Frontend'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//input[@id="title"]
</td>
<td></td>
</tr>
<tr>
<td>
type
</td>
<td>
//input[@id="title"]
</td>
<td>
TEST-SLAPOSJS-SERVICE-SHARED-BY-PROJECT 0
</td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//div[contains(@data-gadget-url,
'gadget_erp5_page_slap_parameter_form.html')]//select[@name="software_type"]
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//div[contains(@data-gadget-url,
'gadget_erp5_page_slap_parameter_form.html')]//select[@name="software_type"]
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//div[contains(@data-gadget-url,
'gadget_erp5_page_slap_parameter_form.html')]//select[@name="software_type"]//option[text()="Custom Personal"]
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//div[contains(@data-gadget-url,
'gadget_erp5_page_slap_parameter_form.html')]//select[@name="software_type"]//option[text()="Custom Personal"]
</td>
<td></td>
</tr>
<tr>
<td>
select
</td>
<td>
//div[contains(@data-gadget-url,
'gadget_erp5_page_slap_parameter_form.html')]//select[@name="software_type"]
</td>
<td>
Custom Personal
</td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//input[@name="//public-ipv4"]
</td>
<td></td>
</tr>
<tr>
<td>
type
</td>
<td>
//input[@name="//public-ipv4"]
</td>
<td>
http://www.erp5.com
</td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_proceed"
/>
<tal:block
tal:define=
"notification_configuration python: {'class': 'success',
'text': '已创建新的服务。'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/wait_for_notification"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_activities_and_front_page"
/>
<tal:block
define=
"menu_item python: '服务'; header menu_item; menu_item_data python:'Services'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_zh"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(1)', 'footer': '1 记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[text()="TEST-SLAPOSJS-SERVICE-SHARED-BY-PROJECT 0"]
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//a[text()="TEST-SLAPOSJS-SERVICE-SHARED-BY-PROJECT 0"]
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[@data-i18n="托管订阅: TEST-SLAPOSJS-SERVICE-SHARED-BY-PROJECT 0"]
</td>
<td></td>
</tr>
<tr>
<td
colspan=
"3"
><b
tal:content=
"python: 'Transfer Service to a Project'"
>
Menu Item
</b></td>
</tr>
<tal:block
tal:define=
"menu_action python: 'Transfer'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_submenu_action"
/>
</tal:block>
<tal:block
define=
"header python: '转移服务'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//select[@name="destination_project"]
</td>
<td></td>
</tr>
<tr>
<td>
select
</td>
<td>
//select[@name="destination_project"]
</td>
<td>
TEST-SLAPOSJS-PROJECT-TO-SHARE-SERVICE 0
</td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_proceed"
/>
<tal:block
tal:define=
"notification_configuration python: {'class': 'success',
'text': 'Service is transferred.'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/wait_for_notification"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_activities_and_front_page"
/>
<tal:block
define=
"menu_item python: '服务'; header menu_item; menu_item_data python:'Services'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_zh"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(1)', 'footer': '1 记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[text()="TEST-SLAPOSJS-SERVICE-SHARED-BY-PROJECT 0"]
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//a[text()="TEST-SLAPOSJS-SERVICE-SHARED-BY-PROJECT 0"]
</td>
<td></td>
</tr>
<tal:block
define=
"header python: '托管订阅: TEST-SLAPOSJS-SERVICE-SHARED-BY-PROJECT 0'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tr>
<td>
waitForTextPresent
</td>
<td>
TEST-SLAPOSJS-SERVICE-SHARED-BY-PROJECT 0
</td>
<td></td>
</tr>
<tal:block
define=
"menu_item python: '项目'; header menu_item; menu_item_data python:'Projects'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_zh"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(1)', 'footer': '1 记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[text()="TEST-SLAPOSJS-PROJECT-TO-SHARE-SERVICE 0"]
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//a[text()="TEST-SLAPOSJS-PROJECT-TO-SHARE-SERVICE 0"]
</td>
<td></td>
</tr>
<tal:block
define=
"header python: '项目 : TEST-SLAPOSJS-PROJECT-TO-SHARE-SERVICE 0'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tr>
<td
colspan=
"3"
><b>
Invite User/b>
</td>
</tr>
<tal:block
define=
"menu_action python: 'Invite User'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_submenu_action"
/>
</tal:block>
<tal:block
define=
"header python: '生成新的邀请链接'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_proceed"
/>
<tal:block
define=
"header python: '生成新的邀请链接'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tal:block
tal:define=
"notification_configuration python: {'class': 'success',
'text': '新的邀请链接已生成。'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/wait_for_notification"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//p[@id="invitation_link"]
</td>
<td></td>
</tr>
<tr>
<td>
storeText
</td>
<td>
//p[@id="invitation_link"]
</td>
<td>
invitation_link
</td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_login_with_another_user"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_front_page"
/>
<tal:block
define=
"menu_item python: '项目'; header menu_item; menu_item_data python:'Projects'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_zh"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(0)', 'footer': '没有记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tr>
<td>
openAndWait
</td>
<td>
${invitation_link}
</td>
<td></td>
</tr>
<tal:block
define=
"header python: '成功...'; "
>
<tr>
<td>
waitForElementPresent
</td>
<td
tal:content=
"python: '//div[contains(@data-gadget-url, \'gadget_slapos_header.html\')]//span[@data-i18n=\'%s\']' % header"
></td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td
tal:content=
"python: '//div[contains(@data-gadget-url, \'gadget_slapos_header.html\')]//span[@data-i18n=\'%s\']' % header"
></td>
<td></td>
</tr>
</tal:block>
<tr>
<td>
assertTextPresent
</td>
<td>
You sucessfully join a new project: TEST-SLAPOSJS-PROJECT-TO-SHARE-SERVICE 0.
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//a[@data-i18n='Continue']
</td>
<td></td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_activities_and_front_page"
/>
<tal:block
define=
"menu_item python: '项目'; header menu_item; menu_item_data python:'Projects'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_zh"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(1)', 'footer': '1 记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tr>
<td>
waitForTextPresent
</td>
<td>
TEST-SLAPOSJS-PROJECT-TO-SHARE-SERVICE 0
</td>
<td></td>
</tr>
<tal:block
define=
"menu_item python: '服务'; header menu_item; menu_item_data python: 'Services'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_zh"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(1)', 'footer': '1 记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[text()="TEST-SLAPOSJS-SERVICE-SHARED-BY-PROJECT 0"]
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//a[text()="TEST-SLAPOSJS-SERVICE-SHARED-BY-PROJECT 0"]
</td>
<td></td>
</tr>
<tal:block
define=
"header python: '托管订阅: TEST-SLAPOSJS-SERVICE-SHARED-BY-PROJECT 0'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_logout"
/>
</tbody></table>
</body>
</html>
\ No newline at end of file
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSServiceSlave.xml
deleted
100644 → 0
View file @
901078d4
<?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>
testSlapOSJSServiceSlave
</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>
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSServiceSlave.zpt
deleted
100644 → 0
View file @
901078d4
<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 JS Service Slave
</title>
</head>
<body>
<table
cellpadding=
"1"
cellspacing=
"1"
border=
"1"
>
<thead>
<tr>
<td
rowspan=
"1"
colspan=
"3"
>
Test SlapOS JS Service Slave
</td>
</tr>
</thead>
<tbody>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_init"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_login"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_front_page"
/>
<tal:block
define=
"menu_item python: '服务'; header menu_item; menu_item_data python:'Services'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_zh"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(0)', 'footer': '没有记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tal:block
define=
"menu_action python: 'Add'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_submenu_action"
/>
</tal:block>
<tr>
<td
colspan=
"3"
><b>
Request a Software
</b></td>
</tr>
<tal:block
define=
"software_product python: 'Frontend'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/select_software_product"
/>
</tal:block>
<tal:block
define=
"software_release python: 'Frontend'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/select_software_release"
/>
</tal:block>
<tr>
<td
colspan=
"3"
><b>
Fill Request form
</b></td>
</tr>
<tal:block
define=
"header python: '3/3 请求服务: Frontend'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//input[@id="title"]
</td>
<td></td>
</tr>
<tr>
<td>
type
</td>
<td>
//input[@id="title"]
</td>
<td>
TEST-SLAPOSJS-SERVICE-FRONTEND 0
</td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//div[contains(@data-gadget-url,
'gadget_erp5_page_slap_parameter_form.html')]//select[@name="software_type"]
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//div[contains(@data-gadget-url,
'gadget_erp5_page_slap_parameter_form.html')]//select[@name="software_type"]
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//div[contains(@data-gadget-url,
'gadget_erp5_page_slap_parameter_form.html')]//select[@name="software_type"]//option[text()="Custom Personal (Slave)"]
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//div[contains(@data-gadget-url,
'gadget_erp5_page_slap_parameter_form.html')]//select[@name="software_type"]//option[text()="Custom Personal (Slave)"]
</td>
<td></td>
</tr>
<tr>
<td>
select
</td>
<td>
//div[contains(@data-gadget-url,
'gadget_erp5_page_slap_parameter_form.html')]//select[@name="software_type"]
</td>
<td>
Custom Personal (Slave)
</td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//input[@name="//url"]
</td>
<td></td>
</tr>
<tr>
<td>
type
</td>
<td>
//input[@name="//url"]
</td>
<td>
http://www.erp5.com
</td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_proceed"
/>
<tal:block
tal:define=
"notification_configuration python: {'class': 'success',
'text': '已创建新的服务。'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/wait_for_notification"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_activities_and_front_page"
/>
<tal:block
define=
"menu_item python: '服务'; header menu_item; menu_item_data python:'Services'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_zh"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(1)', 'footer': '1 记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[text()="TEST-SLAPOSJS-SERVICE-FRONTEND 0"]
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//a[text()="TEST-SLAPOSJS-SERVICE-FRONTEND 0"]
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[@data-i18n="托管订阅: TEST-SLAPOSJS-SERVICE-FRONTEND 0"]
</td>
<td></td>
</tr>
<!-- Update Parameters -->
<!-- Update Add Ticket -->
<!-- Update Stop -->
<!-- Update Start -->
<tal:block
define=
"menu_action python: 'Destroy'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_submenu_action"
/>
</tal:block>
<tal:block
define=
"header python: '销毁托管订阅: TEST-SLAPOSJS-SERVICE-FRONTEND 0'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_proceed"
/>
<tal:block
tal:define=
"notification_configuration python: {'class': 'success',
'text': '服务已销毁。'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/wait_for_notification"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_activities_and_front_page"
/>
<tal:block
define=
"menu_item python: '服务'; header menu_item; menu_item_data python:'Services'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_zh"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(0)', 'footer': '没有记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_logout"
/>
</tbody>
</table>
</body>
</html>
\ No newline at end of file
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSSite.xml
deleted
100644 → 0
View file @
901078d4
<?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>
testSlapOSJSSite
</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>
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSSite.zpt
deleted
100644 → 0
View file @
901078d4
<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 JS Site
</title>
</head>
<body>
<table
cellpadding=
"1"
cellspacing=
"1"
border=
"1"
>
<thead>
<tr>
<td
rowspan=
"1"
colspan=
"3"
>
Test SlapOS JS Site
</td>
</tr>
</thead>
<tbody>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_init"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_login"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_front_page"
/>
<tal:block
define=
"menu_item python: '站点'; header menu_item; menu_item_data python:'Sites'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_zh"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(0)', 'footer': '没有记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tal:block
define=
"title python: 'TEST-SLAPOSJS-SET 0'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/add_simple_with_title"
/>
</tal:block>
<tal:block
tal:define=
"notification_configuration python: {'class': 'success',
'text': '新的站点已创建。'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/wait_for_notification"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/wait_for_content_loaded"
/>
<tal:block
define=
"header python: '站点 : TEST-SLAPOSJS-SET 0'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tr>
<td>
type
</td>
<td>
//input[@id="default_geographical_location_longitude"]
</td>
<td>
3.077475
</td>
</tr>
<tr>
<td>
type
</td>
<td>
//input[@id="default_geographical_location_latitude"]
</td>
<td>
50.644353
</td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/save"
/>
<!-- check site -->
<!-- Broken history to return
<tr>
<td>click</td>
<td>//a[@data-i18n="Site : TEST-SLAPOSJS-SET 0"]</td>
<td></td>
</tr>
-->
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_activities_and_front_page"
/>
<tal:block
define=
"menu_item python: '站点'; header menu_item; menu_item_data python:'Sites'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_zh"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(1)', 'footer': '1 记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[text()="TEST-SLAPOSJS-SET 0"]
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//a[text()="TEST-SLAPOSJS-SET 0"]
</td>
<td></td>
</tr>
<tal:block
define=
"header python: '站点 : TEST-SLAPOSJS-SET 0'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tal:block
tal:define=
"delete_configuration python: {'header_title': '删除站点: TEST-SLAPOSJS-SET 0',
'notification_text': '站点已删除。'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/delete_simple"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_activities_and_front_page"
/>
<tal:block
define=
"menu_item python: '站点'; header menu_item; menu_item_data python:'Sites'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_zh"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(0)', 'footer': '没有记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_logout"
/>
</tbody>
</table>
</body>
</html>
\ No newline at end of file
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSSubscribe.xml
deleted
100644 → 0
View file @
901078d4
<?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>
testSlapOSJSSubscribe
</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>
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSSubscribe.zpt
deleted
100644 → 0
View file @
901078d4
<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 JS Subscribe
</title>
</head>
<body>
<table
cellpadding=
"1"
cellspacing=
"1"
border=
"1"
>
<thead>
<tr>
<td
rowspan=
"1"
colspan=
"3"
>
Test SlapOS JS Subscribe
</td>
</tr>
</thead>
<tbody>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_init"
/>
<tr>
<td>
assertTextPresent
</td>
<td>
Done.
</td>
<td></td>
</tr>
<tr>
<td>
open
</td>
<td>
${base_url}/ERP5Site_removeTestUserList
</td>
<td></td>
</tr>
<tr>
<td>
assertTextPresent
</td>
<td>
Done.
</td>
<td></td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplate/macros/wait_for_activities"
/>
<tr>
<td>
assertTextPresent
</td>
<td>
Done.
</td>
<td></td>
</tr>
<tr>
<td>
open
</td>
<td>
${base_url}/web_site_module/hostingjs/WebSite_logout
</td>
<td></td>
</tr>
<!-- Initialize -->
<tr>
<td>
open
</td>
<td>
${base_url}/web_site_module/hostingjs/zh/
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//input[@value='登录']
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[text()='创建新用户']
</td>
<td></td>
</tr>
<tr>
<td>
clickAndWait
</td>
<td>
//a[text()='创建新用户']
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//input[@name='first_name']
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//input[@name='first_name']
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//input[@value='Register']
</td>
<td></td>
</tr>
<tr>
<td>
type
</td>
<td>
//input[@name='first_name']
</td>
<td>
Test
</td>
</tr>
<tr>
<td>
type
</td>
<td>
//input[@name='last_name']
</td>
<td>
User
</td>
</tr>
<tr>
<td>
type
</td>
<td>
//input[@name='default_email_text']
</td>
<td>
demo@nexedi.com
</td>
</tr>
<tr>
<td>
type
</td>
<td>
//input[@name='reference']
</td>
<td>
testSlapOSJSSubscribeUser
</td>
</tr>
<tr>
<td>
type
</td>
<td>
//input[@name='password']
</td>
<td>
testSlapOSJSSubscribeUser
</td>
</tr>
<tr>
<td>
type
</td>
<td>
//input[@name='password_confirmation']
</td>
<td>
testSlapOSJSSubscribeUser
</td>
</tr>
<tr>
<td>
type
</td>
<td>
//input[@name='career_subordination_title']
</td>
<td>
testSlapOSJSSubscribeOrganisation
</td>
</tr>
<tr>
<td>
type
</td>
<td>
//input[@name='default_telefone_text']
</td>
<td>
1234567890
</td>
</tr>
<tr>
<td>
type
</td>
<td>
//input[@name='default_address_street_address']
</td>
<td>
1234567890
</td>
</tr>
<tr>
<td>
type
</td>
<td>
//input[@name='default_address_zip_code']
</td>
<td>
75000
</td>
</tr>
<tr>
<td>
type
</td>
<td>
//input[@name='default_address_city']
</td>
<td>
Paris
</td>
</tr>
<tr>
<td>
select
</td>
<td>
//select[@name='default_address_region']
</td>
<td>
France
</td>
</tr>
<tr>
<td>
assertTextPresent
</td>
<td>
You will receive a confirmation email to activate your account.
</td>
<td></td>
</tr>
<tr>
<td>
clickAndWait
</td>
<td>
//input[@value='Register']
</td>
<td></td>
</tr>
<tr>
<td>
assertTextNotPresent
</td>
<td>
Selected login is already in use, please choose different one.
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//input[@value='登录']
</td>
<td></td>
</tr>
<tr>
<td>
assertTextPresent
</td>
<td>
Credential Request Created.
</td>
<td></td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplate/macros/wait_for_activities"
/>
<tr>
<td>
assertTextPresent
</td>
<td>
Done.
</td>
<td></td>
</tr>
<!-- Initialize -->
<tr>
<td>
open
</td>
<td>
${base_url}/web_site_module/hostingjs/zh/
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
__ac_name
</td>
<td></td>
</tr>
<tr>
<td>
type
</td>
<td>
__ac_name
</td>
<td>
testSlapOSJSSubscribeUser
</td>
</tr>
<tr>
<td>
type
</td>
<td>
__ac_password
</td>
<td>
testSlapOSJSSubscribeUser
</td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//input[@value="登录"]
</td>
<td></td>
</tr>
<tr>
<td>
clickAndWait
</td>
<td>
//input[@value="登录"]
</td>
<td></td>
</tr>
<!-- Logout -->
<tr>
<td>
waitForElementPresent
</td>
<td>
//button[@data-i18n='Menu']
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//button[@data-i18n='Menu']
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[@data-i18n='Logout']
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//a[@data-i18n='Logout']
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//input[@value='确认']
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//input[@value='确认']
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//input[@value='登录']
</td>
<td></td>
</tr>
</tbody>
</table>
</body>
</html>
\ No newline at end of file
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSSubscriptionAccessDenied.xml
deleted
100644 → 0
View file @
901078d4
<?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>
testSlapOSJSSubscriptionAccessDenied
</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>
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSSubscriptionAccessDenied.zpt
deleted
100644 → 0
View file @
901078d4
<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 JS Subscription Access Denied
</title>
</head>
<body>
<table
cellpadding=
"1"
cellspacing=
"1"
border=
"1"
>
<thead>
<tr>
<td
rowspan=
"1"
colspan=
"3"
>
Test SlapOS JS Subscription Access Denied
</td>
</tr>
</thead>
<tbody>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_init"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_login"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_front_page"
/>
<tal:block
define=
"menu_item python: '服务'; header menu_item; menu_item_data python:'Services'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_zh"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(0)', 'footer': '没有记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tal:block
define=
"menu_action python: 'Add'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_submenu_action"
/>
</tal:block>
<tr>
<td
colspan=
"3"
><b>
Request a Software
</b></td>
</tr>
<tal:block
define=
"software_product python: 'Frontend'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/select_software_product"
/>
</tal:block>
<tal:block
define=
"software_release python: 'Frontend'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/select_software_release"
/>
</tal:block>
<tr>
<td
colspan=
"3"
><b>
Fill Request form
</b></td>
</tr>
<tal:block
define=
"header python: '3/3 请求服务: Frontend'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//input[@id="title"]
</td>
<td></td>
</tr>
<tr>
<td>
type
</td>
<td>
//input[@id="title"]
</td>
<td>
TEST-SLAPOSJS-SERVICE-FRONTEND 0
</td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//div[contains(@data-gadget-url,
'gadget_erp5_page_slap_parameter_form.html')]//select[@name="software_type"]
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//div[contains(@data-gadget-url,
'gadget_erp5_page_slap_parameter_form.html')]//select[@name="software_type"]
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//div[contains(@data-gadget-url,
'gadget_erp5_page_slap_parameter_form.html')]//select[@name="software_type"]//option[text()="Custom Personal"]
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//div[contains(@data-gadget-url,
'gadget_erp5_page_slap_parameter_form.html')]//select[@name="software_type"]//option[text()="Custom Personal"]
</td>
<td></td>
</tr>
<tr>
<td>
select
</td>
<td>
//div[contains(@data-gadget-url,
'gadget_erp5_page_slap_parameter_form.html')]//select[@name="software_type"]
</td>
<td>
Custom Personal
</td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//input[@name="//public-ipv4"]
</td>
<td></td>
</tr>
<tr>
<td>
type
</td>
<td>
//input[@name="//public-ipv4"]
</td>
<td>
http://www.erp5.com
</td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_proceed"
/>
<tal:block
tal:define=
"notification_configuration python: {'class': 'success',
'text': '已创建新的服务。'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/wait_for_notification"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_activities_and_front_page"
/>
<tal:block
define=
"menu_item python: '服务'; header menu_item; menu_item_data python:'Services'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_zh"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(1)', 'footer': '1 记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[text()="TEST-SLAPOSJS-SERVICE-FRONTEND 0"]
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//a[text()="TEST-SLAPOSJS-SERVICE-FRONTEND 0"]
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[@data-i18n="托管订阅: TEST-SLAPOSJS-SERVICE-FRONTEND 0"]
</td>
<td></td>
</tr>
<tr>
<td>
storeLocation
</td>
<td>
hosting_subscription_link
</td>
<td></td>
</tr>
<tr>
<td>
echo
</td>
<td>
${hosting_subscription_link}
</td>
<td></td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_logout"
/>
<!-- Initialize -->
<tr>
<td>
open
</td>
<td>
${base_url}/web_site_module/hostingjs/zh/
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//input[@value='登录']
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[text()='创建新用户']
</td>
<td></td>
</tr>
<tr>
<td>
clickAndWait
</td>
<td>
//a[text()='创建新用户']
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//input[@name='first_name']
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//input[@name='first_name']
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//input[@value='Register']
</td>
<td></td>
</tr>
<tr>
<td>
type
</td>
<td>
//input[@name='first_name']
</td>
<td>
Test
</td>
</tr>
<tr>
<td>
type
</td>
<td>
//input[@name='last_name']
</td>
<td>
User
</td>
</tr>
<tr>
<td>
type
</td>
<td>
//input[@name='default_email_text']
</td>
<td>
demo@nexedi.com
</td>
</tr>
<tr>
<td>
type
</td>
<td>
//input[@name='reference']
</td>
<td>
testSlapOSJSSubscribeUser
</td>
</tr>
<tr>
<td>
type
</td>
<td>
//input[@name='password']
</td>
<td>
testSlapOSJSSubscribeUser
</td>
</tr>
<tr>
<td>
type
</td>
<td>
//input[@name='password_confirmation']
</td>
<td>
testSlapOSJSSubscribeUser
</td>
</tr>
<tr>
<td>
type
</td>
<td>
//input[@name='career_subordination_title']
</td>
<td>
testSlapOSJSSubscribeOrganisation
</td>
</tr>
<tr>
<td>
type
</td>
<td>
//input[@name='default_telefone_text']
</td>
<td>
1234567890
</td>
</tr>
<tr>
<td>
type
</td>
<td>
//input[@name='default_address_street_address']
</td>
<td>
1234567890
</td>
</tr>
<tr>
<td>
type
</td>
<td>
//input[@name='default_address_zip_code']
</td>
<td>
75000
</td>
</tr>
<tr>
<td>
type
</td>
<td>
//input[@name='default_address_city']
</td>
<td>
Paris
</td>
</tr>
<tr>
<td>
select
</td>
<td>
//select[@name='default_address_region']
</td>
<td>
France
</td>
</tr>
<tr>
<td>
assertTextPresent
</td>
<td>
You will receive a confirmation email to activate your account.
</td>
<td></td>
</tr>
<tr>
<td>
clickAndWait
</td>
<td>
//input[@value='Register']
</td>
<td></td>
</tr>
<tr>
<td>
assertTextNotPresent
</td>
<td>
Selected login is already in use, please choose different one.
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//input[@value='登录']
</td>
<td></td>
</tr>
<tr>
<td>
assertTextPresent
</td>
<td>
Credential Request Created.
</td>
<td></td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplate/macros/wait_for_activities"
/>
<tr>
<td>
assertTextPresent
</td>
<td>
Done.
</td>
<td></td>
</tr>
<!-- Go to hosting subscription, it should show the login page because we are not logged in yet, and then login with the "wrong" user to see if the error message is correctly displayed -->
<tr>
<td>
open
</td>
<td>
${hosting_subscription_link}
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
__ac_name
</td>
<td></td>
</tr>
<tr>
<td>
type
</td>
<td>
__ac_name
</td>
<td>
testSlapOSJSSubscribeUser
</td>
</tr>
<tr>
<td>
type
</td>
<td>
__ac_password
</td>
<td>
testSlapOSJSSubscribeUser
</td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//input[@value="登录"]
</td>
<td></td>
</tr>
<tr>
<td>
clickAndWait
</td>
<td>
//input[@value="登录"]
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//button[@data-i18n='Menu']
</td>
<td></td>
</tr>
<tr>
<td>
waitForTextPresent
</td>
<td>
您没有权限查看此内容
</td>
<td></td>
</tr>
<tr>
<td>
clickAndWait
</td>
<td>
//input[@value="退出"]
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//input[@value="登录"]
</td>
<td></td>
</tr>
</tbody>
</table>
</body>
</html>
\ No newline at end of file
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSTicket.xml
deleted
100644 → 0
View file @
901078d4
<?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>
testSlapOSJSTicket
</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>
master/bt5/slapos_jio_zh_ui_test/PathTemplateItem/portal_tests/slaposjs_zh_zuite/testSlapOSJSTicket.zpt
deleted
100644 → 0
View file @
901078d4
<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 JS Ticket
</title>
</head>
<body>
<table
cellpadding=
"1"
cellspacing=
"1"
border=
"1"
>
<thead>
<tr>
<td
rowspan=
"1"
colspan=
"3"
>
Test SlapOS JS Ticket
</td>
</tr>
</thead>
<tbody>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_init"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_login"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_front_page"
/>
<tal:block
define=
"menu_item python: '工单'; header menu_item; menu_item_data python: 'Tickets'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_zh"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(0)', 'footer': '没有记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tr>
<td
colspan=
"3"
><b
tal:content=
"python: 'Add an Support Request'"
>
Menu Item
</b></td>
</tr>
<tal:block
define=
"menu_action python: 'Add'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_submenu_action"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//input[@id="title"]
</td>
<td></td>
</tr>
<tr>
<td>
type
</td>
<td>
//input[@id="title"]
</td>
<td>
TEST-SLAPOSJS-SUPPORT-REQUEST 0
</td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//textarea[@id="description"]
</td>
<td></td>
</tr>
<tr>
<td>
type
</td>
<td>
//textarea[@id="description"]
</td>
<td>
TEST-SLAPOSJS-SUPPORT-REQUEST DESCRIPTION
</td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//select[@id="resource"]
</td>
<td></td>
</tr>
<tr>
<td>
select
</td>
<td>
//select[@id="resource"]
</td>
<td>
Complaint
</td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_proceed"
/>
<tal:block
tal:define=
"notification_configuration python: {'class': 'success',
'text': '新的工单已创建。'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/wait_for_notification"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/wait_for_content_loaded"
/>
<tal:block
define=
"header python: '客户支持请求 : TEST-SLAPOSJS-SUPPORT-REQUEST 0'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tr>
<td>
verifyElementNotPresent
</td>
<td>
//button[@type="submit" and @data-i18n="Save"]
</td>
<td></td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_activities_and_front_page"
/>
<tal:block
define=
"menu_item python: '工单'; header menu_item; menu_item_data python: 'Tickets'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_zh"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(1)', 'footer': '1 记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[text()="TEST-SLAPOSJS-SUPPORT-REQUEST 0"]
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//a[text()="TEST-SLAPOSJS-SUPPORT-REQUEST 0"]
</td>
<td></td>
</tr>
<tal:block
define=
"header python: '客户支持请求 : TEST-SLAPOSJS-SUPPORT-REQUEST 0'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(1)', 'footer': '1 记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//div[contains(@data-gadget-url, 'gadget_slapos_event_discussion_entry.html')]//div[@class="slapos-event-discussion-message-header"]
</td>
<td></td>
</tr>
<tr>
<td>
verifyTextPresent
</td>
<td>
Demo User Functional
</td>
<td></td>
</tr>
<tr>
<td>
verifyTextPresent
</td>
<td>
TEST-SLAPOSJS-SUPPORT-REQUEST 0
</td>
<td></td>
</tr>
<tr>
<td>
verifyTextPresent
</td>
<td>
TEST-SLAPOSJS-SUPPORT-REQUEST DESCRIPTION
</td>
<td></td>
</tr>
<tal:block
tal:define=
"menu_action python: 'Add'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_submenu_action"
/>
</tal:block>
<tal:block
tal:define=
"header python: '新的信息'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//textarea[@id="text_content"]
</td>
<td></td>
</tr>
<tr>
<td>
type
</td>
<td>
//textarea[@id="text_content"]
</td>
<td>
TEST-SLAPOSJS-SUPPORT-REQUEST NEW MESSAGE
</td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_proceed"
/>
<tal:block
tal:define=
"header python: '客户支持请求 : TEST-SLAPOSJS-SUPPORT-REQUEST 0'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_activities_and_front_page"
/>
<tal:block
define=
"menu_item python: '工单'; header menu_item; menu_item_data python: 'Tickets'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_zh"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(1)', 'footer': '1 记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[text()="TEST-SLAPOSJS-SUPPORT-REQUEST 0"]
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//a[text()="TEST-SLAPOSJS-SUPPORT-REQUEST 0"]
</td>
<td></td>
</tr>
<tal:block
define=
"header python: '客户支持请求 : TEST-SLAPOSJS-SUPPORT-REQUEST 0'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(2)', 'footer': '2 记录'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//div[contains(@data-gadget-url, 'gadget_slapos_event_discussion_entry.html')]//div[@class="slapos-event-discussion-message-header"]
</td>
<td></td>
</tr>
<tr>
<td>
verifyTextPresent
</td>
<td>
TEST-SLAPOSJS-SUPPORT-REQUEST NEW MESSAGE
</td>
<td></td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSZHCommonTemplate/macros/slapos_logout"
/>
</tbody>
</table>
</body>
</html>
\ No newline at end of file
master/bt5/slapos_jio_zh_ui_test/SkinTemplateItem/portal_skins/slapos_zh_ui_test.xml
deleted
100644 → 0
View file @
901078d4
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Folder"
module=
"OFS.Folder"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_local_properties
</string>
</key>
<value>
<tuple>
<dictionary>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
business_template_skin_layer_priority
</string>
</value>
</item>
<item>
<key>
<string>
type
</string>
</key>
<value>
<string>
float
</string>
</value>
</item>
</dictionary>
</tuple>
</value>
</item>
<item>
<key>
<string>
_objects
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
business_template_skin_layer_priority
</string>
</key>
<value>
<float>
99.0
</float>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
slapos_zh_ui_test
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
master/bt5/slapos_jio_zh_ui_test/SkinTemplateItem/portal_skins/slapos_zh_ui_test/Zuite_SlapOSZHCommonTemplate.xml
deleted
100644 → 0
View file @
901078d4
<?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>
_local_properties
</string>
</key>
<value>
<tuple>
<dictionary>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
description
</string>
</value>
</item>
<item>
<key>
<string>
type
</string>
</key>
<value>
<string>
text
</string>
</value>
</item>
</dictionary>
</tuple>
</value>
</item>
<item>
<key>
<string>
content_type
</string>
</key>
<value>
<string>
text/html
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
expand
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
Zuite_SlapOSZHCommonTemplate
</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>
master/bt5/slapos_jio_zh_ui_test/SkinTemplateItem/portal_skins/slapos_zh_ui_test/Zuite_SlapOSZHCommonTemplate.zpt
deleted
100644 → 0
View file @
901078d4
<tal:block xmlns:tal="http://xml.zope.org/namespaces/tal" xmlns:metal="http://xml.zope.org/namespaces/metal">
<tal:block metal:define-macro="slapos_init">
<tal:block tal:define="web_site_id python: 'hostingjs'">
<tal:block metal:use-macro="here/Zuite_SlapOSZHCommonTemplate/macros/slapos_init_base" />
</tal:block>
</tal:block>
<tal:block metal:define-macro="slapos_login">
<tal:block tal:define="web_site_id python: 'hostingjs'">
<tal:block metal:use-macro="here/Zuite_SlapOSZHCommonTemplate/macros/slapos_login_base" />
</tal:block>
</tal:block>
<tal:block metal:define-macro="slapos_login_with_another_user">
<tal:block tal:define="web_site_id python: 'hostingjs'">
<tal:block metal:use-macro="here/Zuite_SlapOSZHCommonTemplate/macros/slapos_login_with_another_user_base" />
</tal:block>
</tal:block>
<tal:block metal:define-macro="slapos_wait_for_activities_and_front_page">
<tal:block tal:define="web_site_id python: 'hostingjs'">
<tal:block
metal:use-macro="here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_activities_and_front_page_base" />
</tal:block>
</tal:block>
<tal:block metal:define-macro="access_menu_item_zh">
<tal:block tal:define="panel_gadget_id python: 'gadget_slapos_panel.html'">
<tal:block metal:use-macro="here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_base_zh" />
</tal:block>
</tal:block>
<tal:block metal:define-macro="access_menu_item_account">
<tal:block tal:define="panel_gadget_id python: 'gadget_slapos_panel.html'">
<tal:block metal:use-macro="here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_account_base" />
</tal:block>
</tal:block>
<tal:block metal:define-macro="slapos_init_base">
<tal:block metal:use-macro="here/Zuite_CommonTemplate/macros/init" />
<tal:block metal:use-macro="here/Zuite_CommonTemplate/macros/wait_for_activities" />
<tr>
<td>assertTextPresent</td>
<td>Done.</td>
<td></td>
</tr>
<tr>
<td>openAndWait</td>
<td>${base_url}/ERP5Site_initSlapOSUITest</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Done.</td>
<td></td>
</tr>
<tr>
<td>openAndWait</td>
<td>${base_url}/ERP5Site_setupDummyMailHost</td>
<td></td>
<tr>
<td>assertTextPresent</td>
<td>True</td>
<td></td>
</tr>
<tr>
<td>open</td>
<td>${base_url}/ERP5Site_removeTestUserList</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Done.</td>
<td></td>
</tr>
<tal:block metal:use-macro="here/Zuite_CommonTemplate/macros/wait_for_activities" />
<tr>
<td>assertTextPresent</td>
<td>Done.</td>
<td></td>
</tr>
<tr>
<td>open</td>
<td tal:content="python:'${base_url}/web_site_module/%s/ERP5Site_createTestUserList' % web_site_id">
.../ERP5Site_createTestUserList</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Done.</td>
<td></td>
</tr>
<tal:block metal:use-macro="here/Zuite_CommonTemplate/macros/wait_for_activities" />
<tr>
<td>assertTextPresent</td>
<td>Done.</td>
<td></td>
</tr>
</tal:block>
<tal:block metal:define-macro="slapos_login_base">
<!-- Logout -->
<tr>
<td>open</td>
<td tal:content="python:'${base_url}/web_site_module/%s/WebSite_logout' % web_site_id">.../WebSite_logout</td>
<td></td>
</tr>
<!-- Initialize -->
<tr>
<td>open</td>
<td tal:content="python:'${base_url}/web_site_module/%s/zh/' % web_site_id"></td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>__ac_name</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>__ac_name</td>
<td>demo_functional_user</td>
</tr>
<tr>
<td>type</td>
<td>__ac_password</td>
<td>demo_functional_user</td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//input[@value="登录"]</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value="登录"]</td>
<td></td>
</tr>
<tal:block metal:use-macro="here/Zuite_SlapOSCommonTemplate/macros/wait_for_app_loaded" />
</tal:block>
<tal:block metal:define-macro="slapos_login_with_another_user_base">
<!-- Logout -->
<tr>
<td>open</td>
<td tal:content="python:'${base_url}/web_site_module/%s/WebSite_logout' % web_site_id"></td>
<td></td>
</tr>
<!-- Initialize -->
<tr>
<td>open</td>
<td tal:content="python:'${base_url}/web_site_module/%s/zh/' % web_site_id"></td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>__ac_name</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>__ac_name</td>
<td>another_demo_functional_user</td>
</tr>
<tr>
<td>type</td>
<td>__ac_password</td>
<td>another_demo_functional_user</td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//input[@value="登录"]</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value="登录"]</td>
<td></td>
</tr>
<tal:block metal:use-macro="here/Zuite_SlapOSCommonTemplate/macros/wait_for_app_loaded" />
</tal:block>
<tal:block metal:define-macro="slapos_wait_for_activities_and_front_page_base">
<tal:block metal:use-macro="here/Zuite_CommonTemplate/macros/wait_for_activities" />
<tr>
<td>assertTextPresent</td>
<td>Done.</td>
<td></td>
</tr>
<tr>
<td>open</td>
<td tal:content="python:'${base_url}/web_site_module/%s/zh/' % web_site_id"></td>
<td></td>
</tr>
<tal:block metal:use-macro="here/Zuite_SlapOSZHCommonTemplate/macros/slapos_wait_for_front_page" />
</tal:block>
<tal:block metal:define-macro="slapos_wait_for_front_page">
<tr>
<td colspan="3"><b>Wait for Dashboard on header and front page elements</b></td>
</tr>
<!-- Dashboard -->
<tr>
<td>waitForElementPresent</td>
<td>//div[contains(@data-gadget-url, 'gadget_slapos_header.html')]//span[@data-i18n='仪表板']</td>
<td></td>
</tr>
<tr>
<td>waitForElementNotPresent</td>
<td>//div[contains(@data-gadget-url, 'gadget_erp5_field_listbox.html')]//h1//span[contains(@class,
"ui-icon-spinner")]</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//div[contains(@data-gadget-url, 'gadget_erp5_field_listbox.html')]//h1[contains(text(), "站点")]</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//div[contains(@data-gadget-url, 'gadget_erp5_field_listbox.html')]//h1[contains(text(), "待处理工单")]</td>
<td></td>
</tr>
<!-- Check if map is ok -->
<tr>
<td>waitForElementPresent</td>
<td>//a[@class='leaflet-control-zoom-out']</td>
<td></td>
</tr>
</tal:block>
<tal:block metal:define-macro="slapos_logout">
<tr>
<td colspan="3"><b>Logout the website</b></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//a[@data-i18n='Logout']</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//a[@data-i18n='Logout']</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//input[@value='确认']</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//input[@value='确认']</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//input[@value='登录']</td>
<td></td>
</tr>
</tal:block>
<tal:block metal:define-macro="access_menu_item_base_zh">
<tr>
<td colspan="3"><b tal:content="python: 'Access Entry on the Menu for : %s' % menu_item"> Menu Item </b></td>
</tr>
<tr>
<td>click</td>
<td>//button[@data-i18n='Menu']</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//button[@data-i18n='Menu']</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td
tal:content="python: '//div[contains(@data-gadget-url, \'%s\')]//a[@data-i18n=\'%s\']' % (panel_gadget_id, menu_item_data)">
</td>
<td></td>
</tr>
<tal:block metal:use-macro="here/Zuite_SlapOSCommonTemplate/macros/wait_for_content_loaded" />
<tr>
<td>assertElementPresent</td>
<td
tal:content="python: '//div[contains(@data-gadget-url, \'gadget_slapos_header.html\')]//a[@data-i18n=\'%s\']' % menu_item">
</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td
tal:content="python: '//div[contains(@data-gadget-url, \'gadget_erp5_field_listbox.html\')]//h1[contains(text(), \'%s\')]' % menu_item">
</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td
tal:content="python: '//div[contains(@data-gadget-url, \'gadget_erp5_field_listbox.html\')]//h1[contains(text(), \'%s\')]' % menu_item">
</td>
<td></td>
</tr>
</tal:block>
<tal:block metal:define-macro="access_menu_item_account_base">
<tr>
<td colspan="3"><b tal:content="python: 'Access Entry on the Menu for Account'"> Menu Item </b></td>
</tr>
<tr>
<td>click</td>
<td>//button[@data-i18n='Menu']</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//button[@data-i18n='Menu']</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td
tal:content="python: '//div[contains(@data-gadget-url, \'%s\')]//a[contains(text(), \'登录账号\')]' % panel_gadget_id">
</td>
<td></td>
</tr>
<tal:block metal:use-macro="here/Zuite_SlapOSCommonTemplate/macros/wait_for_content_loaded" />
<tr>
<td>assertElementPresent</td>
<td
tal:content="python: '//div[contains(@data-gadget-url, \'gadget_slapos_header.html\')]//a[@data-i18n=\'您的登录账号 : %s\']' % person_name">
</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td
tal:content="python: '//div[contains(@data-gadget-url, \'gadget_erp5_field_listbox.html\')]//h1[contains(text(), \'登录账号\')]'">
</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td
tal:content="python: '//div[contains(@data-gadget-url, \'gadget_erp5_field_listbox.html\')]//h1[contains(text(), \'登录账号\')]'">
</td>
<td></td>
</tr>
</tal:block>
<tal:block metal:define-macro="save">
<!-- Macro copied from renderjs tests, which is bad but it can be dropped later -->
<tal:block metal:use-macro="here/Zuite_SlapOSCommonTemplate/macros/click_save" />
<tr>
<td colspan="3"><b>Save</b></td>
</tr>
<!-- First loader while calling Base_edit, we assert it is not present, because response is very fast. -->
<tr>
<td>waitForElementNotPresent</td>
<td>//div[contains(@data-gadget-url, 'gadget_slapos_header.html')]//h1//*[contains(@class, "ui-icon-spinner")]
</td>
<td></td>
</tr>
<tr>
<td>assertElementNotPresent</td>
<td>//div[contains(@data-gadget-url, 'gadget_slapos_header.html')]//h1//*[contains(@class, "ui-icon-spinner")]
</td>
<td></td>
</tr>
<!-- Save Button is disabledn but it is sooo fast that selenium don't arrive on time. -->
<tr>
<td>verifyElementNotPresent</td>
<td>//button[@data-i18n="Save"][contains(@class, "ui-disabled")]</td>
<td></td>
</tr>
<tal:block tal:define="notification_configuration python: {'class': 'success',
'text': '数据已更新。'}">
<tal:block metal:use-macro="here/Zuite_SlapOSCommonTemplate/macros/wait_for_notification" />
</tal:block>
<tr>
<td>verifyElementPresent</td>
<td>//button[@data-i18n="Save"][contains(@class, "ui-icon-check")]</td>
<td></td>
</tr>
<tr>
<td colspan="3">
<p></p>
</td>
</tr>
</tal:block>
<tal:block metal:define-macro="create_simple_project">
<tr>
<td colspan="3">
<p>Create Simple Project</p>
</td>
</tr>
<tal:block define="menu_item python: '项目'; header menu_item; menu_item_data python:'Projects'">
<tal:block metal:use-macro="here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_zh" />
</tal:block>
<tal:block tal:define="pagination_configuration python: {'header': '(0)', 'footer': '没有记录'}">
<tal:block metal:use-macro="here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text" />
</tal:block>
<tal:block define="title python: '%s' % document_title; ">
<tal:block metal:use-macro="here/Zuite_SlapOSCommonTemplate/macros/add_simple_with_title" />
</tal:block>
<tal:block tal:define="notification_configuration python: {'class': 'success',
'text': '新的项目已创建。'}">
<tal:block metal:use-macro="here/Zuite_SlapOSCommonTemplate/macros/wait_for_notification" />
</tal:block>
<tal:block metal:use-macro="here/Zuite_SlapOSCommonTemplate/macros/wait_for_content_loaded" />
<tal:block define="header python: '项目 : %s' % document_title; ">
<tal:block metal:use-macro="here/Zuite_SlapOSCommonTemplate/macros/assert_page_header" />
</tal:block>
<tr>
<td colspan="3">
<p></p>
</td>
</tr>
</tal:block>
<tal:block metal:define-macro="create_simple_network">
<tr>
<td colspan="3">
<p>Create Simple Network</p>
</td>
</tr>
<tal:block define="menu_item python: '网络'; header menu_item; menu_item_data python:'Networks'">
<tal:block metal:use-macro="here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_zh" />
</tal:block>
<tal:block tal:define="pagination_configuration python: {'header': '(0)', 'footer': '没有记录'}">
<tal:block metal:use-macro="here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text" />
</tal:block>
<tal:block define="title python: '%s' % document_title; ">
<tal:block metal:use-macro="here/Zuite_SlapOSCommonTemplate/macros/add_simple_with_title" />
</tal:block>
<tal:block tal:define="notification_configuration python: {'class': 'success',
'text': '已创建新的网络。'}">
<tal:block metal:use-macro="here/Zuite_SlapOSCommonTemplate/macros/wait_for_notification" />
</tal:block>
<tal:block metal:use-macro="here/Zuite_SlapOSCommonTemplate/macros/wait_for_content_loaded" />
<tal:block define="header python: '计算机网络 :%s' % document_title; ">
<tal:block metal:use-macro="here/Zuite_SlapOSCommonTemplate/macros/assert_page_header" />
</tal:block>
<tr>
<td colspan="3">
<p></p>
</td>
</tr>
</tal:block>
<tal:block metal:define-macro="create_simple_computer">
<tr>
<td colspan="3">
<p>Create Simple Computer</p>
</td>
</tr>
<tal:block define="menu_item python: '服务器'; header menu_item; menu_item_data python: 'Servers'">
<tal:block metal:use-macro="here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_zh" />
</tal:block>
<tal:block tal:define="pagination_configuration python: {'header': '(0)', 'footer': '没有记录'}">
<tal:block metal:use-macro="here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text" />
</tal:block>
<tal:block define="menu_action python: 'Add'">
<tal:block metal:use-macro="here/Zuite_SlapOSCommonTemplate/macros/click_submenu_action" />
</tal:block>
<tal:block define="header python: '新的计算机'; ">
<tal:block metal:use-macro="here/Zuite_SlapOSCommonTemplate/macros/assert_page_header" />
</tal:block>
<tr>
<td>waitForElementPresent</td>
<td>//input[@id="title"]</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>//input[@id="title"]</td>
<td tal:content="python: '%s' % document_title">TEST-SLAPOSJS-COMPUTER 0</td>
</tr>
<tal:block metal:use-macro="here/Zuite_SlapOSCommonTemplate/macros/click_proceed" />
<tal:block tal:define="notification_configuration python: {'class': 'success',
'text': '新的计算机已创建。'}">
<tal:block metal:use-macro="here/Zuite_SlapOSCommonTemplate/macros/wait_for_notification" />
</tal:block>
<tr>
<td>waitForElementPresent</td>
<td>//a[text()=" Click here to access your computer "]</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//textarea[@name="certificate"]</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//textarea[@name="key"]</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//a[text()=" Click here to access your computer "]</td>
<td></td>
</tr>
<tal:block define="header python: '计算机: %s' % document_title; ">
<tal:block metal:use-macro="here/Zuite_SlapOSCommonTemplate/macros/assert_page_header" />
</tal:block>
</tal:block>
<tal:block metal:define-macro="create_user_organisation">
<tr>
<td colspan="3"><b> Create simple organisation </b> </td>
</tr>
<tal:block define="person_name python: 'Demo User Functional'">
<tal:block metal:use-macro="here/Zuite_SlapOSZHCommonTemplate/macros/access_menu_item_account" />
</tal:block>
<tal:block tal:define="pagination_configuration python: {'header': '(1)', 'footer': '1 记录'}">
<tal:block metal:use-macro="here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text" />
</tal:block>
<tal:block tal:define="pagination_configuration python: {'header': '(0)', 'footer': '没有记录'}">
<tal:block metal:use-macro="here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text" />
</tal:block>
<tal:block define="menu_action python: 'Add Organisation'">
<tal:block metal:use-macro="here/Zuite_SlapOSCommonTemplate/macros/click_submenu_action" />
</tal:block>
<tal:block define="header python: '新组织'; ">
<tal:block metal:use-macro="here/Zuite_SlapOSCommonTemplate/macros/assert_page_header" />
</tal:block>
<tr>
<td>type</td>
<td>//input[@name='title']</td>
<td tal:content="python: '%s' % (document_title)">DOCUMENT TITLE</td>
</tr>
<tal:block metal:use-macro="here/Zuite_SlapOSCommonTemplate/macros/click_proceed" />
<tal:block tal:define="notification_configuration python: {'class': 'success',
'text': '新的组织已创建。'}">
<tal:block metal:use-macro="here/Zuite_SlapOSCommonTemplate/macros/wait_for_notification" />
</tal:block>
<tal:block define="header python: '组织 : %s' % (document_title); ">
<tal:block metal:use-macro="here/Zuite_SlapOSCommonTemplate/macros/assert_page_header" />
</tal:block>
</tal:block>
<tal:block metal:define-macro="select_software_product">
<tr>
<td colspan="3"><b> Select a Software Product</b></td>
</tr>
<tal:block define="header python: '1/3 选择一个软件'; ">
<tal:block metal:use-macro="here/Zuite_SlapOSCommonTemplate/macros/assert_page_header" />
</tal:block>
<tr>
<td>waitForElementPresent</td>
<td>//div[contains(@data-gadget-url, 'gadget_erp5_field_listbox.html')]//h1[contains(text(), '软件产品')]</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//div[contains(@data-gadget-url, 'gadget_erp5_field_listbox.html')]//h1[contains(text(), '软件产品')]</td>
<td></td>
</tr>
<tal:block metal:use-macro="here/Zuite_SlapOSCommonTemplate/macros/wait_for_listbox_loaded" />
<tr>
<td>waitForElementPresent</td>
<td tal:content="python: '//td/a[text()=\'%s\']' % software_product"></td>
<td></td>
</tr>
<tr>
<td>click</td>
<td tal:content="python: '//td/a[text()=\'%s\']' % software_product"></td>
<td></td>
</tr>
</tal:block>
<tal:block metal:define-macro="select_software_release">
<tr>
<td colspan="3"><b> Select a Software Release</b></td>
</tr>
<tal:block define="header python: '2/3 选择一个发布'; ">
<tal:block metal:use-macro="here/Zuite_SlapOSCommonTemplate/macros/assert_page_header" />
</tal:block>
<tr>
<td>waitForElementPresent</td>
<td>//div[contains(@data-gadget-url, 'gadget_erp5_field_listbox.html')]//h1[contains(text(), '软件发布')]</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//div[contains(@data-gadget-url, 'gadget_erp5_field_listbox.html')]//h1[contains(text(), '软件发布')]</td>
<td></td>
</tr>
<tal:block metal:use-macro="here/Zuite_SlapOSCommonTemplate/macros/wait_for_listbox_loaded" />
<tr>
<td>click</td>
<td tal:content="python: '//td/a[text()=\'%s\']' % software_release"></td>
<td></td>
</tr>
</tal:block>
</tal:block>
master/bt5/slapos_jio_zh_ui_test/TestTemplateItem/portal_components/test.erp5.testFunctionalSlapOSUIZHHalStyle.py
deleted
100644 → 0
View file @
901078d4
##############################################################################
#
# Copyright (c) 2002-2018 Nexedi SA and Contributors. All Rights Reserved.
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsibility of assessing all potential
# consequences resulting from its eventual inadequacies and bugs
# End users who are looking for a ready-to-use solution with commercial
# guarantees and support are strongly adviced to contract a Free Software
# Service Company
#
# This program is Free Software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
##############################################################################
import
unittest
from
erp5.component.test.SlapOSTestCaseMixin
import
SlapOSTestCaseMixin
from
Products.ERP5Type.tests.ERP5TypeFunctionalTestCase
import
ERP5TypeFunctionalTestCase
class
TestSlapOSUIZHHalStyle
(
SlapOSTestCaseMixin
,
ERP5TypeFunctionalTestCase
):
foreground
=
0
run_only
=
"slaposjs_zh_zuite"
def
afterSetUp
(
self
):
ERP5TypeFunctionalTestCase
.
afterSetUp
(
self
)
SlapOSTestCaseMixin
.
afterSetUp
(
self
)
def
getBusinessTemplateList
(
self
):
bt5_list
=
SlapOSTestCaseMixin
.
getBusinessTemplateList
(
self
)
bt5_list
.
extend
(
'slapos_jio_ui_test'
,
'slapos_jio_zh_ui_test'
)
return
bt5_list
def
test_suite
():
suite
=
unittest
.
TestSuite
()
suite
.
addTest
(
unittest
.
makeSuite
(
TestSlapOSUIZHHalStyle
))
return
suite
master/bt5/slapos_jio_zh_ui_test/TestTemplateItem/portal_components/test.erp5.testFunctionalSlapOSUIZHHalStyle.xml
deleted
100644 → 0
View file @
901078d4
<?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>
testFunctionalSlapOSUIZHHalStyle
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
test.erp5.testFunctionalSlapOSUIZHHalStyle
</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/>
</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>
<none/>
</tuple>
</pickle>
</record>
</ZopeData>
master/bt5/slapos_jio_zh_ui_test/bt/dependency_list
deleted
100644 → 0
View file @
901078d4
erp5_ui_test_core
slapos_jio_ui_test
\ No newline at end of file
master/bt5/slapos_jio_zh_ui_test/bt/description
deleted
100644 → 0
View file @
901078d4
Unit test for SlapOS UI 2.0 in Chinese
\ No newline at end of file
master/bt5/slapos_jio_zh_ui_test/bt/license
deleted
100644 → 0
View file @
901078d4
GPL
\ No newline at end of file
master/bt5/slapos_jio_zh_ui_test/bt/template_format_version
deleted
100644 → 0
View file @
901078d4
1
\ No newline at end of file
master/bt5/slapos_jio_zh_ui_test/bt/template_path_list
deleted
100644 → 0
View file @
901078d4
portal_tests/slaposjs_zh_zuite
portal_tests/slaposjs_zh_zuite/**
\ No newline at end of file
master/bt5/slapos_jio_zh_ui_test/bt/template_skin_id_list
deleted
100644 → 0
View file @
901078d4
slapos_zh_ui_test
\ No newline at end of file
master/bt5/slapos_jio_zh_ui_test/bt/template_test_id_list
deleted
100644 → 0
View file @
901078d4
test.erp5.testFunctionalSlapOSUIZHHalStyle
\ No newline at end of file
master/bt5/slapos_jio_zh_ui_test/bt/title
deleted
100644 → 0
View file @
901078d4
slapos_jio_zh_ui_test
\ No newline at end of file
master/bt5/slapos_jio_zh_ui_test/bt/version
deleted
100644 → 0
View file @
901078d4
1
\ No newline at end of file
master/tests/__init__.py
View file @
92fe3d57
...
...
@@ -19,8 +19,7 @@ slapos_bt_list = [
'slapos_wechat'
,
'slapos_configurator'
,
'slapos_jio'
,
'slapos_jio_ui_test'
,
'slapos_jio_zh_ui_test'
'slapos_jio_ui_test'
]
class
SlapOSCloud
(
SavedTestSuite
,
ProjectTestSuite
):
...
...
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