Commit 2c2fde38 authored by Mohamadou Mbengue's avatar Mohamadou Mbengue

2009-08-20 Mohamadou

* Update relation_field_zuite to support mobile ui tests.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28601 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7d0a2e40
...@@ -136,6 +136,7 @@ ...@@ -136,6 +136,7 @@
<td>id=listbox_data_line_3</td>\n <td>id=listbox_data_line_3</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
<tal:block tal:condition="python: context.TestTool_getSkinName()!=\'Mobile\'">\n
<tr>\n <tr>\n
<td>verifyText</td>\n <td>verifyText</td>\n
<td>//tr[@id="listbox_label_line"]/td[2]</td>\n <td>//tr[@id="listbox_label_line"]/td[2]</td>\n
...@@ -156,6 +157,30 @@ ...@@ -156,6 +157,30 @@
<td>//tr[@id="listbox_label_line"]/td[5]</td>\n <td>//tr[@id="listbox_label_line"]/td[5]</td>\n
<td>Date</td>\n <td>Date</td>\n
</tr>\n </tr>\n
</tal:block>\n
<tal:block tal:condition="python: context.TestTool_getSkinName()==\'Mobile\'">\n
<!--<tr>\n
<td>verifyText</td>\n
<td>//tr[@id="listbox_label_line"]/td[2]</td>\n
<td>ID</td>\n
</tr> -->\n
<tr>\n
<td>assertText</td>\n
<td>//*[@id="listbox_data_line_0"]/div[2]//span[1]</td>\n
<td>Title</td>\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//*[@id="listbox_data_line_0"]/div[3]//span[1]</td>\n
<td>Quantity</td>\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//*[@id="listbox_data_line_0"]/div[4]//span[1]</td>\n
<td>Date</td>\n
</tr>\n
</tal:block>\n
\n
<tr>\n <tr>\n
<td>selectAndWait</td>\n <td>selectAndWait</td>\n
<td>//select[@id="dialog_selector"]</td>\n <td>//select[@id="dialog_selector"]</td>\n
...@@ -186,6 +211,7 @@ ...@@ -186,6 +211,7 @@
<td>id=listbox_data_line_3</td>\n <td>id=listbox_data_line_3</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
<tal:block tal:condition="python: context.TestTool_getSkinName()!=\'Mobile\'">\n
<tr>\n <tr>\n
<td>verifyText</td>\n <td>verifyText</td>\n
<td>//tr[@id="listbox_label_line"]/td[2]</td>\n <td>//tr[@id="listbox_label_line"]/td[2]</td>\n
...@@ -201,6 +227,25 @@ ...@@ -201,6 +227,25 @@
<td>//tr[@id="listbox_label_line"]/td[4]</td>\n <td>//tr[@id="listbox_label_line"]/td[4]</td>\n
<td>Quantity</td>\n <td>Quantity</td>\n
</tr>\n </tr>\n
</tal:block>\n
<tal:block tal:condition="python: context.TestTool_getSkinName()==\'Mobile\'">\n
<!--<tr>\n
<td>verifyText</td>\n
<td>//tr[@id="listbox_label_line"]/td[2]</td>\n
<td>ID</td>\n
</tr> -->\n
<tr>\n
<td>assertText</td>\n
<td>//*[@id="listbox_data_line_0"]/div[2]//span[1]</td>\n
<td>Title</td>\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//*[@id="listbox_data_line_0"]/div[3]//span[1]</td>\n
<td>Quantity</td>\n
</tr>\n
</tal:block>\n
\n
<tr>\n <tr>\n
<td>clickAndWait</td>\n <td>clickAndWait</td>\n
<td>//button[@id="dialog_update_button"]</td>\n <td>//button[@id="dialog_update_button"]</td>\n
...@@ -221,6 +266,7 @@ ...@@ -221,6 +266,7 @@
<td>id=listbox_data_line_3</td>\n <td>id=listbox_data_line_3</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
<tal:block tal:condition="python: context.TestTool_getSkinName()!=\'Mobile\'">\n
<tr>\n <tr>\n
<td>verifyText</td>\n <td>verifyText</td>\n
<td>//tr[@id="listbox_label_line"]/td[2]</td>\n <td>//tr[@id="listbox_label_line"]/td[2]</td>\n
...@@ -236,6 +282,24 @@ ...@@ -236,6 +282,24 @@
<td>//tr[@id="listbox_label_line"]/td[4]</td>\n <td>//tr[@id="listbox_label_line"]/td[4]</td>\n
<td>Quantity</td>\n <td>Quantity</td>\n
</tr>\n </tr>\n
</tal:block>\n
<tal:block tal:condition="python: context.TestTool_getSkinName()==\'Mobile\'">\n
<!--<tr>\n
<td>verifyText</td>\n
<td>//tr[@id="listbox_label_line"]/td[2]</td>\n
<td>ID</td>\n
</tr> -->\n
<tr>\n
<td>assertText</td>\n
<td>//*[@id="listbox_data_line_0"]/div[2]//span[1]</td>\n
<td>Title</td>\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//*[@id="listbox_data_line_0"]/div[3]//span[1]</td>\n
<td>Quantity</td>\n
</tr>\n
</tal:block>\n
</tbody></table>\n </tbody></table>\n
</body>\n </body>\n
</html>\n </html>\n
......
...@@ -186,16 +186,9 @@ ...@@ -186,16 +186,9 @@
<td></td>\n <td></td>\n
</tr>\n </tr>\n
<tr>\n <tr>\n
<tal:block tal:condition="python: context.TestTool_getSkinName()!=\'Mobile\'">\n
<td>assertValue</td>\n
<td>//input[@id="listbox_set_page"]</td>\n
<td>2</td>\n
</tal:block>\n
<tal:block tal:condition="python: context.TestTool_getSkinName()==\'Mobile\'">\n
<td>assertValue</td>\n <td>assertValue</td>\n
<td>id=listbox_page_selection</td>\n <td>id=listbox_page_selection</td>\n
<td>10</td>\n <td>10</td>\n
</tal:block>\n
</tr>\n </tr>\n
<!--<tr>\n <!--<tr>\n
<td>assertText</td>\n <td>assertText</td>\n
......
...@@ -78,7 +78,7 @@ ...@@ -78,7 +78,7 @@
</tr>\n </tr>\n
<tr>\n <tr>\n
<td>clickAndWait</td>\n <td>clickAndWait</td>\n
<td>link=Title 0</td>\n <td>link=0</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
\n \n
......
...@@ -79,7 +79,7 @@ to set categories</td></tr>\n ...@@ -79,7 +79,7 @@ to set categories</td></tr>\n
</tr>\n </tr>\n
<tr>\n <tr>\n
<td>clickAndWait</td>\n <td>clickAndWait</td>\n
<td>link=Title 0</td>\n <td>link=0</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
<tr>\n <tr>\n
......
...@@ -78,7 +78,7 @@ ...@@ -78,7 +78,7 @@
</tr>\n </tr>\n
<tr>\n <tr>\n
<td>clickAndWait</td>\n <td>clickAndWait</td>\n
<td>link=Title 0</td>\n <td>link=0</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
<tr>\n <tr>\n
...@@ -98,9 +98,16 @@ ...@@ -98,9 +98,16 @@
<td></td>\n <td></td>\n
</tr>\n </tr>\n
<tr>\n <tr>\n
<tal:block tal:condition="python: context.TestTool_getSkinName()!=\'Mobile\'">\n
<td>assertValue</td>\n <td>assertValue</td>\n
<td>//input[@id="listbox_set_page"]</td>\n <td>//input[@id="listbox_set_page"]</td>\n
<td>2</td>\n <td>2</td>\n
</tal:block>\n
<tal:block tal:condition="python: context.TestTool_getSkinName()==\'Mobile\'">\n
<td>assertValue</td>\n
<td>id=listbox_page_selection</td>\n
<td>10</td>\n
</tal:block>\n
</tr>\n </tr>\n
\n \n
<tr>\n <tr>\n
...@@ -109,9 +116,16 @@ ...@@ -109,9 +116,16 @@
<td></td>\n <td></td>\n
</tr>\n </tr>\n
<tr>\n <tr>\n
<tal:block tal:condition="python: context.TestTool_getSkinName()!=\'Mobile\'">\n
<td>assertValue</td>\n <td>assertValue</td>\n
<td>//input[@id="listbox_set_page"]</td>\n <td>//input[@id="listbox_set_page"]</td>\n
<td>3</td>\n <td>3</td>\n
</tal:block>\n
<tal:block tal:condition="python: context.TestTool_getSkinName()==\'Mobile\'">\n
<td>assertValue</td>\n
<td>id=listbox_page_selection</td>\n
<td>20</td>\n
</tal:block>\n
</tr>\n </tr>\n
\n \n
<tr>\n <tr>\n
...@@ -120,11 +134,19 @@ ...@@ -120,11 +134,19 @@
<td></td>\n <td></td>\n
</tr>\n </tr>\n
<tr>\n <tr>\n
<tal:block tal:condition="python: context.TestTool_getSkinName()!=\'Mobile\'">\n
<td>assertValue</td>\n <td>assertValue</td>\n
<td>//input[@id="listbox_set_page"]</td>\n <td>//input[@id="listbox_set_page"]</td>\n
<td>2</td>\n <td>2</td>\n
</tal:block>\n
<tal:block tal:condition="python: context.TestTool_getSkinName()==\'Mobile\'">\n
<td>assertValue</td>\n
<td>id=listbox_page_selection</td>\n
<td>10</td>\n
</tal:block>\n
</tr>\n </tr>\n
\n \n
<tal:block tal:condition="python: context.TestTool_getSkinName()!=\'Mobile\'">\n
<tr>\n <tr>\n
<td>type</td>\n <td>type</td>\n
<td>id=listbox_set_page</td>\n <td>id=listbox_set_page</td>\n
...@@ -140,7 +162,21 @@ ...@@ -140,7 +162,21 @@
<td>//input[@id="listbox_set_page"]</td>\n <td>//input[@id="listbox_set_page"]</td>\n
<td>1</td>\n <td>1</td>\n
</tr>\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>1 of 135</td>\n
</tr>\n
<tr>\n
<td>assertValue</td>\n
<td>id=listbox_page_selection</td>\n
<td>0</td>\n
</tr>\n
</tal:block>\n
\n \n
<tal:block tal:condition="python: context.TestTool_getSkinName()!=\'Mobile\'">\n
<tr>\n <tr>\n
<td>type</td>\n <td>type</td>\n
<td>id=listbox_set_page</td>\n <td>id=listbox_set_page</td>\n
...@@ -156,10 +192,23 @@ ...@@ -156,10 +192,23 @@
<td>//input[@id="listbox_set_page"]</td>\n <td>//input[@id="listbox_set_page"]</td>\n
<td>3</td>\n <td>3</td>\n
</tr>\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>3 of 135</td>\n
</tr>\n
<tr>\n
<td>assertValue</td>\n
<td>id=listbox_page_selection</td>\n
<td>20</td>\n
</tr>\n
</tal:block>\n
\n \n
<tr>\n <tr>\n
<td>click</td>\n <td>click</td>\n
<td>//tr[@id="listbox_data_line_0"]/td[1]/input</td>\n <td>//*[@id=\'listbox_data_line_0\']//input[@type="checkbox"]</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
<tr>\n <tr>\n
......
...@@ -79,7 +79,7 @@ button</td></tr>\n ...@@ -79,7 +79,7 @@ button</td></tr>\n
</tr>\n </tr>\n
<tr>\n <tr>\n
<td>clickAndWait</td>\n <td>clickAndWait</td>\n
<td>link=Title 0</td>\n <td>link=0</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
<tr>\n <tr>\n
......
...@@ -78,7 +78,7 @@ ...@@ -78,7 +78,7 @@
</tr>\n </tr>\n
<tr>\n <tr>\n
<td>clickAndWait</td>\n <td>clickAndWait</td>\n
<td>link=Title 0</td>\n <td>link=0</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
<tr>\n <tr>\n
...@@ -127,7 +127,7 @@ ...@@ -127,7 +127,7 @@
\n \n
<tr>\n <tr>\n
<td>click</td>\n <td>click</td>\n
<td>//tr[@id="listbox_data_line_0"]/td[1]/input</td>\n <td>//*[@id=\'listbox_data_line_0\']//input[@type="checkbox"]</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
<tr>\n <tr>\n
......
...@@ -78,7 +78,7 @@ ...@@ -78,7 +78,7 @@
</tr>\n </tr>\n
<tr>\n <tr>\n
<td>clickAndWait</td>\n <td>clickAndWait</td>\n
<td>link=Title 0</td>\n <td>link=0</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
<tr>\n <tr>\n
...@@ -108,9 +108,16 @@ ...@@ -108,9 +108,16 @@
<td></td>\n <td></td>\n
</tr>\n </tr>\n
<tr>\n <tr>\n
<tal:block tal:condition="python: context.TestTool_getSkinName()!=\'Mobile\'">\n
<td>assertValue</td>\n <td>assertValue</td>\n
<td>//input[@id="listbox_set_page"]</td>\n <td>//input[@id="listbox_set_page"]</td>\n
<td>2</td>\n <td>2</td>\n
</tal:block>\n
<tal:block tal:condition="python: context.TestTool_getSkinName()==\'Mobile\'">\n
<td>assertValue</td>\n
<td>id=listbox_page_selection</td>\n
<td>10</td>\n
</tal:block>\n
</tr>\n </tr>\n
<tr>\n <tr>\n
<td>assertValue</td>\n <td>assertValue</td>\n
...@@ -124,9 +131,16 @@ ...@@ -124,9 +131,16 @@
<td></td>\n <td></td>\n
</tr>\n </tr>\n
<tr>\n <tr>\n
<tal:block tal:condition="python: context.TestTool_getSkinName()!=\'Mobile\'">\n
<td>assertValue</td>\n <td>assertValue</td>\n
<td>//input[@id="listbox_set_page"]</td>\n <td>//input[@id="listbox_set_page"]</td>\n
<td>3</td>\n <td>3</td>\n
</tal:block>\n
<tal:block tal:condition="python: context.TestTool_getSkinName()==\'Mobile\'">\n
<td>assertValue</td>\n
<td>id=listbox_page_selection</td>\n
<td>20</td>\n
</tal:block>\n
</tr>\n </tr>\n
<tr>\n <tr>\n
<td>assertValue</td>\n <td>assertValue</td>\n
...@@ -140,11 +154,19 @@ ...@@ -140,11 +154,19 @@
<td></td>\n <td></td>\n
</tr>\n </tr>\n
<tr>\n <tr>\n
<tal:block tal:condition="python: context.TestTool_getSkinName()!=\'Mobile\'">\n
<td>assertValue</td>\n <td>assertValue</td>\n
<td>//input[@id="listbox_set_page"]</td>\n <td>//input[@id="listbox_set_page"]</td>\n
<td>2</td>\n <td>2</td>\n
</tal:block>\n
<tal:block tal:condition="python: context.TestTool_getSkinName()==\'Mobile\'">\n
<td>assertValue</td>\n
<td>id=listbox_page_selection</td>\n
<td>10</td>\n
</tal:block>\n
</tr>\n </tr>\n
\n \n
<tal:block tal:condition="python: context.TestTool_getSkinName()!=\'Mobile\'">\n
<tr>\n <tr>\n
<td>type</td>\n <td>type</td>\n
<td>id=listbox_set_page</td>\n <td>id=listbox_set_page</td>\n
...@@ -181,6 +203,36 @@ ...@@ -181,6 +203,36 @@
<td>//input[@id="listbox_set_page"]</td>\n <td>//input[@id="listbox_set_page"]</td>\n
<td>3</td>\n <td>3</td>\n
</tr>\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>1 of 91</td>\n
</tr>\n
<tr>\n
<td>assertValue</td>\n
<td>id=listbox_page_selection</td>\n
<td>0</td>\n
</tr>\n
<tr>\n
<td>assertValue</td>\n
<td>title</td>\n
<td>%c%</td>\n
</tr>\n
<tr>\n
<td>select</td>\n
<td>id=listbox_page_selection</td>\n
<td>3 of 91</td>\n
</tr>\n
<tr>\n
<td>assertValue</td>\n
<td>id=listbox_page_selection</td>\n
<td>20</td>\n
</tr>\n
</tal:block>\n
\n
\n
<tr>\n <tr>\n
<td>assertValue</td>\n <td>assertValue</td>\n
<td>title</td>\n <td>title</td>\n
...@@ -189,7 +241,7 @@ ...@@ -189,7 +241,7 @@
\n \n
<tr>\n <tr>\n
<td>click</td>\n <td>click</td>\n
<td>//tr[@id="listbox_data_line_0"]/td[1]/input</td>\n <td>//*[@id=\'listbox_data_line_0\']//input[@type="checkbox"]</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
<tr>\n <tr>\n
......
...@@ -78,7 +78,7 @@ ...@@ -78,7 +78,7 @@
</tr>\n </tr>\n
<tr>\n <tr>\n
<td>clickAndWait</td>\n <td>clickAndWait</td>\n
<td>link=Title 0</td>\n <td>link=0</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
<tr>\n <tr>\n
...@@ -122,7 +122,7 @@ ...@@ -122,7 +122,7 @@
</tr-->\n </tr-->\n
<tr>\n <tr>\n
<td>click</td>\n <td>click</td>\n
<td>//tr[@id="listbox_data_line_0"]/td[1]/input</td>\n <td>//*[@id=\'listbox_data_line_0\']//input[@type="checkbox"]</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
<tr>\n <tr>\n
......
...@@ -88,11 +88,20 @@ ...@@ -88,11 +88,20 @@
<td>field_my_quantity</td>\n <td>field_my_quantity</td>\n
<td>x</td>\n <td>x</td>\n
</tr>\n </tr>\n
<tal:block tal:condition="python: context.TestTool_getSkinName()!=\'Mobile\'">\n
<tr>\n <tr>\n
<td>type</td>\n <td>type</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[3]/input</td>\n <td>//tr[@id=\'listbox_data_line_0\']/td[3]/input</td>\n
<td>y</td>\n <td>y</td>\n
</tr>\n </tr>\n
</tal:block>\n
<tal:block tal:condition="python: context.TestTool_getSkinName()==\'Mobile\'">\n
<tr>\n
<td>type</td>\n
<td>//*[@id="listbox_0data2"]//input[@type="text"]</td>\n
<td>y</td>\n
</tr>\n
</tal:block>\n
\n \n
<tr>\n <tr>\n
<td>clickAndWait</td>\n <td>clickAndWait</td>\n
...@@ -116,6 +125,7 @@ ...@@ -116,6 +125,7 @@
<td>field_my_quantity</td>\n <td>field_my_quantity</td>\n
<td>x</td>\n <td>x</td>\n
</tr>\n </tr>\n
<tal:block tal:condition="python: context.TestTool_getSkinName()!=\'Mobile\'">\n
<tr>\n <tr>\n
<td>verifyElementPresent</td>\n <td>verifyElementPresent</td>\n
<td>//fieldset[@id=\'fieldset_right\']/div[@class=\'field error\']/span[@class=\'error\']</td>\n <td>//fieldset[@id=\'fieldset_right\']/div[@class=\'field error\']/span[@class=\'error\']</td>\n
...@@ -131,6 +141,25 @@ ...@@ -131,6 +141,25 @@
<td>//tr[@id=\'listbox_data_line_0\']/td[3]/span[@class=\'error\']</td>\n <td>//tr[@id=\'listbox_data_line_0\']/td[3]/span[@class=\'error\']</td>\n
<td/>\n <td/>\n
</tr>\n </tr>\n
</tal:block>\n
<tal:block tal:condition="python: context.TestTool_getSkinName()==\'Mobile\'">\n
<tr>\n
<td>verifyElementPresent</td>\n
<td>//fieldset[@id=\'fieldset_right\']/div[1]/div[@class=\'field error\']/span[@class=\'error\']</td>\n
<td/>\n
</tr>\n
<tr>\n
<td>verifyValue</td>\n
<td>//*[@id="listbox_0data2"]//input[@type="text"]</td>\n
<td>y</td>\n
</tr>\n
<tr>\n
<td>verifyElementPresent</td>\n
<td>//*[@id=\'listbox_0data2\']/div[1]/span[@class=\'error\']</td>\n
<td/>\n
</tr>\n
</tal:block>\n
\n
\n \n
<!-- now save correct values -->\n <!-- now save correct values -->\n
<tr>\n <tr>\n
...@@ -138,11 +167,20 @@ ...@@ -138,11 +167,20 @@
<td>field_my_quantity</td>\n <td>field_my_quantity</td>\n
<td>1</td>\n <td>1</td>\n
</tr>\n </tr>\n
<tal:block tal:condition="python: context.TestTool_getSkinName()!=\'Mobile\'">\n
<tr>\n <tr>\n
<td>type</td>\n <td>type</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[3]/input</td>\n <td>//tr[@id=\'listbox_data_line_0\']/td[3]/input</td>\n
<td>2</td>\n <td>2</td>\n
</tr>\n </tr>\n
</tal:block>\n
<tal:block tal:condition="python: context.TestTool_getSkinName()==\'Mobile\'">\n
<tr>\n
<td>type</td>\n
<td>//*[@id="listbox_0data2"]//input[@type="text"]</td>\n
<td>2</td>\n
</tr>\n
</tal:block>\n
\n \n
<tr>\n <tr>\n
<td>clickAndWait</td>\n <td>clickAndWait</td>\n
......
478 479
\ No newline at end of file \ No newline at end of file
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