Commit 32a990ef authored by Rafael Monnerat's avatar Rafael Monnerat

Clean unused code on functional tests

After migrate the tests to use Test Page some code become obsolete and
unused.
parent 400db69c
<?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>"""\n
Return the configuration used during test.\n
\n
There is a difference between configuration and upgrader for\n
this values. This informations should be unified later but\n
for now it is better keep the difference here.\n
"""\n
from DateTime import DateTime\n
\n
configuration_dict = {\n
\'customer_organisation_title\': \'Nexedi SA\',\n
\'customer_organisation_email\': \'webproject-report@erp5.org\',\n
\'customer_organisation_telephone\': \'+123 234 567 891\',\n
\'customer_organisation_street_address\': \'270 bd Clémenceau, 59700 Marcq-en-Baroeul\',\n
\'customer_organisation_city\': \'Lille\',\n
\'customer_organisation_zip_code\': \'59700\',\n
\'customer_organisation_region\': \'Europe/Western Europe/France\',\n
\'customer_organisation_region_category\': \'europe/western_europe/france\',\n
\'customer_company_employees_number\': 1, # employees\n
\'customer_user1_first_name\': \'Ivan\',\n
\'customer_user1_last_name\': \'Petrov\',\n
\'customer_user1_reference\': \'PERSON_USER_REFERENCE\',\n
\'customer_user1_used_reference\' : \'PERSON_RESERVED_REFERENCE\',\n
\'customer_user1_password\' : \'secret\',\n
\'customer_user1_function\': \'Company/Company Manager\',\n
\'customer_user1_email\': \'webproject-report@erp5.org\',\n
\'customer_organisation_currency\' : \'Euro\',\n
\'customer_datetime_format\': \'Day / Month / Year\',\n
\n
# XXX FIXME The follow configuration are not related to configuration itself\n
# but related to system or inicial setup. Split this script later in order\n
# To have a clean definition of what is the User Configuration Values only.\n
"functional_test_username" : "ERP5TypeTestCase",\n
"functional_test_password" : "",\n
\n
"business_configuration_id": "STANDARD_CONFIGURATOR_TEST",\n
\'bt_repository_list\':[\'http://www.erp5.org/dists/snapshot/bt5/\'],\n
\n
}\n
\n
return configuration_dict\n
</string> </value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>_proxy_roles</string> </key>
<value>
<tuple>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Zuite_getConfigurationTestDict</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
...@@ -52,8 +52,9 @@ ...@@ -52,8 +52,9 @@
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>portal = context.getPortalObject()\n <value> <string>portal = context.getPortalObject()\n
\n \n
# set url, user/password\n bt_repository_list = [\'http://www.erp5.org/dists/snapshot/bt5/\']\n
configuration_info = context.Zuite_getConfigurationTestDict()\n customer_user1_reference = \'PERSON_USER_REFERENCE\'\n
customer_user1_used_reference = \'PERSON_RESERVED_REFERENCE\'\n
\n \n
# setup preferences\n # setup preferences\n
preference_id = \'default_initial_configurator_system_preference\'\n preference_id = \'default_initial_configurator_system_preference\'\n
...@@ -81,10 +82,10 @@ if default_site_preference.getPreferenceState() != \'global\':\n ...@@ -81,10 +82,10 @@ if default_site_preference.getPreferenceState() != \'global\':\n
# update repository info of Configurator site\n # update repository info of Configurator site\n
if len(portal.portal_templates.getRepositoryList()) == 0:\n if len(portal.portal_templates.getRepositoryList()) == 0:\n
portal.portal_templates.updateRepositoryBusinessTemplateList(\n portal.portal_templates.updateRepositoryBusinessTemplateList(\n
repository_list = configuration_info[\'bt_repository_list\'])\n repository_list = bt_repository_list)\n
\n \n
# (Re)Create the Business Configurator\n # (Re)Create the Business Configurator\n
bc_id = configuration_info[\'business_configuration_id\']\n bc_id = \'STANDARD_CONFIGURATOR_TEST\'\n
business_configuration = getattr(context.business_configuration_module, bc_id, None)\n business_configuration = getattr(context.business_configuration_module, bc_id, None)\n
if business_configuration is not None:\n if business_configuration is not None:\n
context.business_configuration_module.manage_delObjects([bc_id])\n context.business_configuration_module.manage_delObjects([bc_id])\n
...@@ -98,12 +99,12 @@ business_configuration.setResource(workflow_path)\n ...@@ -98,12 +99,12 @@ business_configuration.setResource(workflow_path)\n
\n \n
# (Re)Create the Person with already used login.\n # (Re)Create the Person with already used login.\n
kw = dict(portal_type="Person",\n kw = dict(portal_type="Person",\n
reference=configuration_info[\'customer_user1_used_reference\'])\n reference=customer_user1_used_reference)\n
person = context.portal_catalog.getResultValue(**kw)\n person = context.portal_catalog.getResultValue(**kw)\n
if person is None:\n if person is None:\n
context.person_module.newContent(**kw)\n context.person_module.newContent(**kw)\n
\n \n
kw[\'reference\'] = configuration_info[\'customer_user1_reference\']\n kw[\'reference\'] = customer_user1_reference\n
person = context.portal_catalog.getResultValue(**kw)\n person = context.portal_catalog.getResultValue(**kw)\n
if person is not None:\n if person is not None:\n
context.person_module.manage_delObjects([person.getId()])\n context.person_module.manage_delObjects([person.getId()])\n
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
</pickle>
<pickle>
<dictionary>
<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_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_text</string> </key>
<value> <unicode encoding="cdata"><![CDATA[
<tal:block metal:define-macro="init_test_environment">\n
<tr>\n
<td>store</td>\n
<td tal:content="python:\n
here.REQUEST.get(\'URL\')[0:here.REQUEST.get(\'URL\').find(\'/portal_tests/\')]">erp5</td>\n
<td>base_url</td>\n
</tr>\n
<tr>\n
<td>setTimeout</td>\n
<td>60000</td>\n
<td></td>\n
</tr>\n
<!-- Always initialize browser to English language -->\n
<tr>\n
<td>deleteCookie</td>\n
<td>LOCALIZER_LANGUAGE</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>createCookie</td>\n
<td>LOCALIZER_LANGUAGE=en</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>openAndWait</td>\n
<td>${base_url}/view</td>\n
<td></td>\n
</tr>\n
</tal:block>\n
\n
<tal:block metal:define-macro="restore_test_environment">\n
<tr>\n
<td>setTimeout</td>\n
<td>30000</td>\n
<td></td>\n
</tr>\n
</tal:block>\n
\n
\n
<tal:block metal:define-macro="configurator_frame_check">\n
\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>ERP5 Configuration</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Installation steps</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Number of user accounts</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>User accounts configuration</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Accounting</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Application preferences</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Download</td>\n
<td></td>\n
</tr>\n
</tal:block>\n
\n
<tal:block metal:define-macro="configurator_consulting_frame_check">\n
\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>ERP5 Configuration</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Installation steps</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Your Categories</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Your roles settings</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Number of user accounts</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>User accounts configuration</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Accounting</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Application preferences</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Download</td>\n
<td></td>\n
</tr>\n
</tal:block>\n
\n
<tal:block metal:define-macro="configurator_consulting_page1_check">\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Your Categories</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Upload your categories spreadsheet.</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Categories Spreadsheet</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyElementPresent</td>\n
<td>//input[@name="next:method"]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyValue</td>\n
<td>//input[@name="next:method"]</td>\n
<td>Configure Categories</td>\n
</tr>\n
</tal:block>\n
\n
<tal:block metal:define-macro="configurator_consulting_page2_check">\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Your roles settings</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Upload your roles settings spreadsheet.</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Portal Type Roles Spreadsheet</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyElementPresent</td>\n
<td>//input[@name="next:method"]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyValue</td>\n
<td>//input[@name="next:method"]</td>\n
<td>Configure Roles</td>\n
</tr>\n
</tal:block>\n
\n
<tal:block metal:define-macro="configurator_page1_check">\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Your organisation</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>What is the name of your company?</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Email</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Telephone</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Street Address</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Postal Code</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>City</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Country</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>verifyElementPresent</td>\n
<td>//input[@name="next:method"]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyValue</td>\n
<td>//input[@name="next:method"]</td>\n
<td>Configure Organisation</td>\n
</tr>\n
\n
</tal:block>\n
\n
\n
<tal:block metal:define-macro="configurator_page2_check">\n
\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Number of user accounts</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Enter the number of user accounts you want to create. In your company, each person using ERP5 should have his own user account.</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Select the number of user accounts you want to configure</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>verifyElementPresent</td>\n
<td>//input[@name="next:method"]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyValue</td>\n
<td>//input[@name="next:method"]</td>\n
<td>Configure user accounts number</td>\n
</tr>\n
<tr>\n
<td>verifyValue</td>\n
<td>//input[@name="previous:method"]</td>\n
<td>Previous</td>\n
</tr>\n
<tr>\n
<td>verifyElementPresent</td>\n
<td>//input[@name="previous:method"]</td>\n
<td></td>\n
</tr>\n
</tal:block>\n
\n
\n
<tal:block metal:define-macro="configurator_page3_check">\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>User accounts configuration</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Fill in detailled information for each ERP5 user.</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td> User accounts configuration</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td> Fill in detailled information for each ERP5 user.</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>First Name</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Last Name</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>User Login</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>User Password</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Password Confirmation</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Function</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyElementPresent</td>\n
<td>//input[@name="next:method"]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyValue</td>\n
<td>//input[@name="next:method"]</td>\n
<td>Configure user accounts</td>\n
</tr>\n
<tr>\n
<td>verifyValue</td>\n
<td>//input[@name="previous:method"]</td>\n
<td>Previous</td>\n
</tr>\n
<tr>\n
<td>verifyElementPresent</td>\n
<td>//input[@name="previous:method"]</td>\n
<td></td>\n
</tr>\n
\n
</tal:block>\n
\n
<tal:block metal:define-macro="configurator_page4_check">\n
\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Accounting</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Configure your accounting.</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Which accouting plan do you use?</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Accounting Period</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Accounting Periods are used to define the range of dates in which you will be allowed to input accounting transactions.</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>To start using the system, you have to configure the first accounting period.</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>What is the begin date of your current accounting period?</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>What will be the end date of your current accounting period?</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>What is the name of this period?</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyElementPresent</td>\n
<td>//input[@name="next:method"]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyValue</td>\n
<td>//input[@name="next:method"]</td>\n
<td>Configure accounting</td>\n
</tr>\n
<tr>\n
<td>verifyValue</td>\n
<td>//input[@name="previous:method"]</td>\n
<td>Previous</td>\n
</tr>\n
<tr>\n
<td>verifyElementPresent</td>\n
<td>//input[@name="previous:method"]</td>\n
<td></td>\n
</tr>\n
</tal:block>\n
\n
\n
<tal:block metal:define-macro="configurator_page5_check">\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Application preferences</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Define some global preferences for your ERP5 application.</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>What email address should be used as From email address for automatically generated emails?</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>What is the currency used in your company?</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Which date format do you use?</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Which translations do you want to use?</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>verifyElementPresent</td>\n
<td>//input[@name="next:method"]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyValue</td>\n
<td>//input[@name="next:method"]</td>\n
<td>Configure ERP5 Preferences</td>\n
</tr>\n
<tr>\n
<td>verifyValue</td>\n
<td>//input[@name="previous:method"]</td>\n
<td>Previous</td>\n
</tr>\n
<tr>\n
<td>verifyElementPresent</td>\n
<td>//input[@name="previous:method"]</td>\n
<td></td>\n
</tr>\n
</tal:block>\n
\n
<tal:block metal:define-macro="configurator_page6_check">\n
\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Download</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Installation procedure may begin</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>All needed information is collected.</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Please proceed using Install button below.</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>In the next page you will receive automatically updated installation status report.</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyElementPresent</td>\n
<td>//input[@name="next:method"]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyValue</td>\n
<td>//input[@name="next:method"]</td>\n
<td>Install</td>\n
</tr>\n
<tr>\n
<td>verifyValue</td>\n
<td>//input[@name="previous:method"]</td>\n
<td>Previous</td>\n
</tr>\n
<tr>\n
<td>verifyElementPresent</td>\n
<td>//input[@name="previous:method"]</td>\n
<td></td>\n
</tr>\n
</tal:block>\n
\n
<tal:block metal:define-macro="login_as_express_user">\n
\n
<tal:block tal:condition="here/ExpressZuite_isExpressUserAccountAvailable">\n
<!-- login with newly created user from Express configuration -->\n
<tr>\n
<td>openAndWait</td>\n
<td>${base_url}/view</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>openAndWait</td>\n
<td>${base_url}/logout</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>openAndWait</td>\n
<td>${base_url}/login_form</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>//input[@name="__ac_name"]</td>\n
<td tal:content="python:\n
here.Zuite_getConfigurationTestDict()[\'customer_user1_reference\']"></td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>//input[@name="__ac_password"]</td>\n
<td tal:content="python:\n
here.Zuite_getConfigurationTestDict()[\'customer_user1_password\']"></td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>//input[@name="logged_in:method"]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>openAndWait</td>\n
<td>${base_url}/view</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td tal:content="python:\n
here.Zuite_getConfigurationTestDict()[\'customer_user1_reference\']"></td>\n
<td></td>\n
</tr>\n
</tal:block>\n
</tal:block>\n
\n
<tal:block metal:define-macro="login_as_functional_test_user">\n
\n
<tal:block tal:condition="here/ExpressZuite_isExpressUserAccountAvailable">\n
<!-- login with functional test user -->\n
<tr>\n
<td>openAndWait</td>\n
<td>${base_url}/view</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>openAndWait</td>\n
<td>${base_url}/logout</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>openAndWait</td>\n
<td>${base_url}/login_form</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>//input[@name="__ac_name"]</td>\n
<td tal:content="python:\n
here.Zuite_getConfigurationTestDict()[\'functional_test_username\']"></td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>//input[@name="__ac_password"]</td>\n
<td tal:content="python:\n
here.Zuite_getConfigurationTestDict()[\'functional_test_user_password\']"></td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>//input[@name="logged_in:method"]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>openAndWait</td>\n
<td>${base_url}/view</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td tal:content="python:\n
here.Zuite_getConfigurationTestDict()[\'functional_test_username\']"></td>\n
<td></td>\n
</tr>\n
</tal:block>\n
</tal:block>\n
\n
<tal:block metal:define-macro="fill_assignment_start_date_and_stop_date">\n
<tr>\n
<td>type</td>\n
<td>//input[@name="subfield_field_my_start_date_year"]</td>\n
<td tal:content="python: configuration[\'assignment_start_date_year\']"></td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>//input[@name="subfield_field_my_start_date_month"]</td>\n
<td tal:content="python: configuration[\'assignment_start_date_month\']"></td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>//input[@name="subfield_field_my_start_date_day"]</td>\n
<td tal:content="python: configuration[\'assignment_start_date_day\']"></td>\n
</tr>\n
\n
<tr>\n
<td>type</td>\n
<td>//input[@name="subfield_field_my_stop_date_year"]</td>\n
<td tal:content="python: configuration[\'assignment_stop_date_year\']"></td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>//input[@name="subfield_field_my_stop_date_month"]</td>\n
<td tal:content="python: configuration[\'assignment_stop_date_month\']"></td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>//input[@name="subfield_field_my_stop_date_day"]</td>\n
<td tal:content="python: configuration[\'assignment_stop_date_day\']"></td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>//button[@name="Base_edit:method"]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Data updated.</td>\n
<td></td>\n
</tr>\n
</tal:block>
]]></unicode> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>text/html</string> </value>
</item>
<item>
<key> <string>expand</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Zuite_viewConfiguratorTestMacroLibrary</string> </value>
</item>
<item>
<key> <string>output_encoding</string> </key>
<value> <string>utf-8</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <unicode></unicode> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
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