Commit f11025a4 authored by Arnaud Fontaine's avatar Arnaud Fontaine

Fix typos in examples.

parent c9867ec5
...@@ -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 tests 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
......
...@@ -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())
......
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