svn commit: r1082172 - /ofbiz/trunk/framework/testtools/testdef/seleniumxml/example/recorded/NewExample.html

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1082172 - /ofbiz/trunk/framework/testtools/testdef/seleniumxml/example/recorded/NewExample.html

erwan
Author: erwan
Date: Wed Mar 16 15:55:41 2011
New Revision: 1082172

URL: http://svn.apache.org/viewvc?rev=1082172&view=rev
Log:
Updating the newExample test and making work after ajax-window introduction

Modified:
    ofbiz/trunk/framework/testtools/testdef/seleniumxml/example/recorded/NewExample.html

Modified: ofbiz/trunk/framework/testtools/testdef/seleniumxml/example/recorded/NewExample.html
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/testtools/testdef/seleniumxml/example/recorded/NewExample.html?rev=1082172&r1=1082171&r2=1082172&view=diff
==============================================================================
--- ofbiz/trunk/framework/testtools/testdef/seleniumxml/example/recorded/NewExample.html (original)
+++ ofbiz/trunk/framework/testtools/testdef/seleniumxml/example/recorded/NewExample.html Wed Mar 16 15:55:41 2011
@@ -41,6 +41,11 @@
 </tr>
 <tr>
     <td>type</td>
+    <td>USERNAME</td>
+    <td>admin</td>
+</tr>
+<tr>
+    <td>type</td>
     <td>PASSWORD</td>
     <td>ofbiz</td>
 </tr>
@@ -50,83 +55,78 @@
     <td></td>
 </tr>
 <tr>
-    <td>clickAndWait</td>
+    <td>click</td>
     <td>link=New Example</td>
     <td></td>
 </tr>
 <tr>
+    <td>waitForElementPresent</td>
+    <td>EditExample_statusId</td>
+    <td></td>
+</tr>
+<tr>
     <td>select</td>
-    <td>statusId</td>
+    <td>EditExample_statusId</td>
     <td>label=Defined</td>
 </tr>
 <tr>
     <td>type</td>
-    <td>exampleName</td>
+    <td>EditExample_exampleName</td>
     <td>New Example 1</td>
 </tr>
 <tr>
     <td>type</td>
-    <td>description</td>
+    <td>EditExample_description</td>
     <td>This is a description</td>
 </tr>
 <tr>
     <td>type</td>
-    <td>longDescription</td>
+    <td>EditExample_longDescription</td>
     <td>Long description goes here</td>
 </tr>
 <tr>
     <td>type</td>
-    <td>comments</td>
+    <td>EditExample_comments</td>
     <td>comments go here</td>
 </tr>
 <tr>
     <td>type</td>
-    <td>exampleSize</td>
+    <td>EditExample_exampleSize</td>
     <td>10</td>
 </tr>
 <tr>
     <td>click</td>
-    <td>//img[@alt='View Calendar']</td>
+    <td>//button[@class='ui-datepicker-trigger'][1]</td>
     <td></td>
 </tr>
 <tr>
     <td>click</td>
-    <td>//tr[2]/td[5]/div</td>
+    <td>//button[contains(text(),'Now')]</td>
     <td></td>
 </tr>
 <tr>
     <td>click</td>
-    <td>//tr[2]/td[5]/div</td>
+    <td>//button[contains(text(),'Done')]</td>
     <td></td>
 </tr>
 <tr>
-    <td>click</td>
-    <td>//div[@id='_G152__body']/table/tbody/tr[9]/td[2]/a/img</td>
-    <td></td>
-</tr>
-<tr>
-    <td>click</td>
-    <td>//tr[3]/td[2]/div</td>
-    <td></td>
+    <td>select</td>
+    <td>EditExample_anotherText</td>
+    <td>label=Contrived</td>
 </tr>
 <tr>
-    <td>click</td>
-    <td>//tr[3]/td[2]/div</td>
+    <td>clickAndWait</td>
+    <td>submitButton</td>
     <td></td>
 </tr>
 <tr>
-    <td>click</td>
-    <td>link=OK</td>
+    <td>waitForElementPresent</td>
+    <td>//div[@id='search-results']//a[@class='buttontext']</td>
     <td></td>
 </tr>
 <tr>
-    <td>select</td>
-    <td>anotherText</td>
-    <td>label=Good</td>
-</tr>
-<tr>
     <td>clickAndWait</td>
-    <td>submitButton</td>
+    <td>//div[@id='search-results']//a[@class='buttontext']</td>
     <td></td>
 </tr>
 <tr>
@@ -151,15 +151,14 @@
 </tr>
 <tr>
     <td>clickAndWait</td>
-    <td>submitButton</td>
+    <td>//input[@name='submitButton' and @value='Add']</td>
     <td></td>
 </tr>
 <tr>
-    <td>clickAndWait</td>
-    <td>link=New Example</td>
+    <td>assertConfirmation</td>
+    <td>Do you confirm ?</td>
     <td></td>
 </tr>
-
 </tbody></table>
 </body>
 </html>