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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Titouan Soulard
erp5
Commits
3a4a1c08
Commit
3a4a1c08
authored
Sep 05, 2019
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Dynamically calculate number of users for given test run
/reviewed-on
nexedi/erp5!929
parent
eec8e2ae
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
scalability_test/__init__.py
scalability_test/__init__.py
+6
-1
No files found.
scalability_test/__init__.py
View file @
3a4a1c08
...
...
@@ -18,7 +18,12 @@ class ERP5_scalability():
return
'example/scalabilityUsers'
def
getUserQuantity
(
self
,
test_number
):
return
[
8
,
14
,
20
,
28
,
36
][
test_number
]
"""
Return number of users for a given test run.
"""
users_per_zope_process
=
8
max_tests
=
100
return
[
x
*
users_per_zope_process
for
x
in
range
(
1
,
max_tests
)][
test_number
]
def
getTestDuration
(
self
,
test_number
):
return
60
*
10
...
...
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