Commit 6e5e75fb authored by Lucas Carvalho's avatar Lucas Carvalho

Once the portal activities is not subscribed to timer service, we need to call...

Once the portal activities is not subscribed to timer service, we need to call the macro wait_for_activities and then call the script to check if the configuration is finished.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42604 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 35b0400d
......@@ -519,28 +519,20 @@
<td></td>\n
</tr>\n
<tr>\n
<td>waitForCondition</td>\n
<td>selenium.isTextPresent("Configuration is over. Enjoy your new ERP5 system!")</td>\n
<td>1000000</td> <!-- set timeout reasonably as it takes time to finish installation-->\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Please click link below.</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>You will be redirected to a form in which you can login using</td>\n
<td>setTimeout</td>\n
<td>1200000</td>\n
<td></td>\n
</tr>\n
<span metal:use-macro="container/Zuite_CommonTemplate/macros/wait_for_activities">\n
Wait for activities</span>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>one of yours newly created ERP5 user accounts.</td>\n
<td>openAndWait</td>\n
<td>${base_url}/Zuite_assertEndConfiguration</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Start using your new ERP5 system</td>\n
<td>True</td>\n
<td></td>\n
</tr>\n
\n
......
......@@ -558,28 +558,20 @@
<td></td>\n
</tr>\n
<tr>\n
<td>waitForCondition</td>\n
<td>selenium.isTextPresent("Configuration is over. Enjoy your new ERP5 system!")</td>\n
<td>1000000</td> <!-- set timeout reasonably as it takes time to finish installation-->\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Please click link below.</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>You will be redirected to a form in which you can login using</td>\n
<td>setTimeout</td>\n
<td>1200000</td>\n
<td></td>\n
</tr>\n
<span metal:use-macro="container/Zuite_CommonTemplate/macros/wait_for_activities">\n
Wait for activities</span>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>one of yours newly created ERP5 user accounts.</td>\n
<td>openAndWait</td>\n
<td>${base_url}/Zuite_assertEndConfiguration</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Start using your new ERP5 system</td>\n
<td>True</td>\n
<td></td>\n
</tr>\n
\n
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_asgns</string> </key>
<value>
<dictionary>
<item>
<key> <string>name_container</string> </key>
<value> <string>container</string> </value>
</item>
<item>
<key> <string>name_context</string> </key>
<value> <string>context</string> </value>
</item>
<item>
<key> <string>name_m_self</string> </key>
<value> <string>script</string> </value>
</item>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>portal = context.getPortalObject()\n
html_status_report = str(portal.portal_configurator.getInstallationStatusReport(active_process_id=2))\n
message_list = ["Configuration is over. Enjoy your new ERP5 system!",\n
"Please click link below.",\n
"You will be redirected to a form in which you can login using",\n
"one of yours newly created ERP5 user accounts."]\n
\n
for message in message_list:\n
if not message in html_status_report:\n
return \'False\'\n
\n
return \'True\'\n
</string> </value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Zuite_assertEndConfiguration</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
660
\ No newline at end of file
664
\ No newline at end of file
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