Commit 4733f863 authored by Benjamin Blanc's avatar Benjamin Blanc

benchmark: remove actions in createWebPage

In order to bypass an error on first web page creation.
parent f7b838ee
...@@ -8,14 +8,14 @@ from utils import * ...@@ -8,14 +8,14 @@ from utils import *
PREFIX_TITLE = "" PREFIX_TITLE = ""
TMIN_SLEEP_SHORT = 2 TMIN_SLEEP_SHORT = 0
TMAX_SLEEP_SHORT = 6 TMAX_SLEEP_SHORT = 0
TMIN_SLEEP = 5 TMIN_SLEEP = 0
TMAX_SLEEP = 15 TMAX_SLEEP = 0
TMIN_SLEEP_LONG = 10 TMIN_SLEEP_LONG = 0
TMAX_SLEEP_LONG = 30 TMAX_SLEEP_LONG = 0
NUMMAX_FOLLOW_UP = 1 NUMMAX_FOLLOW_UP = 0
NUMMAX_CONTRIBUTORS = 2 NUMMAX_CONTRIBUTORS = 0
def createWebPage(result, browser): def createWebPage(result, browser):
""" """
...@@ -66,11 +66,6 @@ def createWebPage(result, browser): ...@@ -66,11 +66,6 @@ def createWebPage(result, browser):
"portal_selections/viewSearchRelatedDocumentDialog0:method", NUMMAX_FOLLOW_UP, "portal_selections/viewSearchRelatedDocumentDialog0:method", NUMMAX_FOLLOW_UP,
"FollowUp", TMIN_SLEEP_SHORT, TMAX_SLEEP_SHORT) "FollowUp", TMIN_SLEEP_SHORT, TMAX_SLEEP_SHORT)
## Fill the Contributors input
fillRelatedObjects(browser, result,
"portal_selections/viewSearchRelatedDocumentDialog1:method", NUMMAX_CONTRIBUTORS,
"Contributors", TMIN_SLEEP_SHORT, TMAX_SLEEP_SHORT)
# Submit the changes, record the time elapsed in seconds # Submit the changes, record the time elapsed in seconds
result('Save', browser.mainForm.submitSave(sleep=(TMIN_SLEEP, TMAX_SLEEP))) result('Save', browser.mainForm.submitSave(sleep=(TMIN_SLEEP, TMAX_SLEEP)))
...@@ -87,15 +82,6 @@ def createWebPage(result, browser): ...@@ -87,15 +82,6 @@ def createWebPage(result, browser):
fillRelatedObjects(browser, result, fillRelatedObjects(browser, result,
"portal_selections/viewSearchRelatedDocumentDialog0:method", 3, "portal_selections/viewSearchRelatedDocumentDialog0:method", 3,
"ReferencedDocument", TMIN_SLEEP_SHORT, TMAX_SLEEP_SHORT) "ReferencedDocument", TMIN_SLEEP_SHORT, TMAX_SLEEP_SHORT)
# Fill the Similar Documents input
fillRelatedObjects(browser, result,
"portal_selections/viewSearchRelatedDocumentDialog1:method", 3,
" SimilarDocuments", TMIN_SLEEP_SHORT, TMAX_SLEEP_SHORT)
# Fill the Related Documents input
#fillRelatedObjects(browser, result,
# "portal_selections/viewSearchRelatedDocumentDialog2:method", 3,
# "RelatedDocuments", TMIN_SLEEP_SHORT, TMAX_SLEEP_SHORT)
## Edit content ## Edit content
web_page_url = '/'.join(web_page_url.split('/')[:-1]) web_page_url = '/'.join(web_page_url.split('/')[:-1])
......
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