[Erp5-report] r28486 - in /erp5/trunk/bt5/erp5_ui_test: PathTemplateItem/portal_tests/listb...

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Aug 20 12:49:56 CEST 2009


Author: mohamadou
Date: Thu Aug 20 12:49:54 2009
New Revision: 28486

URL: http://svn.erp5.org?rev=28486&view=rev
Log:
2009-08-20 Mohamadou
* Update  "listbox_dialog_mode_zuite" to support mobile ui tests.

Modified:
    erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/listbox_dialog_mode_zuite/testPager.xml
    erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/listbox_dialog_mode_zuite/testQuickSearch.xml
    erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/listbox_dialog_mode_zuite/testQuickSort.xml
    erp5/trunk/bt5/erp5_ui_test/bt/revision

Modified: erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/listbox_dialog_mode_zuite/testPager.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/listbox_dialog_mode_zuite/testPager.xml?rev=28486&r1=28485&r2=28486&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/listbox_dialog_mode_zuite/testPager.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/listbox_dialog_mode_zuite/testPager.xml [utf8] Thu Aug 20 12:49:54 2009
@@ -135,9 +135,16 @@
   <td> - 0 item(s) selected</td>\n
 </tr>\n
 <tr>\n
-  <td>verifyValue</td>\n
-  <td>id=listbox_set_page</td>\n
-  <td>1</td>\n
+<tal:block tal:condition="python: context.TestTool_getSkinName()!=\'Mobile\'">\n
+  <td>verifyValue</td>\n
+  <td>id=listbox_set_page</td>\n
+  <td>1</td>\n
+</tal:block>\n
+<tal:block tal:condition="python: context.TestTool_getSkinName()==\'Mobile\'">\n
+  <td>verifyValue</td>\n
+  <td>id=listbox_page_selection</td>\n
+  <td>0</td>\n
+</tal:block>\n
 </tr>\n
 <tr>\n
   <td>verifyElementPresent</td>\n
@@ -197,9 +204,16 @@
 <!--tal:block metal:use-macro="here/ListBoxDialogModeZuite_CommonTemplate/macros/verify_dialog" /-->\n
 \n
 <tr>\n
+<tal:block tal:condition="python: context.TestTool_getSkinName()!=\'Mobile\'">\n
   <td>verifyValue</td>\n
   <td>id=listbox_set_page</td>\n
   <td>2</td>\n
+</tal:block>\n
+<tal:block tal:condition="python: context.TestTool_getSkinName()==\'Mobile\'">\n
+  <td>verifyValue</td>\n
+  <td>id=listbox_page_selection</td>\n
+  <td>3</td>\n
+</tal:block>\n
 </tr>\n
 <tr>\n
   <td>verifyElementPresent</td>\n
@@ -241,9 +255,16 @@
 </tr>\n
 <tal:block metal:use-macro="here/ListBoxDialogModeZuite_CommonTemplate/macros/verify_dialog" />\n
 <tr>\n
-  <td>verifyValue</td>\n
-  <td>id=listbox_set_page</td>\n
-  <td>1</td>\n
+<tal:block tal:condition="python: context.TestTool_getSkinName()!=\'Mobile\'">\n
+  <td>verifyValue</td>\n
+  <td>id=listbox_set_page</td>\n
+  <td>1</td>\n
+</tal:block>\n
+<tal:block tal:condition="python: context.TestTool_getSkinName()==\'Mobile\'">\n
+  <td>verifyValue</td>\n
+  <td>id=listbox_page_selection</td>\n
+  <td>0</td>\n
+</tal:block>\n
 </tr>\n
 <tr>\n
   <td>verifyElementPresent</td>\n
@@ -277,16 +298,28 @@
 </tr>\n
 \n
 <!-- Select page -->\n
+<!-- In mobile skin we do not use listbox_set_page \n
+     so change the page with the select -->\n
+<tal:block tal:condition="python: context.TestTool_getSkinName()!=\'Mobile\'">\n
 <tr>\n
   <td>type</td>\n
   <td>id=listbox_set_page</td>\n
   <td>4</td>\n
 </tr>\n
 <tr>\n
-  <td>keyPressAndWait</td>\n
-  <td>id=listbox_set_page</td>\n
-  <td>\\13</td>\n
-</tr>\n
+   <td>keyPressAndWait</td>\n
+   <td>id=listbox_set_page</td>\n
+   <td>\\13</td>\n
+</tr>\n
+</tal:block>\n
+<tal:block tal:condition="python: context.TestTool_getSkinName()==\'Mobile\'">\n
+<tr>\n
+   <td>select</td>\n
+   <td>id=listbox_page_selection</td>\n
+   <td>4 of 4</td>\n
+</tr>\n
+</tal:block>\n
+\n
 <!--tal:block metal:use-macro="here/ListBoxDialogModeZuite_CommonTemplate/macros/verify_dialog" /-->\n
 <tr>\n
   <td>assertTextPresent</td>\n
@@ -304,9 +337,16 @@
   <td> - 1 item(s) selected</td>\n
 </tr>\n
 <tr>\n
+<tal:block tal:condition="python: context.TestTool_getSkinName()!=\'Mobile\'">\n
   <td>verifyValue</td>\n
   <td>id=listbox_set_page</td>\n
   <td>4</td>\n
+</tal:block>\n
+<tal:block tal:condition="python: context.TestTool_getSkinName()==\'Mobile\'">\n
+  <td>verifyValue</td>\n
+  <td>id=listbox_page_selection</td>\n
+  <td>9</td>\n
+</tal:block>\n
 </tr>\n
 <tr>\n
   <td>verifyElementNotPresent</td>\n
@@ -346,9 +386,16 @@
   <td> - 0 item(s) selected</td>\n
 </tr>\n
 <tr>\n
-  <td>verifyValue</td>\n
-  <td>id=listbox_set_page</td>\n
-  <td>1</td>\n
+<tal:block tal:condition="python: context.TestTool_getSkinName()!=\'Mobile\'">\n
+  <td>verifyValue</td>\n
+  <td>id=listbox_set_page</td>\n
+  <td>1</td>\n
+</tal:block>\n
+<tal:block tal:condition="python: context.TestTool_getSkinName()==\'Mobile\'">\n
+  <td>verifyValue</td>\n
+  <td>id=listbox_page_selection</td>\n
+  <td>0</td>\n
+</tal:block>\n
 </tr>\n
 <tr>\n
   <td>verifyElementPresent</td>\n

Modified: erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/listbox_dialog_mode_zuite/testQuickSearch.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/listbox_dialog_mode_zuite/testQuickSearch.xml?rev=28486&r1=28485&r2=28486&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/listbox_dialog_mode_zuite/testQuickSearch.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/listbox_dialog_mode_zuite/testQuickSearch.xml [utf8] Thu Aug 20 12:49:54 2009
@@ -53,16 +53,16 @@
 <tal:block metal:use-macro="here/ListBoxDialogModeZuite_CommonTemplate/macros/init" />\n
 <!-- Search by id -->\n
 <tr>\n
- <tal:block tal:condition="python: context.TestTool_getSkinName()!=\'Mobile\'">\n
+<tal:block tal:condition="python: context.TestTool_getSkinName()!=\'Mobile\'">\n
   <td>type</td>\n
   <td>//tr[@id="listbox_search_line"]/td[2]//input</td>\n
   <td>1</td>\n
- </tal:block>\n
- <tal:block tal:condition="python: context.TestTool_getSkinName()==\'Mobile\'">\n
+</tal:block>\n
+<tal:block tal:condition="python: context.TestTool_getSkinName()==\'Mobile\'">\n
   <td>type</td>\n
   <td>//div[@id="listbox_search_line"]//input[@id="input0"]</td>\n
   <td>1</td>\n
- </tal:block>\n
+</tal:block>\n
 </tr>\n
 <!--\n
 <tr>\n

Modified: erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/listbox_dialog_mode_zuite/testQuickSort.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/listbox_dialog_mode_zuite/testQuickSort.xml?rev=28486&r1=28485&r2=28486&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/listbox_dialog_mode_zuite/testQuickSort.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/listbox_dialog_mode_zuite/testQuickSort.xml [utf8] Thu Aug 20 12:49:54 2009
@@ -50,6 +50,9 @@
 <thead>\n
 <tr><td rowspan="1" colspan="3">Test Quick Sort</td></tr>\n
 </thead><tbody>\n
+<!-- Mobile listbox columns label are not clickable for quick sorting\n
+     So this test is skipped -->\n
+<tal:block tal:condition="python: context.TestTool_getSkinName()!=\'Mobile\'">\n
 <tal:block metal:use-macro="here/ListBoxDialogModeZuite_CommonTemplate/macros/init" />\n
 <tr>\n
   <td>assertElementPresent</td>\n
@@ -140,7 +143,7 @@
   <td>id=listbox_data_line_3</td>\n
   <td></td>\n
 </tr>\n
-\n
+</tal:block>\n
 </tbody></table>\n
 </body>\n
 </html>\n

Modified: erp5/trunk/bt5/erp5_ui_test/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_ui_test/bt/revision?rev=28486&r1=28485&r2=28486&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_ui_test/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/erp5_ui_test/bt/revision [utf8] Thu Aug 20 12:49:54 2009
@@ -1,1 +1,1 @@
-464
+465




More information about the Erp5-report mailing list