From dd5fc2fd368419b28b197f076509b49a3c42f633 Mon Sep 17 00:00:00 2001 From: Gabriel Monnerat <gabriel@tiolive.com> Date: Wed, 16 Mar 2011 14:07:18 +0000 Subject: [PATCH] Add new test to UNG Docs git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@44357 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../ung_zuite/testUNGDocsWithERP5User.xml | 223 ++++++++++++++++++ bt5/erp5_web_ung_ui_test/bt/revision | 2 +- 2 files changed, 224 insertions(+), 1 deletion(-) create mode 100644 bt5/erp5_web_ung_ui_test/PathTemplateItem/portal_tests/ung_zuite/testUNGDocsWithERP5User.xml diff --git a/bt5/erp5_web_ung_ui_test/PathTemplateItem/portal_tests/ung_zuite/testUNGDocsWithERP5User.xml b/bt5/erp5_web_ung_ui_test/PathTemplateItem/portal_tests/ung_zuite/testUNGDocsWithERP5User.xml new file mode 100644 index 0000000000..8447781cb3 --- /dev/null +++ b/bt5/erp5_web_ung_ui_test/PathTemplateItem/portal_tests/ung_zuite/testUNGDocsWithERP5User.xml @@ -0,0 +1,223 @@ +<?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[ + +<html xmlns:tal="http://xml.zope.org/namespaces/tal"\n + xmlns:metal="http://xml.zope.org/namespaces/metal">\n +<head>\n + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">\n + <title tal:content="template/getId"/>\n +</head>\n +<body>\n + <table cellpadding="1" cellspacing="1" border="1">\n + <thead>\n + <tr><td rowspan="1" colspan="3" tal:content="template/getId"/></tr>\n + </thead><tbody>\n + <tal:block metal:use-macro="here/Zuite_CommonTemplateForUNG/macros/init" />\n + <tr>\n + <td>openAndWait</td>\n + <td>${ung_url}/WebSite_logout</td>\n + <td></td>\n + </tr>\n + <tr>\n + <td>click</td>\n + <td>//td[@id="new-account-form"]</td>\n + <td></td>\n + </tr>\n + <tr>\n + <td>type</td>\n + <td>//input[@name="firstname"]</td>\n + <td>Gabriel</td>\n + </tr>\n + <tr>\n + <td>type</td>\n + <td>//input[@name="lastname"]</td>\n + <td>Monnerat</td>\n + </tr>\n + <tr>\n + <td>type</td>\n + <td>//input[@name="email"]</td>\n + <td>example@example.com</td>\n + </tr>\n + <tr>\n + <td>type</td>\n + <td>//input[@name="login_name"]</td>\n + <td>ung_user</td>\n + </tr>\n + <tr>\n + <td>type</td>\n + <td>//input[@name="password"]</td>\n + <td>1234</td>\n + </tr>\n + <tr>\n + <td>type</td>\n + <td>//input[@name="confirm"]</td>\n + <td>1234</td>\n + </tr>\n + <tr>\n + <td>click</td>\n + <td>//input[@value="Create Account"]</td>\n + <td></td>\n + </tr>\n + <tr>\n + <td>waitForPageToLoad</td>\n + <td>30000</td>\n + <td></td>\n + </tr>\n + <tr>\n + <td>type</td>\n + <td>//input[@name="__ac_name"]</td>\n + <td>ung_user</td>\n + </tr>\n + <tr>\n + <td>type</td>\n + <td>//input[@name="__ac_password"]</td>\n + <td>1234</td>\n + </tr>\n + <tr>\n + <td>clickAndWait</td>\n + <td>//input[@type="submit"]</td>\n + <td></td>\n + </tr>\n + <tr>\n + <td>openAndWait</td>\n + <td>${ung_url}/ERP5Site_createNewWebDocument?template=web_page_template</td>\n + <td></td>\n + </tr>\n + <tr>\n + <td>verifyText</td>\n + <td>//a[@name="document_title"]</td>\n + <td>Web Page</td>\n + </tr>\n + <tr>\n + <td>clickAndWait</td>\n + <td>//a[@class="ung_docs"]</td>\n + <td></td>\n + </tr>\n + <tr>\n + <td>click</td>\n + <td>//input[@class="listbox-check-all"]</td>\n + <td></td>\n + </tr>\n + <tr>\n + <td>clickAndWait</td>\n + <td>//button[@class="delete"]</td>\n + <td></td>\n + </tr>\n + <tal:block metal:use-macro="here/Zuite_CommonTemplate/macros/wait_for_activities"/>\n + <tr>\n + <td>openAndWait</td>\n + <td>${ung_url}</td>\n + <td></td>\n + </tr>\n + <tr>\n + <td>verifyText</td>\n + <td>//tbody/tr[@class="your_listbox-data-line-0 DataA"]/td[3]/a</td>\n + <td>Web Page</td>\n + </tr>\n + <tr>\n + <td>verifyText</td>\n + <td>//tbody/tr[@class="your_listbox-data-line-0 DataA"]/td[4]/a</td>\n + <td>Draft</td>\n + </tr>\n + <tr>\n + <td>click</td>\n + <td>//input[@class="listbox-check-all"]</td>\n + <td></td>\n + </tr>\n + <tr>\n + <td>clickAndWait</td>\n + <td>//button[@class="delete"]</td>\n + <td></td>\n + </tr>\n + <tal:block metal:use-macro="here/Zuite_CommonTemplate/macros/wait_for_activities"/>\n + <tr>\n + <td>openAndWait</td>\n + <td>${ung_url}</td>\n + <td></td>\n + </tr>\n + <tr>\n + <td>clickAndWait</td>\n + <td>//table[@class="your_listbox-table-domain-tree"]/tbody/tr[11]/td/a</td>\n + <td></td>\n + </tr>\n + <tr>\n + <td>click</td>\n + <td>//input[@class="listbox-check-all"]</td>\n + <td></td>\n + </tr>\n + <tr>\n + <td>clickAndWait</td>\n + <td>//button[@class="delete"]</td>\n + <td></td>\n + </tr>\n + <tr>\n + <td>verifyText</td>\n + <td>//td[@class="listbox-table-no-result-row"]/span</td>\n + <td>No result.</td>\n + </tr>\n + </tbody>\n + </table>\n +</body>\n +</html> + +]]></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>testUNGDocsWithERP5User</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> diff --git a/bt5/erp5_web_ung_ui_test/bt/revision b/bt5/erp5_web_ung_ui_test/bt/revision index 3cacc0b93c..ca7bf83ac5 100644 --- a/bt5/erp5_web_ung_ui_test/bt/revision +++ b/bt5/erp5_web_ung_ui_test/bt/revision @@ -1 +1 @@ -12 \ No newline at end of file +13 \ No newline at end of file -- 2.30.9