[Erp5-report] r25438 - in /erp5/trunk/bt5/erp5_ui_test: PathTemplateItem/portal_tests/docum...

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Feb 3 21:54:02 CET 2009


Author: kazuhiko
Date: Tue Feb  3 21:54:01 2009
New Revision: 25438

URL: http://svn.erp5.org?rev=25438&view=rev
Log:
Use getAbsoluteLocation that is now defined in erp5_ui_test_core instead of getLocation.
Note that in Selenium 0.8 or later getLocation returns absolute url, but older Selenium returns path only.
So for transitional period, please use assert/verifyAbsoluteLocation.

Modified:
    erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/document_zuite/testAddObject.xml
    erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/document_zuite/testCancelWorkflowTransitionDialog.xml
    erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/document_zuite/testCloneObject.xml
    erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/document_zuite/testSelectionPreviousNextButtons.xml
    erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/document_zuite/testSelectionPreviousNextButtonsKeepsFormId.xml
    erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/listbox_zuite/testRedirect.xml
    erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/page_templates_zuite/testBreadCrumbs.xml
    erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/page_templates_zuite/testDialogActions.xml
    erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/page_templates_zuite/testDropDownListActionsNothingSelected.xml
    erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/relation_field_zuite/testSimpleRelationFieldSaveButton.xml
    erp5/trunk/bt5/erp5_ui_test/bt/revision

Modified: erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/document_zuite/testAddObject.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/document_zuite/testAddObject.xml?rev=25438&r1=25437&r2=25438&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/document_zuite/testAddObject.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/document_zuite/testAddObject.xml [utf8] Tue Feb  3 21:54:01 2009
@@ -66,8 +66,8 @@
 <!-- as the init macro create 1 Foo, we assume that our newly created foo will\n
 have id "2". This is probably a bit too stupid. -->\n
 <tr>\n
-  <td>assertLocation</td>\n
-  <td tal:content="python:\'*%s/foo_module/2/view*\' % here.getPortalObject().absolute_url_path()"/>\n
+  <td>assertAbsoluteLocation</td>\n
+  <td tal:content="string:glob:${here/portal_url}/foo_module/2/view*" />\n
   <td></td>\n
 </tr>\n
 <tr>\n
@@ -87,8 +87,8 @@
   <td>Add Foo Line</td>\n
 </tr>\n
 <tr>\n
-  <td>assertLocation</td>\n
-  <td tal:content="python:\'*%s/foo_module/2/1/view*\' % here.getPortalObject().absolute_url_path()"/>\n
+  <td>assertAbsoluteLocation</td>\n
+  <td tal:content="string:glob:${here/portal_url}/foo_module/2/1/view*" />\n
   <td></td>\n
 </tr>\n
 <tr>\n
@@ -115,8 +115,8 @@
   <td></td>\n
 </tr>\n
 <tr>\n
-  <td>assertLocation</td>\n
-  <td tal:content="python:\'*%s/foo_module/3/view*\' % here.getPortalObject().absolute_url_path()"/>\n
+  <td>assertAbsoluteLocation</td>\n
+  <td tal:content="string:glob:${here/portal_url}/foo_module/3/view*" />\n
   <td></td>\n
 </tr>\n
 <tr>\n
@@ -137,8 +137,8 @@
   <td></td>\n
 </tr>\n
 <tr>\n
-  <td>assertLocation</td>\n
-  <td tal:content="python:\'*%s/foo_module/4/Foo_view*\' % here.getPortalObject().absolute_url_path()"/>\n
+  <td>assertAbsoluteLocation</td>\n
+  <td tal:content="string:glob:${here/portal_url}/foo_module/4/Foo_view*" />\n
   <td></td>\n
 </tr>\n
 <tr>\n

Modified: erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/document_zuite/testCancelWorkflowTransitionDialog.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/document_zuite/testCancelWorkflowTransitionDialog.xml?rev=25438&r1=25437&r2=25438&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/document_zuite/testCancelWorkflowTransitionDialog.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/document_zuite/testCancelWorkflowTransitionDialog.xml [utf8] Tue Feb  3 21:54:01 2009
@@ -102,8 +102,8 @@
   <td></td>\n
 </tr>\n
 <tr>\n
-  <td>assertLocation</td>\n
-  <td tal:content="python:\'*%s/foo_module/0/Foo_view*\' % here.getPortalObject().absolute_url_path()"/>\n
+  <td>assertAbsoluteLocation</td>\n
+  <td tal:content="string:glob:${here/portal_url}/foo_module/0/Foo_view*" />\n
   <td></td>\n
 </tr>\n
 <!-- We check that the transition has not been passed by looking at the\n

Modified: erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/document_zuite/testCloneObject.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/document_zuite/testCloneObject.xml?rev=25438&r1=25437&r2=25438&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/document_zuite/testCloneObject.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/document_zuite/testCloneObject.xml [utf8] Tue Feb  3 21:54:01 2009
@@ -66,8 +66,8 @@
 <!-- as the init macro create 1 Foo, we assume that our newly created foo will\n
 have id "2". This is probably a bit too stupid. -->\n
 <tr>\n
-  <td>assertLocation</td>\n
-  <td tal:content="python:\'*%s/foo_module/2/view*\' % here.getPortalObject().absolute_url_path()"/>\n
+  <td>assertAbsoluteLocation</td>\n
+  <td tal:content="string:glob:${here/portal_url}/foo_module/2/view*" />\n
   <td></td>\n
 </tr>\n
 <tr>\n
@@ -87,8 +87,8 @@
   <td>Add Foo Line</td>\n
 </tr>\n
 <tr>\n
-  <td>assertLocation</td>\n
-  <td tal:content="python:\'*%s/foo_module/2/1/view*\' % here.getPortalObject().absolute_url_path()"/>\n
+  <td>assertAbsoluteLocation</td>\n
+  <td tal:content="string:glob:${here/portal_url}/foo_module/2/1/view*" />\n
   <td></td>\n
 </tr>\n
 <tr>\n
@@ -109,8 +109,8 @@
   <td></td>\n
 </tr>\n
 <tr>\n
-  <td>assertLocation</td>\n
-  <td tal:content="python:\'*%s/foo_module/2/2/FooLine_view*\' % here.getPortalObject().absolute_url_path()"/>\n
+  <td>assertAbsoluteLocation</td>\n
+  <td tal:content="string:glob:${here/portal_url}/foo_module/2/2/FooLine_view*" />\n
   <td></td>\n
 </tr>\n
 <tr>\n
@@ -134,8 +134,8 @@
   <td></td>\n
 </tr>\n
 <tr>\n
-  <td>assertLocation</td>\n
-  <td tal:content="python:\'*%s/foo_module/3/Foo_view*\' % here.getPortalObject().absolute_url_path()"/>\n
+  <td>assertAbsoluteLocation</td>\n
+  <td tal:content="string:glob:${here/portal_url}/foo_module/3/Foo_view*" />\n
   <td></td>\n
 </tr>\n
 <tr>\n

Modified: erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/document_zuite/testSelectionPreviousNextButtons.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/document_zuite/testSelectionPreviousNextButtons.xml?rev=25438&r1=25437&r2=25438&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/document_zuite/testSelectionPreviousNextButtons.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/document_zuite/testSelectionPreviousNextButtons.xml [utf8] Tue Feb  3 21:54:01 2009
@@ -130,8 +130,8 @@
   <td></td>\n
 </tr>\n
 <tr>\n
-  <td>assertLocation</td>\n
-  <td tal:content="python:\'*%s/foo_module/FooModule_viewFooList*\' % here.getPortalObject().absolute_url_path()"/>\n
+  <td>assertAbsoluteLocation</td>\n
+  <td tal:content="string:glob:${here/portal_url}/foo_module/FooModule_viewFooList*" />\n
   <td></td>\n
 </tr>\n
 <tr>\n

Modified: erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/document_zuite/testSelectionPreviousNextButtonsKeepsFormId.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/document_zuite/testSelectionPreviousNextButtonsKeepsFormId.xml?rev=25438&r1=25437&r2=25438&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/document_zuite/testSelectionPreviousNextButtonsKeepsFormId.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/document_zuite/testSelectionPreviousNextButtonsKeepsFormId.xml [utf8] Tue Feb  3 21:54:01 2009
@@ -94,8 +94,8 @@
   <td></td>\n
 </tr>\n
 <tr>\n
-  <td>assertLocation</td>\n
-  <td tal:content="python:\'*%s/foo_module/0/Base_viewHistory*\' % here.getPortalObject().absolute_url_path()"/>\n
+  <td>assertAbsoluteLocation</td>\n
+  <td tal:content="string:glob:${here/portal_url}/foo_module/0/Base_viewHistory*" />\n
   <td></td>\n
 </tr>\n
 \n

Modified: erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/listbox_zuite/testRedirect.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/listbox_zuite/testRedirect.xml?rev=25438&r1=25437&r2=25438&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/listbox_zuite/testRedirect.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/listbox_zuite/testRedirect.xml [utf8] Tue Feb  3 21:54:01 2009
@@ -107,8 +107,8 @@
   <td></td>\n
 </tr>\n
 <tr>\n
-  <td>verifyLocation</td>\n
-  <td tal:content="python:\'*%s/foo_module/0/setSelectionQuickSortOrder*\' % here.getPortalObject().absolute_url_path()"/>\n
+  <td>verifyAbsoluteLocation</td>\n
+  <td tal:content="string:glob:${here/portal_url}/foo_module/0/setSelectionQuickSortOrder*" />\n
   <td></td>\n
 </tr>\n
 \n
@@ -180,8 +180,8 @@
   <td></td>\n
 </tr>\n
 <tr>\n
-  <td>verifyLocation</td>\n
-  <td tal:content="python:\'*%s/foo_module/0\' % here.getPortalObject().absolute_url_path()"/>\n
+  <td>verifyAbsoluteLocation</td>\n
+  <td tal:content="string:glob:${here/portal_url}/foo_module/0" />\n
   <td></td>\n
 </tr>\n
 <!-- Go to last and verify -->\n
@@ -226,8 +226,8 @@
   <td>4 of 4</td>\n
 </tr>\n
 <tr>\n
-  <td>verifyLocation</td>\n
-  <td tal:content="python:\'*%s/foo_module/0/listbox_setPage\' % here.getPortalObject().absolute_url_path()"/>\n
+  <td>verifyAbsoluteLocation</td>\n
+  <td tal:content="string:glob:${here/portal_url}/foo_module/0/listbox_setPage" />\n
   <td></td>\n
 </tr>\n
 <!-- Go to previous and verify -->\n
@@ -262,8 +262,8 @@
   <td></td>\n
 </tr>\n
 <tr>\n
-  <td>verifyLocation</td>\n
-  <td tal:content="python:\'*%s/foo_module/0\' % here.getPortalObject().absolute_url_path()"/>\n
+  <td>verifyAbsoluteLocation</td>\n
+  <td tal:content="string:glob:${here/portal_url}/foo_module/0" />\n
   <td></td>\n
 </tr>\n
 <!-- Go to first and verify -->\n
@@ -308,8 +308,8 @@
   <td>1 of 4</td>\n
 </tr>\n
 <tr>\n
-  <td>verifyLocation</td>\n
-  <td tal:content="python:\'*%s/foo_module/0/listbox_setPage\' % here.getPortalObject().absolute_url_path()"/>\n
+  <td>verifyAbsoluteLocation</td>\n
+  <td tal:content="string:glob:${here/portal_url}/foo_module/0/listbox_setPage" />\n
   <td></td>\n
 </tr>\n
 <tr>\n
@@ -417,8 +417,8 @@
 </tr>\n
 <!-- END of inspired code -->\n
 <tr>\n
-  <td>verifyLocation</td>\n
-  <td tal:content="python:\'*%s/foo_module/0/unfoldDomain*\' % here.getPortalObject().absolute_url_path()"/>\n
+  <td>verifyAbsoluteLocation</td>\n
+  <td tal:content="string:glob:${here/portal_url}/foo_module/0/unfoldDomain*" />\n
   <td></td>\n
 </tr>\n
 \n

Modified: erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/page_templates_zuite/testBreadCrumbs.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/page_templates_zuite/testBreadCrumbs.xml?rev=25438&r1=25437&r2=25438&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/page_templates_zuite/testBreadCrumbs.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/page_templates_zuite/testBreadCrumbs.xml [utf8] Tue Feb  3 21:54:01 2009
@@ -87,8 +87,8 @@
   <td></td>\n
 </tr>\n
 <tr>\n
-  <td>assertLocation</td>\n
-  <td tal:content="python:\'*%s/foo_module/0/view\' % here.getPortalObject().absolute_url_path()"/>\n
+  <td>assertAbsoluteLocation</td>\n
+  <td tal:content="string:glob:${here/portal_url}/foo_module/0/view" />\n
   <td></td>\n
 </tr>\n
 <tr>\n
@@ -97,8 +97,8 @@
   <td></td>\n
 </tr>\n
 <tr>\n
-  <td>assertLocation</td>\n
-  <td tal:content="python:\'*%s/view\' % here.getPortalObject().absolute_url_path()"/>\n
+  <td>assertAbsoluteLocation</td>\n
+  <td tal:content="string:glob:${here/portal_url}/view" />\n
   <td></td>\n
 </tr>\n
 \n

Modified: erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/page_templates_zuite/testDialogActions.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/page_templates_zuite/testDialogActions.xml?rev=25438&r1=25437&r2=25438&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/page_templates_zuite/testDialogActions.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/page_templates_zuite/testDialogActions.xml [utf8] Tue Feb  3 21:54:01 2009
@@ -118,8 +118,8 @@
   <td></td>\n
 </tr>\n
 <tr>\n
-  <td>assertLocation</td>\n
-  <td tal:content="python:\'*%s/foo_module/1/Foo_view\' % here.getPortalObject().absolute_url_path()"/>\n
+  <td>assertAbsoluteLocation</td>\n
+  <td tal:content="string:glob:${here/portal_url}/foo_module/1/Foo_view" />\n
   <td></td>\n
 </tr>\n
 <tr>\n

Modified: erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/page_templates_zuite/testDropDownListActionsNothingSelected.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/page_templates_zuite/testDropDownListActionsNothingSelected.xml?rev=25438&r1=25437&r2=25438&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/page_templates_zuite/testDropDownListActionsNothingSelected.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/page_templates_zuite/testDropDownListActionsNothingSelected.xml [utf8] Tue Feb  3 21:54:01 2009
@@ -77,8 +77,8 @@
     <td></td>\n
   </tr>\n
   <tr>\n
-    <td>assertLocation</td>\n
-    <td tal:content="python:\'*%s/foo_module/1/view\' % here.getPortalObject().absolute_url_path()"/>\n
+    <td>assertAbsoluteLocation</td>\n
+    <td tal:content="string:glob:${here/portal_url}/foo_module/1/view" />\n
     <td/>\n
   </tr>\n
   <tr>\n

Modified: erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/relation_field_zuite/testSimpleRelationFieldSaveButton.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/relation_field_zuite/testSimpleRelationFieldSaveButton.xml?rev=25438&r1=25437&r2=25438&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/relation_field_zuite/testSimpleRelationFieldSaveButton.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/relation_field_zuite/testSimpleRelationFieldSaveButton.xml [utf8] Tue Feb  3 21:54:01 2009
@@ -118,8 +118,8 @@
   <td></td>\n
 </tr>\n
 <tr>\n
-  <td>assertLocation</td>\n
-  <td tal:content="python:\'*%s/portal_categories/foo_category/a/a1/view\' % here.getPortalObject().absolute_url_path()"/>\n
+  <td>assertAbsoluteLocation</td>\n
+  <td tal:content="string:glob:${here/portal_url}/portal_categories/foo_category/a/a1/view" />\n
   <td/>\n
 </tr>\n
 </tbody></table>\n

Modified: erp5/trunk/bt5/erp5_ui_test/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_ui_test/bt/revision?rev=25438&r1=25437&r2=25438&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_ui_test/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/erp5_ui_test/bt/revision [utf8] Tue Feb  3 21:54:01 2009
@@ -1,1 +1,1 @@
-405
+406




More information about the Erp5-report mailing list