[Erp5-report] r26295 - in /erp5/trunk/bt5/erp5_ui_test: PathTemplateItem/portal_tests/ Path...

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Apr 6 16:24:12 CEST 2009


Author: fabien
Date: Mon Apr  6 16:24:11 2009
New Revision: 26295

URL: http://svn.erp5.org?rev=26295&view=rev
Log:
add 3 more functional test to check top right search

Added:
    erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/search_zuite/
    erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/search_zuite.xml
    erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/search_zuite/testChangeListStyle.xml
    erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/search_zuite/testTopSearchBoxClicking.xml
    erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/search_zuite/testTopSearchBoxHittingEnter.xml
Modified:
    erp5/trunk/bt5/erp5_ui_test/bt/revision
    erp5/trunk/bt5/erp5_ui_test/bt/template_path_list

Added: erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/search_zuite.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/search_zuite.xml?rev=26295&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/search_zuite.xml (added)
+++ erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/search_zuite.xml [utf8] Mon Apr  6 16:24:11 2009
@@ -1,0 +1,29 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <tuple>
+        <global name="Zuite" module="Products.Zelenium.zuite"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>_objects</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>search_zuite</string> </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string></string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>

Added: erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/search_zuite/testChangeListStyle.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/search_zuite/testChangeListStyle.xml?rev=26295&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/search_zuite/testChangeListStyle.xml (added)
+++ erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/search_zuite/testChangeListStyle.xml [utf8] Mon Apr  6 16:24:11 2009
@@ -1,0 +1,141 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <tuple>
+        <global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
+        <tuple/>
+      </tuple>
+    </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> <string 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>Test Search list style change</title>\n
+</head>\n
+<body>\n
+<table cellpadding="1" cellspacing="1" border="1">\n
+<thead>\n
+<tr><td rowspan="1" colspan="3">Test Search list style change</td></tr>\n
+</thead><tbody>\n
+<tal:block metal:use-macro="here/ListBoxZuite_CommonTemplate/macros/init" />\n
+<tr>\n
+\t<td>open</td>\n
+\t<td>${base_url}/foo_module/FooModule_createObjects?set_dates:int=1&amp;start:int=1&amp;num:int=3</td>\n
+\t<td></td>\n
+</tr>\n
+<tr>\n
+\t<td>assertTextPresent</td>\n
+\t<td>Created Successfully.</td>\n
+\t<td></td>\n
+</tr>\n
+<tr>\n
+\t<td>open</td>\n
+\t<td>${base_url}/foo_module/Zuite_waitForActivities</td>\n
+\t<td></td>\n
+</tr>\n
+<tr>\n
+\t<td>assertTextPresent</td>\n
+\t<td>Done.</td>\n
+\t<td></td>\n
+</tr>\n
+<tr>\n
+  <td>open</td>\n
+  <td>${base_url}/view</td>\n
+  <td></td>\n
+</tr>\n
+<tr>\n
+\t<td>type</td>\n
+\t<td>field_your_search_text</td>\n
+\t<td>Title</td>\n
+</tr>\n
+<tr>\n
+  <td>clickAndWait</td>\n
+  <td>//button[@title=\'Search\']</td>\n
+  <td></td>\n
+</tr>\n
+<tr>\n
+\t<td>verifyElementPresent</td>\n
+\t<td>//table[@class=\'listbox search\']</td>\n
+\t<td></td>\n
+</tr>\n
+<tr>\n
+\t<td>clickAndWait</td>\n
+\t<td>style_toggle_icon</td>\n
+\t<td></td>\n
+</tr>\n
+<tr>\n
+\t<td>verifyElementPresent</td>\n
+\t<td>//div[@class=\'listbox\']</td>\n
+\t<td></td>\n
+</tr>\n
+<tr>\n
+\t<td>verifyElementNotPresent</td>\n
+\t<td>//table[@class=\'listbox search\']</td>\n
+\t<td></td>\n
+</tr>\n
+<tr>\n
+\t<td>verifyElementNotPresent</td>\n
+\t<td>//table[@class=\'listbox table\']</td>\n
+\t<td></td>\n
+</tr>\n
+\n
+</tbody></table>\n
+</body>\n
+</html>\n
+
+
+]]></string> </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>testChangeListStyle</string> </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string></string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>

Added: erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/search_zuite/testTopSearchBoxClicking.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/search_zuite/testTopSearchBoxClicking.xml?rev=26295&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/search_zuite/testTopSearchBoxClicking.xml (added)
+++ erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/search_zuite/testTopSearchBoxClicking.xml [utf8] Mon Apr  6 16:24:11 2009
@@ -1,0 +1,116 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <tuple>
+        <global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
+        <tuple/>
+      </tuple>
+    </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> <string 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>Search Top Box Clicking</title>\n
+</head>\n
+<body>\n
+<table cellpadding="1" cellspacing="1" border="1">\n
+<thead>\n
+<tr><td rowspan="1" colspan="3">Test a search on the top box clicking on the search button</td></tr>\n
+</thead><tbody>\n
+<tal:block metal:use-macro="here/PTZuite_CommonTemplate/macros/init" />\n
+\n
+<tr>\n
+  <td>open</td>\n
+  <td>${base_url}/view</td>\n
+  <td></td>\n
+</tr>\n
+<tr>\n
+\t<td>type</td>\n
+\t<td>field_your_search_text</td>\n
+\t<td>Title</td>\n
+</tr>\n
+<tr>\n
+  <td>clickAndWait</td>\n
+  <td>//button[@title=\'Search\']</td>\n
+  <td></td>\n
+</tr>\n
+<tr>\n
+\t<td>verifyText</td>\n
+\t<td>//div[@class=\'searchResultHeader\']/span[@class=\'right\']</td>\n
+\t<td>Results 1 - 1 of 1.</td>\n
+</tr>\n
+<tr>\n
+\t<td>verifyText</td>\n
+\t<td>//tr[@id=\'listbox_data_line_0\']//div[@class=\'search_result_title\']</td>\n
+\t<td>Title 1</td>\n
+</tr>\n
+<tr>\n
+  <td>clickAndWait</td>\n
+  <td>//tr[@id=\'listbox_data_line_0\']//div[@class=\'search_result_title\']/a</td>\n
+  <td></td>\n
+</tr>\n
+<tr>\n
+\t<td>verifyText</td>\n
+\t<td>//div[@id=\'breadcrumb\']</td>\n
+\t<td>erp5  / Foos  / Title 1  / </td>\n
+</tr>\n
+</tbody></table>\n
+</body>\n
+</html>\n
+
+
+]]></string> </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>testTopSearchBoxClicking</string> </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string></string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>

Added: erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/search_zuite/testTopSearchBoxHittingEnter.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/search_zuite/testTopSearchBoxHittingEnter.xml?rev=26295&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/search_zuite/testTopSearchBoxHittingEnter.xml (added)
+++ erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/search_zuite/testTopSearchBoxHittingEnter.xml [utf8] Mon Apr  6 16:24:11 2009
@@ -1,0 +1,116 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <tuple>
+        <global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
+        <tuple/>
+      </tuple>
+    </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> <string 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>Search Top Box hitting Enter</title>\n
+</head>\n
+<body>\n
+<table cellpadding="1" cellspacing="1" border="1">\n
+<thead>\n
+<tr><td rowspan="1" colspan="3">Test a search on the top box hitting enter</td></tr>\n
+</thead><tbody>\n
+<tal:block metal:use-macro="here/PTZuite_CommonTemplate/macros/init" />\n
+\n
+<tr>\n
+  <td>open</td>\n
+  <td>${base_url}/view</td>\n
+  <td></td>\n
+</tr>\n
+<tr>\n
+\t<td>type</td>\n
+\t<td>field_your_search_text</td>\n
+\t<td>Title</td>\n
+</tr>\n
+<tr>\n
+\t<td>keyPressAndWait</td>\n
+  <td>field_your_search_text</td>\n
+\t<td>\\13</td>\n
+</tr>\n
+<tr>\n
+\t<td>verifyText</td>\n
+\t<td>//div[@class=\'searchResultHeader\']/span[@class=\'right\']</td>\n
+\t<td>Results 1 - 1 of 1.</td>\n
+</tr>\n
+<tr>\n
+\t<td>verifyText</td>\n
+\t<td>//tr[@id=\'listbox_data_line_0\']//div[@class=\'search_result_title\']</td>\n
+\t<td>Title 1</td>\n
+</tr>\n
+<tr>\n
+  <td>clickAndWait</td>\n
+  <td>//tr[@id=\'listbox_data_line_0\']//div[@class=\'search_result_title\']/a</td>\n
+  <td></td>\n
+</tr>\n
+<tr>\n
+\t<td>verifyText</td>\n
+\t<td>//div[@id=\'breadcrumb\']</td>\n
+\t<td>erp5  / Foos  / Title 1  / </td>\n
+</tr>\n
+</tbody></table>\n
+</body>\n
+</html>\n
+
+
+]]></string> </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>testTopSearchBoxHittingEnter</string> </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string></string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>

Modified: erp5/trunk/bt5/erp5_ui_test/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_ui_test/bt/revision?rev=26295&r1=26294&r2=26295&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_ui_test/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/erp5_ui_test/bt/revision [utf8] Mon Apr  6 16:24:11 2009
@@ -1,1 +1,1 @@
-419
+421

Modified: erp5/trunk/bt5/erp5_ui_test/bt/template_path_list
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_ui_test/bt/template_path_list?rev=26295&r1=26294&r2=26295&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_ui_test/bt/template_path_list [utf8] (original)
+++ erp5/trunk/bt5/erp5_ui_test/bt/template_path_list [utf8] Mon Apr  6 16:24:11 2009
@@ -36,4 +36,6 @@
 portal_tests/proxy_field_zuite
 portal_tests/proxy_field_zuite/**
 portal_tests/relation_field_zuite
-portal_tests/relation_field_zuite/**
+portal_tests/relation_field_zuite/**
+portal_tests/search_zuite
+portal_tests/search_zuite/**




More information about the Erp5-report mailing list