Commit d7c02f2c authored by Benjamin Blanc's avatar Benjamin Blanc

util: runScalabilityTestSuite add call to performance tester

parent e49b56bf
...@@ -15,6 +15,8 @@ from erp5.util.benchmark.performance_tester import PerformanceTester ...@@ -15,6 +15,8 @@ from erp5.util.benchmark.performance_tester import PerformanceTester
from erp5.util import taskdistribution from erp5.util import taskdistribution
from erp5.util.testnode import testnodeUtils from erp5.util.testnode import testnodeUtils
from subprocess import call
class ScalabilityTest(object): class ScalabilityTest(object):
def __init__(self, data, test_result): def __init__(self, data, test_result):
self.__dict__ = {} self.__dict__ = {}
...@@ -128,9 +130,12 @@ class ScalabilityLauncher(object): ...@@ -128,9 +130,12 @@ class ScalabilityLauncher(object):
else: else:
# Here call a runScalabilityTest ( placed on product/ERP5Type/tests ) ? # Here call a runScalabilityTest ( placed on product/ERP5Type/tests ) ?
self.log("Test Case %s is running..." %(current_test.title)) self.log("Test Case %s is running..." %(current_test.title))
time.sleep(5) # Call the performance_tester_erp5
# Todo : launch performance_tester with good parameters call(["performance_tester_erp5",
# and self.__argumentNamespace.erp5_url,
'1',
'createPerson'
])
self.log("Test Case %s is finish" %(current_test.title)) self.log("Test Case %s is finish" %(current_test.title))
current_test.stop() current_test.stop()
self.log("Test Case Stopped") self.log("Test Case Stopped")
......
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