From: "Jacques Le Roux" <jacques.le.r...@les7arts.com>
I don't have working here (Windows XP, FF3.6.15, 
selenium-server-standalone-2.0b2.jar, seed updated)
Note: it's ok until the layered window. I get this

19:16:23.922 INFO - Command request: click[link=New Example, ] on session 
44355943fd934a9db4e0af2417bb25ec
19:16:24.500 INFO - Got result: OK on session 44355943fd934a9db4e0af2417bb25ec
19:16:24.500 INFO - Command request: waitForPageToLoad[10000, ] on session 
44355943fd934a9db4e0af2417bb25ec
19:16:35.015 INFO - Got result: Timed out after 10000ms on session 
44355943fd934a9db4e0af2417bb25e

Any ideas?

BTW the example_testsuite shows also when there are only seed loaded. Bu then no types/status exist for the Example entity and the
example_testsuite can't succed => it should show only when demo data are loaded

Also, apart having a refence to a file, what is the real interest to have this part of OFBiz? Is it a 1st step before using webdriver?

This question mostly because I find annoying to have to set port.https.enabled=N

Jacques

Anyway, enough for today...

Thanks

Jacques

From: <er...@apache.org>
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>





Reply via email to