Commit 261ba046 authored by Arnaud Fontaine's avatar Arnaud Fontaine

Do not open ERP5 homepage before calling a benchmark suite.

This allows to Specify a random sleep time (with 'sleep' parameter) to
get more realistic results. Update the example accordingly.
parent b53dbfca
......@@ -12,6 +12,7 @@ def accessSPL(result, browser):
spl = module.searchFolder(limit=(i,1))
return spl.getId()
"""
browser.open()
browser.mainForm.submitLogin()
base_url = browser.url
result('Get ID',
......
......@@ -14,6 +14,9 @@ def createPerson(result, browser):
This tests requires the bt5 erp5_simulation_performance_test
to be isntalled for relation with organisation
"""
# Open ERP5 homepage
browser.open()
# Log in unless already logged in by a previous test suite
browser.mainForm.submitLogin()
browser.randomSleep(2, 6)
......
......@@ -5,6 +5,9 @@ def createSPL(result, browser):
This tests requires the bt5 erp5_simulation_performance_test
to be installed & configured
"""
# Open ERP5 homepage
browser.open()
# Log in unless already logged in by a previous test suite
browser.mainForm.submitLogin()
browser.randomSleep(2, 6)
......
......@@ -5,6 +5,9 @@ def createWebPage(result, browser):
Note : you need your user to have Assignor role to do workflow transition
"""
# Open ERP5 homepage
browser.open()
# Log in unless already logged in by a previous test suite
browser.mainForm.submitLogin()
browser.randomSleep(2, 6)
......
......@@ -83,7 +83,6 @@ class BenchmarkProcess(multiprocessing.Process):
with_error = False
try:
self._browser.open()
target(result, self._browser)
except StopIteration:
raise
......
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