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: "Jacques Le Roux" <jacques.le.roux@les7arts.com>
>> > From: "Erwan de FERRIERES"
>> <erwan.de-ferrieres@nereide.fr>
>> >> Le 26/03/2011 14:40, Jacques Le Roux a écrit :
>> >>> Hi Erwan,
>> >>>
>> >>> I think this question is mostly for you
>> >>>
>> >>> Jacques Le Roux wrote:
>> >>>> From: "Jacques Le Roux"
>> <jacques.le.roux@les7arts.com>
>> >>>>> 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
>> >>>
>> >>>
>> >>>
>> >> Hi Jacques,
>> >>
>> >> are you speaking of the SeleniumTestSuitePath entity ?
>> >> --
>> >> Erwan de FERRIERES
>> >
>> > Hi Erwan,
>> >
>> > Yes, what's the purpose exactly, what we dont have externally? A
>> single place to store and run references? Are you using it like
>> > this or rather following http://www.neogia.org/ConfigurationHudson
>> (down BTW ;o)
>> >
>> > 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: "Jacques Le Roux" <jacques.le.roux@les7arts.com>
> > From: "Erwan de FERRIERES"
> <erwan.de-ferrieres@nereide.fr>
> >> Le 26/03/2011 14:40, Jacques Le Roux a écrit :
> >>> Hi Erwan,
> >>>
> >>> I think this question is mostly for you
> >>>
> >>> Jacques Le Roux wrote:
> >>>> From: "Jacques Le Roux"
> <jacques.le.roux@les7arts.com>
> >>>>> 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
> >>>
> >>>
> >>>
> >> Hi Jacques,
> >>
> >> are you speaking of the SeleniumTestSuitePath entity ?
> >> --
> >> Erwan de FERRIERES
> >
> > Hi Erwan,
> >
> > Yes, what's the purpose exactly, what we dont have externally? A
> single place to store and run references? Are you using it like
> > this or rather following http://www.neogia.org/ConfigurationHudson
> (down BTW ;o)
> >
> > 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.