Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5_fork
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Eteri
erp5_fork
Commits
29dd9cc8
Commit
29dd9cc8
authored
Sep 06, 2011
by
Arnaud Fontaine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cosmetic
parent
d19b16cb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
erp5/util/benchmark/process.py
erp5/util/benchmark/process.py
+6
-4
No files found.
erp5/util/benchmark/process.py
View file @
29dd9cc8
...
...
@@ -47,6 +47,8 @@ class BenchmarkProcess(multiprocessing.Process):
self
.
_argument_namespace
=
argument_namespace
self
.
_nb_users
=
nb_users
self
.
_user_index
=
user_index
self
.
_base_url
,
self
.
_erp5_site_id
=
argument_namespace
.
url
self
.
_username
,
self
.
_password
=
argument_namespace
.
user_tuple
[
user_index
]
# Initialized when running the test
self
.
_browser
=
None
...
...
@@ -63,10 +65,10 @@ class BenchmarkProcess(multiprocessing.Process):
"another process, flushing remaining results..."
)
def
getBrowser
(
self
,
log_file
):
info_list
=
tuple
(
self
.
_argument_namespace
.
url
)
+
\
tuple
(
self
.
_argument_namespace
.
user_tuple
[
self
.
_user_index
])
return
Browser
(
*
info_list
,
return
Browser
(
base_url
=
self
.
_base_url
,
erp5_site_id
=
self
.
_erp5_site_id
,
username
=
self
.
_username
,
password
=
self
.
_password
,
is_debug
=
self
.
_argument_namespace
.
enable_debug
,
log_file
=
log_file
,
is_legacy_listbox
=
self
.
_argument_namespace
.
is_legacy_listbox
)
...
...
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