Commit dc9dbda3 authored by Aurel's avatar Aurel

reactivate & fix all functionnal tests

parent 9962525a
...@@ -41,14 +41,15 @@ class TestZeleniumRunMyDocSample(ERP5TypeFunctionalTestCase): ...@@ -41,14 +41,15 @@ class TestZeleniumRunMyDocSample(ERP5TypeFunctionalTestCase):
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. can be used.
""" """
foreground = 0
run_only = "tutorial_zuite" run_only = "tutorial_zuite"
remote_code_url_list = [
"https://www.tiolive.com/nexedi/test_page_module/14/TestPage_viewSeleniumTest", def afterSetUp(self):
# Warning, the URLs bellow use cache and be delayed to url_list = []
# be updated ( and produce inconsistent results). for x in self.portal.test_page_module.objectValues():
"http://www.erp5.com/test_page_module/14/TestPage_viewSeleniumTest", if x.getId() == "developer-Test.Page.Sample":
"http://www.erp5.com/developer-Test.Page.Sample/TestPage_viewSeleniumTest",] url_list.append("test_page_module/"+x.getId())
self.remote_code_url_list = url_list
ERP5TypeFunctionalTestCase.afterSetUp(self)
def getBusinessTemplateList(self): def getBusinessTemplateList(self):
""" """
......
...@@ -30,19 +30,17 @@ import unittest ...@@ -30,19 +30,17 @@ import unittest
from Products.ERP5Type.tests.ERP5TypeFunctionalTestCase import \ from Products.ERP5Type.tests.ERP5TypeFunctionalTestCase import \
ERP5TypeFunctionalTestCase ERP5TypeFunctionalTestCase
from Products.ERP5Type.tests.testFunctionalStandaloneUserTutorial import \
BASE_REMOTE_SELENIUM_TEST_URL_LIST
class TestZeleniumConfiguratorStandard(ERP5TypeFunctionalTestCase): class TestZeleniumConfiguratorStandard(ERP5TypeFunctionalTestCase):
run_only = "configurator_standard_zuite"
remote_code_url_list = [ run_only = "configurator_standard_zuite"
"http://www.erp5.com/user-Howto.Configure.ERP5.for.SMB.With.Configurator/TestPage_viewSeleniumTest"
] + BASE_REMOTE_SELENIUM_TEST_URL_LIST
def afterSetUp(self): def 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() self.setupAutomaticBusinessTemplateRepository()
print self.portal.portal_templates.getRepositoryList()
ERP5TypeFunctionalTestCase.afterSetUp(self) ERP5TypeFunctionalTestCase.afterSetUp(self)
def getBusinessTemplateList(self): def getBusinessTemplateList(self):
......
...@@ -30,14 +30,21 @@ import unittest ...@@ -30,14 +30,21 @@ import unittest
from Products.ERP5Configurator.tests.testFunctionalConfigurator import \ from Products.ERP5Configurator.tests.testFunctionalConfigurator import \
TestZeleniumConfiguratorStandard TestZeleniumConfiguratorStandard
from Products.ERP5Type.tests.testFunctionalStandaloneUserTutorial import \ from Products.ERP5Type.tests.ERP5TypeFunctionalTestCase import \
BASE_REMOTE_SELENIUM_TEST_URL_LIST ERP5TypeFunctionalTestCase
class TestZeleniumConfiguratorConsulting(TestZeleniumConfiguratorStandard): class TestZeleniumConfiguratorConsulting(TestZeleniumConfiguratorStandard, ERP5TypeFunctionalTestCase):
run_only = "configurator_consulting_standard_zuite" 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" def afterSetUp(self):
] + BASE_REMOTE_SELENIUM_TEST_URL_LIST 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(): def test_suite():
suite = unittest.TestSuite() suite = unittest.TestSuite()
......
...@@ -66,7 +66,6 @@ class TestZeleniumStandaloneUserTutorial(ERP5TypeFunctionalTestCase): ...@@ -66,7 +66,6 @@ class TestZeleniumStandaloneUserTutorial(ERP5TypeFunctionalTestCase):
'erp5_rss_style', 'erp5_discussion', 'erp5_rss_style', 'erp5_discussion',
'erp5_l10n_fr', 'erp5_crm', 'erp5_l10n_fr', 'erp5_crm',
'erp5_user_tutorial_ui_test', 'erp5_user_tutorial_ui_test',
'erp5_configurator_standard_ui_test',
'erp5_run_my_doc', 'erp5_run_my_doc',
'erp5_test_page_test_data', 'erp5_test_page_test_data',
) )
......
...@@ -81,11 +81,6 @@ class ERP5(_ERP5): ...@@ -81,11 +81,6 @@ class ERP5(_ERP5):
if test_case.startswith('testLive') or test_case.startswith('testVifib') \ if test_case.startswith('testLive') or test_case.startswith('testVifib') \
or test_case.find('Performance') > 0 \ or test_case.find('Performance') > 0 \
or test_case in ('testERP5LdapCatalog', # XXX (Ivan), until LDAP server is available this test will alway fail 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 # not maintained
'testERP5eGov', 'testERP5eGov',
'testAccounting_l10n_fr_m9'): 'testAccounting_l10n_fr_m9'):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment