Administrator
|
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: <[hidden email]> > 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> > > |
Administrator
|
From: "Jacques Le Roux" <[hidden email]>
>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: <[hidden email]> >> 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> >> >> > |
Hi Jacques,
Le 18/03/2011 21:21, Jacques Le Roux a écrit : > From: "Jacques Le Roux" <[hidden email]> >> >> 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 >> this is corrected now. -- Erwan de FERRIERES www.nereide.biz |
Administrator
|
In reply to this post by Jacques Le Roux
Hi Erwan,
I think this question is mostly for you Jacques Le Roux wrote: > From: "Jacques Le Roux" <[hidden email]> >> 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 |
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" <[hidden email]> >>> 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 > > > are you speaking of the SeleniumTestSuitePath entity ? -- Erwan de FERRIERES www.nereide.biz |
Administrator
|
From: "Erwan de FERRIERES" <[hidden email]>
> 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" <[hidden email]> >>>> 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 |
From: "Jacques Le Roux" <[hidden email]>
> From: "Erwan de FERRIERES" <[hidden email]> >> 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" <[hidden email]> >>>>> 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 |
Hi Jacques,
Brett has republished it here. http://www.kenfuse.com/forum/material-regarding-seleniumxml Cheers Paul Foxworthy
--
Coherent Software Australia Pty Ltd http://www.coherentsoftware.com.au/ Bonsai ERP, the all-inclusive ERP system http://www.bonsaierp.com.au/ |
Administrator
|
Thanks Paul,
Updated at r1086844 Jacques From: "Paul Foxworthy" <[hidden email]> > 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" <[hidden email]> >> > From: "Erwan de FERRIERES" >> <[hidden email]> >> >> 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" >> <[hidden email]> >> >>>>> 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. > |
In reply to this post by Jacques Le Roux-3
>> >> 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) Hi, From what I saw, it's only here to reference the testsuites. I'm currently implementing the same process but for HTML testsuites, so there will be no need to use the xml transformation. I think it will come next week. Selenium are running with neogia (and OFBiz) on our IC server, and it's only with shell scripts. If the webdriver implementation is done with the summer of code, the tests will be directly written in java, and I hope to have an ant target, like run-functional-tests which will have more or less the same behaviour as the run-tests one. >> >> 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 > > > -- Erwan de FERRIERES www.nereide.biz |
Free forum by Nabble | Edit this page |