Commit 5de594ba authored by Roque Porchetto's avatar Roque Porchetto

scalability_test: new method getScalabilityTestOutput in init test suite

parent 36adf0e3
......@@ -32,6 +32,15 @@ class WendelinERP5_scalability():
instance_information_dict['zope-address'])
return metrics_url + "/ERP5Site_getScalabilityTestMetric"
def getScalabilityTestOutput(self, 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
return "Person: %s doc/hour; SaleOrder: %s doc/hour;"
% (str(output_dict["person_per_hour"]), str(output_dict["sale_order_per_hour"]))
def getBootstrapScalabilityTestUrl(self, count=0, instance_information_dict, **kw):
bootstrap_url = "http://%s:%s@%s/erp5" % (instance_information_dict['user'],
instance_information_dict['password'],
......
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