Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5_fork
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
Eteri
erp5_fork
Commits
4733f863
Commit
4733f863
authored
Jul 24, 2013
by
Benjamin Blanc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
benchmark: remove actions in createWebPage
In order to bypass an error on first web page creation.
parent
f7b838ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
22 deletions
+8
-22
erp5/util/benchmark/examples/createWebPage.py
erp5/util/benchmark/examples/createWebPage.py
+8
-22
No files found.
erp5/util/benchmark/examples/createWebPage.py
View file @
4733f863
...
...
@@ -8,14 +8,14 @@ from utils import *
PREFIX_TITLE
=
""
TMIN_SLEEP_SHORT
=
2
TMAX_SLEEP_SHORT
=
6
TMIN_SLEEP
=
5
TMAX_SLEEP
=
15
TMIN_SLEEP_LONG
=
1
0
TMAX_SLEEP_LONG
=
3
0
NUMMAX_FOLLOW_UP
=
1
NUMMAX_CONTRIBUTORS
=
2
TMIN_SLEEP_SHORT
=
0
TMAX_SLEEP_SHORT
=
0
TMIN_SLEEP
=
0
TMAX_SLEEP
=
0
TMIN_SLEEP_LONG
=
0
TMAX_SLEEP_LONG
=
0
NUMMAX_FOLLOW_UP
=
0
NUMMAX_CONTRIBUTORS
=
0
def
createWebPage
(
result
,
browser
):
"""
...
...
@@ -65,11 +65,6 @@ def createWebPage(result, browser):
fillRelatedObjects
(
browser
,
result
,
"portal_selections/viewSearchRelatedDocumentDialog0:method"
,
NUMMAX_FOLLOW_UP
,
"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
result
(
'Save'
,
browser
.
mainForm
.
submitSave
(
sleep
=
(
TMIN_SLEEP
,
TMAX_SLEEP
)))
...
...
@@ -87,15 +82,6 @@ def createWebPage(result, browser):
fillRelatedObjects
(
browser
,
result
,
"portal_selections/viewSearchRelatedDocumentDialog0:method"
,
3
,
"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
web_page_url
=
'/'
.
join
(
web_page_url
.
split
(
'/'
)[:
-
1
])
...
...
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