Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
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
Klaus Wölfel
erp5
Commits
1cd18b7e
Commit
1cd18b7e
authored
Jul 03, 2018
by
Sven Franck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_corporate_identity_test: foreground and truc
parent
56fcb41c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
78 additions
and
50 deletions
+78
-50
bt5/erp5_corporate_identity_test/PathTemplateItem/portal_tests/template_test_zuite_dummy/testAndUpdateTestLetterTemplate.zpt
...late_test_zuite_dummy/testAndUpdateTestLetterTemplate.zpt
+77
-50
bt5/erp5_corporate_identity_test/TestTemplateItem/portal_components/test.erp5.testFunctionalCorporateIdentityTemplateList.py
.../test.erp5.testFunctionalCorporateIdentityTemplateList.py
+1
-0
No files found.
bt5/erp5_corporate_identity_test/PathTemplateItem/portal_tests/template_test_zuite_dummy/testAndUpdateTestLetterTemplate.zpt
View file @
1cd18b7e
...
...
@@ -2,60 +2,87 @@
xmlns:metal=
"http://xml.zope.org/namespaces/metal"
>
<head>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=UTF-8"
>
<title>
Test
and Update Test Files for LETTER Template
</title>
<title>
Test
Local Property with List Fields
</title>
</head>
<body>
<!--
UPDATE comparison files for LIVE TESTS | DON'T RUN AUTOMATICALLY
(else tests will always pass...)
This Zuite updates all test files (diff-html, pdfs, bmps) used in the LiveTests
based on the example web pages included in this bt5. Run this zuite after making
changes to the bt5 which will alter their look to automatically update all files
(else you need to do it by hand). This also means: DON'T RUN THIS AUTOMATICALLY,
because it will also update all test files with any errors you make, causing
liveTests to always pass (comparing wrong rendering to wrong test file).
Help:
http://www.seleniumhq.org/docs/02_selenium_ide.jsp#selenium-commands-selenese
http://seleniummaster.com/sitecontent/index.php/introduction-to-selenium-automation/selenium-ide/114-selenium-ide-complete-list-of-commands
Note:
# make sure to set editor to plain text in (erp5 test preferences)
-->
<table
cellpadding=
"1"
cellspacing=
"1"
border=
"1"
>
<thead>
<tr><td
rowspan=
"1"
colspan=
"3"
>
Test Letter Template UI
</td></tr>
</thead>
<tbody>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplate/macros/init"
/>
<tal:block
tal:define=
"portal here/portal_url/getPortalObject;
caller python: getattr(context, 'Zuite_setSkipSave', None);
no_file_update python: caller() if caller is not None else True"
>
<tr>
<td>
open
</td>
<td>
${base_url}/bar_module/ListBoxZuite_reset
</td>
<td></td>
</tr>
<tr>
<td>
assertTextPresent
</td>
<td>
Reset Successfully.
</td>
<td></td>
</tr>
<tr><td
rowspan=
"1"
colspan=
"3"
>
Test Local Property with List Fields
</td></tr>
</thead><tbody>
<tal:block
metal:use-macro=
"here/ListBoxZuite_CommonTemplate/macros/init"
/>
<tr>
<td>
open
</td>
<td>
${base_url}/foo_module/FooModule_createObjects?num:int=1
</td>
<td></td>
</tr>
<tr>
<td>
assertTextPresent
</td>
<td>
Created Successfully.
</td>
<td></td>
</tr>
<tr>
<td>
open
</td>
<td>
${base_url}/foo_module/Zuite_waitForActivities
</td>
<td></td>
</tr>
<tr>
<td>
assertTextPresent
</td>
<td>
Done.
</td>
<td></td>
</tr>
<tr>
<td>
open
</td>
<td>
${base_url}/foo_module/0/Foo_view
</td>
<td></td>
</tr>
<tr>
<td>
verifyValue
</td>
<td>
field_my_local_title
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//select[@name='field_my_local_title']
</td>
<td></td>
</tr>
<tr>
<td>
assertSelected
</td>
<td>
//select[@name='field_my_local_title']
</td>
<td></td>
</tr>
<tr>
<td>
select
</td>
<td>
//select[@name='field_my_local_title']
</td>
<td>
label=First title
</td>
</tr>
<tr>
<td>
clickAndWait
</td>
<td>
//button[@title='Save']
</td>
<td></td>
</tr>
<tr>
<td>
verifyPortalStatusMessage
</td>
<td>
Data updated.
</td>
<td></td>
</tr>
<tr>
<td>
assertSelected
</td>
<td>
//select[@name='field_my_local_title']
</td>
<td>
First title
</td>
</tr>
<tr>
<td>
open
</td>
<td>
${base_url}/foo_module/0/Foo_getLocalTitle
</td>
<td></td>
</tr>
<tr>
<td>
assertTextPresent
</td>
<td>
First title
</td>
<td></td>
</tr>
</tal:block>
<tr>
<td>
open
</td>
<td>
${base_url}/bar_module/ListBoxZuite_reset
</td>
<td></td>
</tr>
<tr>
<td>
assertTextPresent
</td>
<td>
Reset Successfully.
</td>
<td></td>
</tr>
</tbody>
</table>
</tbody></table>
</body>
</html>
\ No newline at end of file
bt5/erp5_corporate_identity_test/TestTemplateItem/portal_components/test.erp5.testFunctionalCorporateIdentityTemplateList.py
View file @
1cd18b7e
...
...
@@ -29,6 +29,7 @@ import unittest
from
Products.ERP5Type.tests.ERP5TypeFunctionalTestCase
import
ERP5TypeFunctionalTestCase
class
TestFunctionalCorporateIdentityTemplateList
(
ERP5TypeFunctionalTestCase
):
foreground
=
0
run_only
=
"template_test_zuite_dummy"
def
getBusinessTemplateList
(
self
):
...
...
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