Commit 45c63678 authored by Julien Muchembled's avatar Julien Muchembled

benchmark: improvements to createPerson example

- Change title of the document so that someone browsing the instance later
  can know where it comes from.
- Validate person at the end.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@45999 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 15e143fa
......@@ -23,8 +23,8 @@ def createPerson(result, browser):
assert browser.getTransitionMessage() == 'Object created.'
# Fill the first and last name of the newly created person
browser.mainForm.getControl(name='field_my_first_name').value = 'Foo'
browser.mainForm.getControl(name='field_my_last_name').value = 'Bar'
browser.mainForm.getControl(name='field_my_first_name').value = 'Create'
browser.mainForm.getControl(name='field_my_last_name').value = 'Person'
# Submit the changes, record the time elapsed in seconds
result('Save', browser.mainForm.timeSubmitSaveInSecond())
......@@ -45,3 +45,8 @@ def createPerson(result, browser):
# Check whether the changes have been successfully updated
assert browser.getTransitionMessage() == 'Data updated.'
# Validate it
result('Validate', browser.mainForm.timeSubmitSelectWorkflowInSecond(value='validate_action'))
result('Validated', browser.mainForm.timeSubmitDialogConfirmInSecond())
assert browser.getTransitionMessage() == 'Status changed.'
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