[Erp5-report] r46008 arnaud.fontaine - /erp5/trunk/utils/erp5.utils.benchmark/examples/

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Aug 29 11:52:26 CEST 2011


Author: arnaud.fontaine
Date: Mon Aug 29 11:52:26 2011
New Revision: 46008

URL: http://svn.erp5.org?rev=46008&view=rev
Log:
Update example to display time for waiting for validate_action and showing the page

Modified:
    erp5/trunk/utils/erp5.utils.benchmark/examples/createPerson.py

Modified: erp5/trunk/utils/erp5.utils.benchmark/examples/createPerson.py
URL: http://svn.erp5.org/erp5/trunk/utils/erp5.utils.benchmark/examples/createPerson.py?rev=46008&r1=46007&r2=46008&view=diff
==============================================================================
--- erp5/trunk/utils/erp5.utils.benchmark/examples/createPerson.py [utf8] (original)
+++ erp5/trunk/utils/erp5.utils.benchmark/examples/createPerson.py [utf8] Mon Aug 29 11:52:26 2011
@@ -52,8 +52,12 @@ def createPerson(result, browser):
 
   # Validate it (as the workflow action may not be available yet, try 5 times
   # and sleep 5s between each attempts before failing)
-  result('Validate', browser.mainForm.submitSelectWorkflow(value='validate_action',
-                                                           maximum_attempt_number=5,
-                                                           sleep_between_attempt=5))
+  waiting_for_validate_action, show_validate_time = \
+      browser.mainForm.submitSelectWorkflow(value='validate_action',
+                                            maximum_attempt_number=5,
+                                            sleep_between_attempt=5)
+
+  result('Waiting for validate_action', waiting_for_validate_action)
+  result('Show validate', show_validate_time)
   result('Validated', browser.mainForm.submitDialogConfirm())
   assert browser.getTransitionMessage() == 'Status changed.'



More information about the Erp5-report mailing list