Commit 496f3b95 authored by Roque Porchetto's avatar Roque Porchetto

scalability_test: minor changes in test suite and example test

parent e1e9740e
......@@ -12,7 +12,6 @@ class WendelinERP5_scalability():
return 'examples/scalabilityUsers'
def getUserNumber(self, test_number):
return 1
return [45, 135, 170, 220, 250][test_number]
# Test duration in seconds
......@@ -20,6 +19,5 @@ class WendelinERP5_scalability():
return 60*10
def getTestRepetition(self, test_number):
return 1
return 3
......@@ -60,21 +60,6 @@ def createPerson(result, browser):
assert browser.getTransitionMessage() == 'Data updated.'
person_url = browser.url
# Add phone number
result('Add telephone',
browser.mainForm.submitSelectAction(value='add Telephone',
sleep=(TMIN_SLEEP_SHORT, TMAX_SLEEP_SHORT)))
# Fill telephone title and number
browser.mainForm.getControl(name='field_my_title').value = 'Personal'
browser.mainForm.getControl(name='field_my_telephone_number').value = '0123456789'
# Submit the changes, record the time elapsed in seconds
result('Save', browser.mainForm.submitSave(sleep=(TMIN_SLEEP_SHORT, TMAX_SLEEP_SHORT)))
# Check whether the changes have been successfully updated
assert browser.getTransitionMessage() == 'Data updated.'
# Go back to the Person page before validating
browser.open(person_url)
......
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