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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Sebastien Robin
erp5
Commits
91247aec
Commit
91247aec
authored
Sep 01, 2011
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
benchmark/test_browser: prepare merge with erp5.util
parent
a256ed95
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
11 additions
and
11 deletions
+11
-11
erp5/util/benchmark/performance_tester.py
erp5/util/benchmark/performance_tester.py
+3
-3
erp5/util/benchmark/process.py
erp5/util/benchmark/process.py
+1
-1
erp5/util/benchmark/report.py
erp5/util/benchmark/report.py
+1
-1
erp5/util/benchmark/result.py
erp5/util/benchmark/result.py
+1
-1
erp5/util/benchmark/scalability_tester.py
erp5/util/benchmark/scalability_tester.py
+2
-2
erp5/util/test_browser/browser.py
erp5/util/test_browser/browser.py
+2
-2
erp5/util/test_browser/examples/testAddPerson.py
erp5/util/test_browser/examples/testAddPerson.py
+1
-1
No files found.
erp5/util/benchmark/performance_tester.py
View file @
91247aec
...
...
@@ -36,9 +36,9 @@ import xmlrpclib
import
signal
import
errno
from
erp5.utils.benchmark
.argument
import
ArgumentType
from
erp5.utils.benchmark
.process
import
BenchmarkProcess
from
erp5.utils.benchmark
.result
import
ERP5BenchmarkResult
,
CSVBenchmarkResult
from
.argument
import
ArgumentType
from
.process
import
BenchmarkProcess
from
.result
import
ERP5BenchmarkResult
,
CSVBenchmarkResult
MAXIMUM_KEYBOARD_INTERRUPT
=
5
...
...
erp5/util/benchmark/process.py
View file @
91247aec
...
...
@@ -34,7 +34,7 @@ import logging
import
signal
import
sys
from
erp5.utils
.test_browser.browser
import
Browser
from
.
.test_browser.browser
import
Browser
MAXIMUM_ERROR_COUNTER
=
10
RESULT_NUMBER_BEFORE_FLUSHING
=
100
...
...
erp5/util/benchmark/report.py
View file @
91247aec
...
...
@@ -63,7 +63,7 @@ def parseArguments():
import
csv
from
erp5.utils.benchmark
.result
import
BenchmarkResultStatistic
from
.result
import
BenchmarkResultStatistic
def
computeStatisticFromFilenameList
(
argument_namespace
,
filename_list
):
reader_list
=
[]
...
...
erp5/util/benchmark/result.py
View file @
91247aec
...
...
@@ -103,7 +103,7 @@ class BenchmarkResult(object):
def
getLogger
(
self
):
if
not
self
.
_logger
:
logging
.
basicConfig
(
stream
=
self
.
log_file
,
level
=
self
.
_log_level
)
self
.
_logger
=
logging
.
getLogger
(
'erp5.util
s
.benchmark'
)
self
.
_logger
=
logging
.
getLogger
(
'erp5.util.benchmark'
)
return
self
.
_logger
return
self
.
_logger
...
...
erp5/util/benchmark/scalability_tester.py
View file @
91247aec
...
...
@@ -28,7 +28,7 @@
#
##############################################################################
from
erp5.utils.benchmark
.result
import
CSVBenchmarkResult
from
.result
import
CSVBenchmarkResult
class
CSVScalabilityBenchmarkResult
(
CSVBenchmarkResult
):
def
flush
(
self
,
partial
=
True
):
...
...
@@ -37,7 +37,7 @@ class CSVScalabilityBenchmarkResult(CSVBenchmarkResult):
self
.
_result_file
.
tell
(),
partial
=
partial
)
from
erp5.utils.benchmark
.performance_tester
import
PerformanceTester
from
.performance_tester
import
PerformanceTester
class
ScalabilityTester
(
PerformanceTester
):
def
preRun
(
self
,
*
args
,
**
kwargs
):
...
...
erp5/util/test_browser/browser.py
View file @
91247aec
...
...
@@ -174,7 +174,7 @@ class Browser(ExtendedTestBrowser):
stream
=
log_file
and
log_file
or
sys
.
stderr
logging
.
basicConfig
(
stream
=
stream
,
level
=
logging_level
)
self
.
_logger
=
logging
.
getLogger
(
'erp5.util
s
.test_browser'
)
self
.
_logger
=
logging
.
getLogger
(
'erp5.util.test_browser'
)
self
.
_is_legacy_listbox
=
is_legacy_listbox
self
.
_is_logged_in
=
False
...
...
@@ -964,7 +964,7 @@ class ContextMainForm(MainForm):
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
obtained through calling
L{erp5.util
s
.test_browser.browser.Browser.getListboxPosition}.
L{erp5.util.test_browser.browser.Browser.getListboxPosition}.
Also, there may be several elements within a cell, thus
C{cell_element_index} allows to select which one to get (starting
...
...
erp5/util/test_browser/examples/testAddPerson.py
View file @
91247aec
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from
erp5.util
s
.test_browser.browser
import
Browser
from
erp5.util.test_browser.browser
import
Browser
ITERATION
=
20
...
...
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