Commit 8c6785a9 authored by Rafael Monnerat's avatar Rafael Monnerat

Drop URL list duplication and start to use already merged tests.

Person, Organisation, Link person and Organisation and few others tests
were merged with the tutorials, due this some TESTONLY were archived.
parent 0bfd6e16
......@@ -30,30 +30,15 @@ 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"
base_remote_code_url = [
"http://www.erp5.com/user-Howto.Create.Person-TESTONLY/TestPage_viewSeleniumTest",
"http://www.erp5.com/user-Howto.Create.Organisations-TESTONLY/TestPage_viewSeleniumTest",
"http://www.erp5.com/user-Howto.Link.Persons.and.Organisations-TESTONLY/TestPage_viewSeleniumTest",
"http://www.erp5.com/user-Howto.Create.Campaigns-TESTONLY/TestPage_viewSeleniumTest",
"http://www.erp5.com/user-Howto.Create.Outgoing.Events-TESTONLY/TestPage_viewSeleniumTest",
"http://www.erp5.com/user-Howto.Post.Outgoing.Events-TESTONLY/TestPage_viewSeleniumTest",
# Chapter 17 is missing here
"http://www.erp5.com/user-Howto.Process.Incoming.Events-TESTONLY/TestPage_viewSeleniumTest",
# Products test bellow
"http://www.erp5.com/user-Howto.Create.and.Manage.Products-TESTONLY/TestPage_viewSeleniumTest",
# The test bellow should be splited because it handle several tutorials at
# once which is what it is wanted.
"http://www.erp5.com/user-Howto.Create.Sale.Orders-TESTONLY/TestPage_viewSeleniumTest",
# Additional Tests not yet related to any previous tutorial
"http://www.erp5.com/user-HowTo.Use.FullText.Search-TESTONLY/TestPage_viewSeleniumTest",
"http://www.erp5.com/user-HowTo.Change.Language-TESTONLY/TestPage_viewSeleniumTest"
]
remote_code_url_list = [
"http://www.erp5.com/user-Howto.Configure.ERP5.for.SMB.With.Configurator/TestPage_viewSeleniumTest"
] + base_remote_code_url
] + BASE_REMOTE_SELENIUM_TEST_URL_LIST
def afterSetUp(self):
# information to know if a business template is a standard business
......
......@@ -30,12 +30,14 @@ import unittest
from Products.ERP5Configurator.tests.testFunctionalConfigurator import \
TestZeleniumConfiguratorStandard
from Products.ERP5Type.tests.testFunctionalStandaloneUserTutorial import \
BASE_REMOTE_SELENIUM_TEST_URL_LIST
class TestZeleniumConfiguratorConsulting(TestZeleniumConfiguratorStandard):
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"
] + TestZeleniumConfiguratorStandard.base_remote_code_url
] + BASE_REMOTE_SELENIUM_TEST_URL_LIST
def test_suite():
suite = unittest.TestSuite()
......
......@@ -34,29 +34,32 @@ import transaction
from Products.ERP5Type.tests.ERP5TypeFunctionalTestCase import \
ERP5TypeFunctionalTestCase
class TestZeleniumStandaloneUserTutorial(ERP5TypeFunctionalTestCase):
run_only = "user_tutorial_zuite"
remote_code_url_list = [
"http://www.erp5.com/user-Howto.Create.Person-TESTONLY/TestPage_viewSeleniumTest",
"http://www.erp5.com/user-Howto.Create.Organisations-TESTONLY/TestPage_viewSeleniumTest",
"http://www.erp5.com/user-Howto.Link.Persons.and.Organisations-TESTONLY/TestPage_viewSeleniumTest",
"http://www.erp5.com/user-Howto.Create.Campaigns-TESTONLY/TestPage_viewSeleniumTest",
"http://www.erp5.com/user-Howto.Create.Outgoing.Events-TESTONLY/TestPage_viewSeleniumTest",
"http://www.erp5.com/user-Howto.Post.Outgoing.Events-TESTONLY/TestPage_viewSeleniumTest",
# Chapter 17 is missing here
BASE_REMOTE_SELENIUM_TEST_URL_LIST = [
"http://www.erp5.com/user-Howto.Create.Person-HTML5/TestPage_viewSeleniumTest",
"http://www.erp5.com/user-Howto.Create.Organisations-HTML5/TestPage_viewSeleniumTest",
"http://www.erp5.com/user-Howto.Link.Persons.and.Organisations-HTML5/TestPage_viewSeleniumTest",
"http://www.erp5.com/user-Howto.Create.Campaigns-HTML5/TestPage_viewSeleniumTest",
"http://www.erp5.com/user-Howto.Create.Outgoing.Events-HTML5/TestPage_viewSeleniumTest",
"http://www.erp5.com/user-Howto.Post.Outgoing.Events-HTML5/TestPage_viewSeleniumTest",
# DO NOT CONTAINS TEST YET "http://www.erp5.com/user-Howto.Manage.Support.Request-HTML5/TestPage_viewSeleniumTest",
"http://www.erp5.com/user-Howto.Process.Incoming.Events-TESTONLY/TestPage_viewSeleniumTest",
# Products test bellow
"http://www.erp5.com/user-Howto.Create.and.Manage.Products-TESTONLY/TestPage_viewSeleniumTest",
# Part 2 - PDM, Trade and simulation related tests
"http://www.erp5.com/user-Howto.Create.and.Manage.Products-HTML5/TestPage_viewSeleniumTest",
# DO NOT CONTAINS TEST YET "http://www.erp5.com/user-Howto.Create.Trade.Conditions-HTML5/TestPage_viewSeleniumTest",
# The test bellow should be splited because it handle several tutorials at
# once which is what it is wanted.
"http://www.erp5.com/user-Howto.Create.Sale.Orders-TESTONLY/TestPage_viewSeleniumTest",
# Additional Tests not yet related to any previous tutorial
# Extra Tests, Additional Tests not yet related to any previous tutorial
"http://www.erp5.com/user-HowTo.Use.FullText.Search-TESTONLY/TestPage_viewSeleniumTest",
"http://www.erp5.com/user-HowTo.Change.Language-TESTONLY/TestPage_viewSeleniumTest"
]
]
class TestZeleniumStandaloneUserTutorial(ERP5TypeFunctionalTestCase):
run_only = "user_tutorial_zuite"
remote_code_url_list = BASE_REMOTE_SELENIUM_TEST_URL_LIST
def getBusinessTemplateList(self):
"""
......
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