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
amrani
erp5
Commits
dc9dbda3
Commit
dc9dbda3
authored
Dec 27, 2013
by
Aurel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reactivate & fix all functionnal tests
parent
9962525a
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
32 additions
and
32 deletions
+32
-32
product/ERP5/tests/testFunctionalRunMyDocSample.py
product/ERP5/tests/testFunctionalRunMyDocSample.py
+10
-9
product/ERP5Configurator/tests/testFunctionalConfigurator.py
product/ERP5Configurator/tests/testFunctionalConfigurator.py
+9
-11
product/ERP5Configurator/tests/testFunctionalConfiguratorConsulting.py
...onfigurator/tests/testFunctionalConfiguratorConsulting.py
+13
-6
product/ERP5Type/tests/testFunctionalStandaloneUserTutorial.py
...ct/ERP5Type/tests/testFunctionalStandaloneUserTutorial.py
+0
-1
tests/__init__.py
tests/__init__.py
+0
-5
No files found.
product/ERP5/tests/testFunctionalRunMyDocSample.py
View file @
dc9dbda3
...
...
@@ -32,23 +32,24 @@ from Products.ERP5Type.tests.ERP5TypeFunctionalTestCase import \
class
TestZeleniumRunMyDocSample
(
ERP5TypeFunctionalTestCase
):
"""
Simple Test to assure that ERP5TypeFunctionalTestCase can pull code from a
Simple Test to assure that ERP5TypeFunctionalTestCase can pull code from a
URL and to test if ERP5 can provide approppriate code.
The url should provide an equivalent Zope Page template used by Zelenium.
TestPage_viewSeleniumTest is a perfect way to extract test from a Test Page,
but the usage of Test Page is not mandatory, any valid Selenium Test in HTML
but the usage of Test Page is not mandatory, any valid Selenium Test in HTML
can be used.
"""
foreground
=
0
run_only
=
"tutorial_zuite"
remote_code_url_list
=
[
"https://www.tiolive.com/nexedi/test_page_module/14/TestPage_viewSeleniumTest"
,
# Warning, the URLs bellow use cache and be delayed to
# be updated ( and produce inconsistent results).
"http://www.erp5.com/test_page_module/14/TestPage_viewSeleniumTest"
,
"http://www.erp5.com/developer-Test.Page.Sample/TestPage_viewSeleniumTest"
,]
def
afterSetUp
(
self
):
url_list
=
[]
for
x
in
self
.
portal
.
test_page_module
.
objectValues
():
if
x
.
getId
()
==
"developer-Test.Page.Sample"
:
url_list
.
append
(
"test_page_module/"
+
x
.
getId
())
self
.
remote_code_url_list
=
url_list
ERP5TypeFunctionalTestCase
.
afterSetUp
(
self
)
def
getBusinessTemplateList
(
self
):
"""
...
...
product/ERP5Configurator/tests/testFunctionalConfigurator.py
View file @
dc9dbda3
...
...
@@ -30,27 +30,25 @@ import unittest
from
Products.ERP5Type.tests.ERP5TypeFunctionalTestCase
import
\
ERP5TypeFunctionalTestCase
from
Products.ERP5Type.tests.testFunctionalStandaloneUserTutorial
import
\
BASE_REMOTE_SELENIUM_TEST_URL_LIST
class
TestZeleniumConfiguratorStandard
(
ERP5TypeFunctionalTestCase
):
run_only
=
"configurator_standard_zuite"
remote_code_url_list
=
[
"http://www.erp5.com/user-Howto.Configure.ERP5.for.SMB.With.Configurator/TestPage_viewSeleniumTest"
]
+
BASE_REMOTE_SELENIUM_TEST_URL_LIST
run_only
=
"configurator_standard_zuite"
def
afterSetUp
(
self
):
self
.
setupAutomaticBusinessTemplateRepository
()
print
self
.
portal
.
portal_templates
.
getRepositoryList
()
ERP5TypeFunctionalTestCase
.
afterSetUp
(
self
)
url_list
=
[]
for
x
in
self
.
portal
.
test_page_module
.
objectValues
():
if
x
.
getId
()
==
"user-Howto.Configure.ERP5.for.SMB.With.Configurator"
:
url_list
.
append
(
"test_page_module/"
+
x
.
getId
())
self
.
remote_code_url_list
=
url_list
self
.
setupAutomaticBusinessTemplateRepository
()
ERP5TypeFunctionalTestCase
.
afterSetUp
(
self
)
def
getBusinessTemplateList
(
self
):
"""
Return the list of business templates.
"""
return
(
'erp5_core_proxy_field_legacy'
,
'erp5_full_text_myisam_catalog'
,
'erp5_base'
,
'erp5_workflow'
,
'erp5_base'
,
'erp5_workflow'
,
'erp5_configurator'
,
'erp5_configurator_standard'
,
# Test suite
'erp5_ui_test_core'
,
'erp5_configurator_standard_ui_test'
,
...
...
product/ERP5Configurator/tests/testFunctionalConfiguratorConsulting.py
View file @
dc9dbda3
...
...
@@ -30,14 +30,21 @@ import unittest
from
Products.ERP5Configurator.tests.testFunctionalConfigurator
import
\
TestZeleniumConfiguratorStandard
from
Products.ERP5Type.tests.
testFunctionalStandaloneUserTutorial
import
\
BASE_REMOTE_SELENIUM_TEST_URL_LIST
from
Products.ERP5Type.tests.
ERP5TypeFunctionalTestCase
import
\
ERP5TypeFunctionalTestCase
class
TestZeleniumConfiguratorConsulting
(
TestZeleniumConfiguratorStandard
):
class
TestZeleniumConfiguratorConsulting
(
TestZeleniumConfiguratorStandard
,
ERP5TypeFunctionalTestCase
):
run_only
=
"configurator_consulting_standard_zuite"
remote_code_url_list
=
[
"http://www.erp5.com/user-Howto.Configure.ERP5.for.SMB.With.Consultant.Configurator/TestPage_viewSeleniumTest"
]
+
BASE_REMOTE_SELENIUM_TEST_URL_LIST
def
afterSetUp
(
self
):
url_list
=
[]
for
x
in
self
.
portal
.
test_page_module
.
objectValues
():
if
x
.
getId
()
==
"user-Howto.Configure.ERP5.for.SMB.With.Consultant.Configurator"
:
url_list
.
append
(
"test_page_module/"
+
x
.
getId
())
self
.
remote_code_url_list
=
url_list
self
.
setupAutomaticBusinessTemplateRepository
()
ERP5TypeFunctionalTestCase
.
afterSetUp
(
self
)
def
test_suite
():
suite
=
unittest
.
TestSuite
()
...
...
product/ERP5Type/tests/testFunctionalStandaloneUserTutorial.py
View file @
dc9dbda3
...
...
@@ -66,7 +66,6 @@ class TestZeleniumStandaloneUserTutorial(ERP5TypeFunctionalTestCase):
'erp5_rss_style'
,
'erp5_discussion'
,
'erp5_l10n_fr'
,
'erp5_crm'
,
'erp5_user_tutorial_ui_test'
,
'erp5_configurator_standard_ui_test'
,
'erp5_run_my_doc'
,
'erp5_test_page_test_data'
,
)
...
...
tests/__init__.py
View file @
dc9dbda3
...
...
@@ -81,11 +81,6 @@ class ERP5(_ERP5):
if
test_case
.
startswith
(
'testLive'
)
or
test_case
.
startswith
(
'testVifib'
)
\
or
test_case
.
find
(
'Performance'
)
>
0
\
or
test_case
in
(
'testERP5LdapCatalog'
,
# XXX (Ivan), until LDAP server is available this test will alway fail
# tests reading selenium tables from erp5.com
# 'testFunctionalStandaloneUserTutorial',
'testFunctionalRunMyDocSample'
,
'testFunctionalConfigurator'
,
'testFunctionalConfiguratorConsulting'
,
# not maintained
'testERP5eGov'
,
'testAccounting_l10n_fr_m9'
):
...
...
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