Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
telecom
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
Roque
telecom
Commits
4db5b8e0
Commit
4db5b8e0
authored
Nov 29, 2017
by
Roque Porchetto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scalability_test: converting metrics to json
parent
de645707
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
scalability_test/__init__.py
scalability_test/__init__.py
+8
-6
No files found.
scalability_test/__init__.py
View file @
4db5b8e0
import
os.path
import
json
class
WendelinERP5_scalability
():
...
...
@@ -32,14 +33,15 @@ class WendelinERP5_scalability():
instance_information_dict
[
'zope-address'
])
return
metrics_url
+
"/ERP5Site_getScalabilityTestMetric"
def
getScalabilityTestOutput
(
self
,
metric_list
):
def
getScalabilityTestOutput
(
metric_list
):
if
not
metric_list
:
return
None
output_dict
=
metric_list
[
0
]
for
metric_dict
in
metric_list
:
if
metric_dict
[
"person_per_hour"
]
>
output_dict
[
"person_per_hour"
]:
output_dict
=
metric_dict
output_json
=
json
.
loads
(
metric_list
[
0
])
for
metric
in
metric_list
:
metric_json
=
json
.
loads
(
metric
)
if
metric_json
[
"person_per_hour"
]
>
output_json
[
"person_per_hour"
]:
output_json
=
metric_json
return
"Person: %s doc/hour; SaleOrder: %s doc/hour;"
%
(
str
(
output_
dict
[
"person_per_hour"
]),
str
(
output_dict
[
"sale_order_per_hour"
]))
str
(
output_
json
[
"person_per_hour"
]),
str
(
output_json
[
"sale_order_per_hour"
]))
def
getBootstrapScalabilityTestUrl
(
self
,
instance_information_dict
,
count
=
0
,
**
kw
):
bootstrap_url
=
"http://%s:%s@%s/erp5"
%
(
instance_information_dict
[
'user'
],
...
...
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