Commit 91247aec authored by Julien Muchembled's avatar Julien Muchembled

benchmark/test_browser: prepare merge with erp5.util

parent a256ed95
...@@ -36,9 +36,9 @@ import xmlrpclib ...@@ -36,9 +36,9 @@ import xmlrpclib
import signal import signal
import errno import errno
from erp5.utils.benchmark.argument import ArgumentType from .argument import ArgumentType
from erp5.utils.benchmark.process import BenchmarkProcess from .process import BenchmarkProcess
from erp5.utils.benchmark.result import ERP5BenchmarkResult, CSVBenchmarkResult from .result import ERP5BenchmarkResult, CSVBenchmarkResult
MAXIMUM_KEYBOARD_INTERRUPT = 5 MAXIMUM_KEYBOARD_INTERRUPT = 5
......
...@@ -34,7 +34,7 @@ import logging ...@@ -34,7 +34,7 @@ import logging
import signal import signal
import sys import sys
from erp5.utils.test_browser.browser import Browser from ..test_browser.browser import Browser
MAXIMUM_ERROR_COUNTER = 10 MAXIMUM_ERROR_COUNTER = 10
RESULT_NUMBER_BEFORE_FLUSHING = 100 RESULT_NUMBER_BEFORE_FLUSHING = 100
......
...@@ -63,7 +63,7 @@ def parseArguments(): ...@@ -63,7 +63,7 @@ def parseArguments():
import csv import csv
from erp5.utils.benchmark.result import BenchmarkResultStatistic from .result import BenchmarkResultStatistic
def computeStatisticFromFilenameList(argument_namespace, filename_list): def computeStatisticFromFilenameList(argument_namespace, filename_list):
reader_list = [] reader_list = []
......
...@@ -103,7 +103,7 @@ class BenchmarkResult(object): ...@@ -103,7 +103,7 @@ class BenchmarkResult(object):
def getLogger(self): def getLogger(self):
if not self._logger: if not self._logger:
logging.basicConfig(stream=self.log_file, level=self._log_level) logging.basicConfig(stream=self.log_file, level=self._log_level)
self._logger = logging.getLogger('erp5.utils.benchmark') self._logger = logging.getLogger('erp5.util.benchmark')
return self._logger return self._logger
return self._logger return self._logger
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
# #
############################################################################## ##############################################################################
from erp5.utils.benchmark.result import CSVBenchmarkResult from .result import CSVBenchmarkResult
class CSVScalabilityBenchmarkResult(CSVBenchmarkResult): class CSVScalabilityBenchmarkResult(CSVBenchmarkResult):
def flush(self, partial=True): def flush(self, partial=True):
...@@ -37,7 +37,7 @@ class CSVScalabilityBenchmarkResult(CSVBenchmarkResult): ...@@ -37,7 +37,7 @@ class CSVScalabilityBenchmarkResult(CSVBenchmarkResult):
self._result_file.tell(), self._result_file.tell(),
partial=partial) partial=partial)
from erp5.utils.benchmark.performance_tester import PerformanceTester from .performance_tester import PerformanceTester
class ScalabilityTester(PerformanceTester): class ScalabilityTester(PerformanceTester):
def preRun(self, *args, **kwargs): def preRun(self, *args, **kwargs):
......
...@@ -174,7 +174,7 @@ class Browser(ExtendedTestBrowser): ...@@ -174,7 +174,7 @@ class Browser(ExtendedTestBrowser):
stream = log_file and log_file or sys.stderr stream = log_file and log_file or sys.stderr
logging.basicConfig(stream=stream, level=logging_level) logging.basicConfig(stream=stream, level=logging_level)
self._logger = logging.getLogger('erp5.utils.test_browser') self._logger = logging.getLogger('erp5.util.test_browser')
self._is_legacy_listbox = is_legacy_listbox self._is_legacy_listbox = is_legacy_listbox
self._is_logged_in = False self._is_logged_in = False
...@@ -964,7 +964,7 @@ class ContextMainForm(MainForm): ...@@ -964,7 +964,7 @@ class ContextMainForm(MainForm):
from 1), excluding hidden control and those whose class is hidden from 1), excluding hidden control and those whose class is hidden
too. The position of a cell from a column or line number can be too. The position of a cell from a column or line number can be
obtained through calling obtained through calling
L{erp5.utils.test_browser.browser.Browser.getListboxPosition}. L{erp5.util.test_browser.browser.Browser.getListboxPosition}.
Also, there may be several elements within a cell, thus Also, there may be several elements within a cell, thus
C{cell_element_index} allows to select which one to get (starting C{cell_element_index} allows to select which one to get (starting
......
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from erp5.utils.test_browser.browser import Browser from erp5.util.test_browser.browser import Browser
ITERATION = 20 ITERATION = 20
......
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