You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by Jacques Le Roux <ja...@les7arts.com> on 2011/03/18 21:19:21 UTC

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

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?

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>
>
>



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

Posted by Jacques Le Roux <ja...@les7arts.com>.
Thanks Paul,

Updated at r1086844

Jacques

From: "Paul Foxworthy" <pa...@cohsoft.com.au>
> Hi Jacques,
>
> Brett has republished it here.
>
> http://www.kenfuse.com/forum/material-regarding-seleniumxml
> http://www.kenfuse.com/forum/material-regarding-seleniumxml
>
> Cheers
>
> Paul Foxworthy
>
>
> Jacques Le Roux-3 wrote:
>>
>> From: &quot;Jacques Le Roux&quot; &lt;jacques.le.roux@les7arts.com&gt;
>> &gt; From: &quot;Erwan de FERRIERES&quot;
>> &lt;erwan.de-ferrieres@nereide.fr&gt;
>> &gt;&gt; Le 26/03/2011 14:40, Jacques Le Roux a écrit :
>> &gt;&gt;&gt; Hi Erwan,
>> &gt;&gt;&gt;
>> &gt;&gt;&gt; I think this question is mostly for you
>> &gt;&gt;&gt;
>> &gt;&gt;&gt; Jacques Le Roux wrote:
>> &gt;&gt;&gt;&gt; From: &quot;Jacques Le Roux&quot;
>> &lt;jacques.le.roux@les7arts.com&gt;
>> &gt;&gt;&gt;&gt;&gt; Also, apart having a refence to a file, what is the
>> real interest to
>> &gt;&gt;&gt;&gt;&gt; have this part of OFBiz? Is it a 1st step before
>> using
>> &gt;&gt;&gt;&gt;&gt; webdriver?
>> &gt;&gt;&gt;&gt;
>> &gt;&gt;&gt;&gt; This question mostly because I find annoying to have to
>> set
>> &gt;&gt;&gt;&gt; port.https.enabled=N
>> &gt;&gt;&gt;&gt;
>> &gt;&gt;&gt;&gt; Jacques
>> &gt;&gt;&gt;
>> &gt;&gt;&gt;
>> &gt;&gt;&gt;
>> &gt;&gt; Hi Jacques,
>> &gt;&gt;
>> &gt;&gt; are you speaking of the SeleniumTestSuitePath entity ?
>> &gt;&gt; -- 
>> &gt;&gt; Erwan de FERRIERES
>> &gt;
>> &gt; Hi Erwan,
>> &gt;
>> &gt; Yes, what's the purpose exactly, what we dont have externally? A
>> single place to store and run references? Are you using it like
>> &gt; this or rather following http://www.neogia.org/ConfigurationHudson
>> (down BTW ;o)
>> &gt;
>> &gt; Jacques
>>
>> Also we have a doc about Selenium Xml at
>> http://demo-trunk.ofbiz.apache.org/cmssite/cms/APACHE_OFBIZ_HTML#OFBizSeleniumXml
>> It's unrelated to SeleniumTestSuitePath  (too bad the
>> http://us.apachecon.com/presentation/materials/118/ApacheCon2008_SeleniumXml.pdf
>> is not accessible anymore)
>> Apart Brett, is someone using Selenium Xml, any experiences?
>>
>> Thanks
>>
>> Jacques
>>
>
>
> --
> View this message in context:
> http://ofbiz.135035.n4.nabble.com/Re-svn-commit-r1082172-ofbiz-trunk-framework-testtools-testdef-seleniumxml-example-recorded-NewExampl-tp3388337p3416552.html
> Sent from the OFBiz - Dev mailing list archive at Nabble.com.
>



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

Posted by Paul Foxworthy <pa...@cohsoft.com.au>.
Hi Jacques,

Brett has republished it here.

http://www.kenfuse.com/forum/material-regarding-seleniumxml
http://www.kenfuse.com/forum/material-regarding-seleniumxml 

Cheers

Paul Foxworthy


Jacques Le Roux-3 wrote:
> 
> From: &quot;Jacques Le Roux&quot; &lt;jacques.le.roux@les7arts.com&gt;
> &gt; From: &quot;Erwan de FERRIERES&quot;
> &lt;erwan.de-ferrieres@nereide.fr&gt;
> &gt;&gt; Le 26/03/2011 14:40, Jacques Le Roux a écrit :
> &gt;&gt;&gt; Hi Erwan,
> &gt;&gt;&gt;
> &gt;&gt;&gt; I think this question is mostly for you
> &gt;&gt;&gt;
> &gt;&gt;&gt; Jacques Le Roux wrote:
> &gt;&gt;&gt;&gt; From: &quot;Jacques Le Roux&quot;
> &lt;jacques.le.roux@les7arts.com&gt;
> &gt;&gt;&gt;&gt;&gt; Also, apart having a refence to a file, what is the
> real interest to
> &gt;&gt;&gt;&gt;&gt; have this part of OFBiz? Is it a 1st step before
> using
> &gt;&gt;&gt;&gt;&gt; webdriver?
> &gt;&gt;&gt;&gt;
> &gt;&gt;&gt;&gt; This question mostly because I find annoying to have to
> set
> &gt;&gt;&gt;&gt; port.https.enabled=N
> &gt;&gt;&gt;&gt;
> &gt;&gt;&gt;&gt; Jacques
> &gt;&gt;&gt;
> &gt;&gt;&gt;
> &gt;&gt;&gt;
> &gt;&gt; Hi Jacques,
> &gt;&gt;
> &gt;&gt; are you speaking of the SeleniumTestSuitePath entity ?
> &gt;&gt; -- 
> &gt;&gt; Erwan de FERRIERES
> &gt;
> &gt; Hi Erwan,
> &gt;
> &gt; Yes, what's the purpose exactly, what we dont have externally? A
> single place to store and run references? Are you using it like
> &gt; this or rather following http://www.neogia.org/ConfigurationHudson
> (down BTW ;o)
> &gt;
> &gt; Jacques
> 
> Also we have a doc about Selenium Xml at
> http://demo-trunk.ofbiz.apache.org/cmssite/cms/APACHE_OFBIZ_HTML#OFBizSeleniumXml
> It's unrelated to SeleniumTestSuitePath  (too bad the
> http://us.apachecon.com/presentation/materials/118/ApacheCon2008_SeleniumXml.pdf
> is not accessible anymore)
> Apart Brett, is someone using Selenium Xml, any experiences?
> 
> Thanks
> 
> Jacques
> 


--
View this message in context: http://ofbiz.135035.n4.nabble.com/Re-svn-commit-r1082172-ofbiz-trunk-framework-testtools-testdef-seleniumxml-example-recorded-NewExampl-tp3388337p3416552.html
Sent from the OFBiz - Dev mailing list archive at Nabble.com.