Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Amer
erp5
Commits
f11025a4
Commit
f11025a4
authored
Oct 14, 2011
by
Arnaud Fontaine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typos in examples.
parent
c9867ec5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
erp5/util/benchmark/examples/createPerson.py
erp5/util/benchmark/examples/createPerson.py
+3
-3
erp5/util/benchmark/examples/createWebPage.py
erp5/util/benchmark/examples/createWebPage.py
+1
-1
No files found.
erp5/util/benchmark/examples/createPerson.py
View file @
f11025a4
...
@@ -11,8 +11,8 @@ def createPerson(result, browser):
...
@@ -11,8 +11,8 @@ def createPerson(result, browser):
script and userInfo.py. Further information about performance_tester_erp5
script and userInfo.py. Further information about performance_tester_erp5
options and arguments are available by specifying ``--help''.
options and arguments are available by specifying ``--help''.
This test
s requires the bt5 erp5_simulation_performance_test
This test
requires the bt5 erp5_simulation_performance_test to be installed
to be isntalled for relation with organisation
for relation with organisation.
Also, in order to get more realistic results with concurrent users, random
Also, in order to get more realistic results with concurrent users, random
sleep must be introduced to simulate a "real" user. This can be done through
sleep must be introduced to simulate a "real" user. This can be done through
...
@@ -57,7 +57,7 @@ def createPerson(result, browser):
...
@@ -57,7 +57,7 @@ def createPerson(result, browser):
browser
.
mainForm
.
submitSelectAction
(
value
=
'add Telephone'
))
browser
.
mainForm
.
submitSelectAction
(
value
=
'add Telephone'
))
# Fill telephone title and number
# Fill telephone title and number
browser
.
mainForm
.
getControl
(
name
=
'field_my_title'
).
value
=
'Personal'
browser
.
mainForm
.
getControl
(
name
=
'field_my_title'
).
value
=
'Personal'
browser
.
mainForm
.
getControl
(
name
=
'field_my_telephone_number'
).
value
=
'0123456789'
browser
.
mainForm
.
getControl
(
name
=
'field_my_telephone_number'
).
value
=
'0123456789'
# Submit the changes, record the time elapsed in seconds
# Submit the changes, record the time elapsed in seconds
...
...
erp5/util/benchmark/examples/createWebPage.py
View file @
f11025a4
...
@@ -40,7 +40,7 @@ def createWebPage(result, browser):
...
@@ -40,7 +40,7 @@ def createWebPage(result, browser):
# Edit content
# Edit content
WebPage_url
=
'/'
.
join
(
WebPage_url
.
split
(
'/'
)[:
-
1
])
WebPage_url
=
'/'
.
join
(
WebPage_url
.
split
(
'/'
)[:
-
1
])
browser
.
open
(
WebPage_url
+
"/WebPage_viewEditor"
)
browser
.
open
(
WebPage_url
+
"/WebPage_viewEditor"
)
browser
.
mainForm
.
getControl
(
name
=
'field_my_text_content'
).
value
=
'<html><body><h1>Test</h1><p>Content if test</p></body></html>'
browser
.
mainForm
.
getControl
(
name
=
'field_my_text_content'
).
value
=
'<html><body><h1>Test</h1><p>Content if test</p></body></html>'
# Submit the changes, record the time elapsed in seconds
# Submit the changes, record the time elapsed in seconds
browser
.
randomSleep
(
10
,
30
)
browser
.
randomSleep
(
10
,
30
)
result
(
'Save'
,
browser
.
mainForm
.
submitSave
())
result
(
'Save'
,
browser
.
mainForm
.
submitSave
())
...
...
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