From yannlesag at gmail.com Fri Sep 23 10:16:44 2016 From: yannlesag at gmail.com (lesage yann) Date: Fri Sep 23 10:16:47 2016 Subject: [Seaside] seaside front-end testing tool pharo4.0 Message-ID: Hello, I work for Synectique. We are trying to test telescope and all front end of our website. We have started to write tests in js on client-side with mocha on DOM(number of element, element visibility or css change...) We want to automate our tests with Jenkins and optionally launch this test from the Pharo image. We have planed to make this with mocha, xml reporter and take syntaxe from TestCase class. To avoid to reinvent the wheel, we have searched for existants solutions and found : - SeasideTesting -> don't load in Pharo 4.0 - Albatros : we have found the repo but the last version dates from 2010 and is based on squeak. So is there someone who test front-end in pharo4.0 with seaside and how ? Is There an existants and functional project ? Thanks for your answers Yann Lesage -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20160923/f8572c04/attachment.htm From johan at inceptive.be Fri Sep 23 11:37:50 2016 From: johan at inceptive.be (Johan Brichau) Date: Fri Sep 23 11:37:54 2016 Subject: [Seaside] seaside front-end testing tool pharo4.0 In-Reply-To: References: Message-ID: <22905836-B70A-4E4B-8667-7692D02112D2@inceptive.be> Hi Yann, Use webdriver (selenium) testing with Parasol: http://www.slideshare.net/esug/4-beach-parasol-presentation See: http://ss3.gemstone.com/ss/Parasol.html SeasideTesting is dead (I stopped maintaining it since we use Parasol). cheers Johan > On 23 Sep 2016, at 12:16, lesage yann wrote: > > Hello, > > I work for Synectique. We are trying to test telescope and all front end of our website. We have started to write tests in js on client-side with mocha on DOM(number of element, element visibility or css change...) > > We want to automate our tests with Jenkins and optionally launch this test from the Pharo image. We have planed to make this with mocha, xml reporter and take syntaxe from TestCase class. > > To avoid to reinvent the wheel, we have searched for existants solutions and found : > - SeasideTesting -> don't load in Pharo 4.0 > - Albatros : we have found the repo but the last version dates from 2010 and is based on squeak. > > So is there someone who test front-end in pharo4.0 with seaside and how ? > Is There an existants and functional project ? > > Thanks for your answers > Yann Lesage > > _______________________________________________ > seaside mailing list > seaside@lists.squeakfoundation.org > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20160923/c2969eca/attachment.htm From yannlesag at gmail.com Fri Sep 23 12:07:47 2016 From: yannlesag at gmail.com (lesage yann) Date: Fri Sep 23 12:07:49 2016 Subject: [Seaside] seaside front-end testing tool pharo4.0 In-Reply-To: <22905836-B70A-4E4B-8667-7692D02112D2@inceptive.be> References: <22905836-B70A-4E4B-8667-7692D02112D2@inceptive.be> Message-ID: Hi Johan, Thank for you reply, I have read yours links. It's interesting but to test cytoscape we need an access to javascript variable. I think used js.executeScript is not really good solution for that ( http://stackoverflow.com/questions/13994393/reading-javascript-variables-using-selenium-webdriver ). So we'll write our project with Pharo/ Mocka/ Seaside. Have a nice day. Yann Lesage 2016-09-23 13:37 GMT+02:00 Johan Brichau : > Hi Yann, > > Use webdriver (selenium) testing with Parasol: http://www. > slideshare.net/esug/4-beach-parasol-presentation > See: http://ss3.gemstone.com/ss/Parasol.html > > SeasideTesting is dead (I stopped maintaining it since we use Parasol). > > cheers > Johan > > On 23 Sep 2016, at 12:16, lesage yann wrote: > > Hello, > > I work for Synectique. We are trying to test telescope and all front end > of our website. We have started to write tests in js on client-side with > mocha on DOM(number of element, element visibility or css change...) > > We want to automate our tests with Jenkins and optionally launch this test > from the Pharo image. We have planed to make this with mocha, xml reporter > and take syntaxe from TestCase class. > > To avoid to reinvent the wheel, we have searched for existants solutions > and found : > - SeasideTesting -> don't load in Pharo 4.0 > - Albatros : we have found the repo but the last version dates from 2010 > and is based on squeak. > > So is there someone who test front-end in pharo4.0 with seaside and how ? > Is There an existants and functional project ? > > Thanks for your answers > Yann Lesage > > _______________________________________________ > seaside mailing list > seaside@lists.squeakfoundation.org > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > > > > _______________________________________________ > seaside mailing list > seaside@lists.squeakfoundation.org > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20160923/e5f2ca8c/attachment.htm From bobn at rogers.com Fri Sep 23 12:20:07 2016 From: bobn at rogers.com (bobn@rogers.com) Date: Fri Sep 23 12:20:21 2016 Subject: [Seaside] seaside front-end testing tool pharo4.0 In-Reply-To: References: Message-ID: <648669793.4269059.1474633207659@mail.yahoo.com> We're trying to use iMacros for testing. Selecting widgets and navigating is working well, since they can use relative position (handy when the component id is different each time).? Problem is that when entering content into a text field the 'oninput' javascript event is not being triggered. We depend on that. I have an open ticket with the vendor. They've sent some suggestions, but no luck so far. Surprising, you'd think that would be a basic event trigger.? If the oninput worked iMacros looks like it would be a useful tool for testing a Seaside app. Bob NemecHTS On Friday, September 23, 2016 6:16 AM, lesage yann wrote: Hello, I work for Synectique. We are trying to test telescope and all front end of our website. We have started to write tests in js on client-side with mocha on DOM(number of element, element visibility or css change...) We want to automate our tests with Jenkins and optionally launch this test from? the Pharo image. We have planed to make this with mocha, xml reporter and take syntaxe from TestCase class. To avoid to reinvent the wheel, we have searched for existants solutions and found : - SeasideTesting -> don't load in Pharo 4.0 - Albatros : we have found the repo but the last version dates from 2010 and is based on squeak. So is there someone who test front-end in pharo4.0 with seaside and how ? Is There an existants and functional project ? Thanks for? your answers Yann Lesage _______________________________________________ seaside mailing list seaside@lists.squeakfoundation.org http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20160923/59b67c00/attachment-0001.htm From johan at inceptive.be Fri Sep 23 12:32:11 2016 From: johan at inceptive.be (Johan Brichau) Date: Fri Sep 23 12:32:16 2016 Subject: [Seaside] seaside front-end testing tool pharo4.0 In-Reply-To: References: <22905836-B70A-4E4B-8667-7692D02112D2@inceptive.be> Message-ID: <3E8BC877-8B3F-4EF2-A43A-939BB2B02B3B@inceptive.be> Yann, I think Mocha and Selenium (Parasol) are two different kind of testing frameworks. Selenium is about browser automation and Parasol allows to write browser application tests with it from within your Smalltalk backend?s unit testing framework. The abstraction level is actions a user can do via the UI. Mocha is a unit testing framework for javascript applications. The abstraction level is the javascript API of your implementation modules. I?m not sure I understand what you are looking for because SeasideTesting and Albatros were even less about browser-based testing. SeasideTesting was just testing the html output of Seaside, for example. If Seaside is part of your solution stack and you want to write tests that simulate user actions on the webpage, Parasol is the way to do it from your Smalltalk backend. cheers Johan > On 23 Sep 2016, at 14:07, lesage yann wrote: > > Hi Johan, > > Thank for you reply, > > I have read yours links. It's interesting but to test cytoscape we need an access to javascript variable. I think used js.executeScript is not really good solution for that (http://stackoverflow.com/questions/13994393/reading-javascript-variables-using-selenium-webdriver ). > > So we'll write our project with Pharo/ Mocka/ Seaside. > > Have a nice day. > > Yann Lesage > > 2016-09-23 13:37 GMT+02:00 Johan Brichau >: > Hi Yann, > > Use webdriver (selenium) testing with Parasol: http://www.slideshare.net/esug/4-beach-parasol-presentation > See: http://ss3.gemstone.com/ss/Parasol.html > > SeasideTesting is dead (I stopped maintaining it since we use Parasol). > > cheers > Johan > >> On 23 Sep 2016, at 12:16, lesage yann > wrote: >> >> Hello, >> >> I work for Synectique. We are trying to test telescope and all front end of our website. We have started to write tests in js on client-side with mocha on DOM(number of element, element visibility or css change...) >> >> We want to automate our tests with Jenkins and optionally launch this test from the Pharo image. We have planed to make this with mocha, xml reporter and take syntaxe from TestCase class. >> >> To avoid to reinvent the wheel, we have searched for existants solutions and found : >> - SeasideTesting -> don't load in Pharo 4.0 >> - Albatros : we have found the repo but the last version dates from 2010 and is based on squeak. >> >> So is there someone who test front-end in pharo4.0 with seaside and how ? >> Is There an existants and functional project ? >> >> Thanks for your answers >> Yann Lesage >> >> _______________________________________________ >> seaside mailing list >> seaside@lists.squeakfoundation.org >> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > > > _______________________________________________ > seaside mailing list > seaside@lists.squeakfoundation.org > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > > > _______________________________________________ > seaside mailing list > seaside@lists.squeakfoundation.org > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20160923/47dcd8a2/attachment.htm From cyril.ferlicot at gmail.com Fri Sep 23 13:31:53 2016 From: cyril.ferlicot at gmail.com (Cyril Ferlicot D.) Date: Fri Sep 23 13:32:03 2016 Subject: [Seaside] [ANN] Material Design For Seaside V1.0.0 Message-ID: <65c6868e-ff71-2ff2-09b4-f96d64297459@gmail.com> Skipped content of type multipart/mixed-------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature Url : http://lists.squeakfoundation.org/pipermail/seaside/attachments/20160923/42ea4ab5/signature.pgp From marianopeck at gmail.com Fri Sep 23 13:38:46 2016 From: marianopeck at gmail.com (Mariano Martinez Peck) Date: Fri Sep 23 13:38:50 2016 Subject: [Seaside] [ANN] Material Design For Seaside V1.0.0 In-Reply-To: <65c6868e-ff71-2ff2-09b4-f96d64297459@gmail.com> References: <65c6868e-ff71-2ff2-09b4-f96d64297459@gmail.com> Message-ID: This is very cool! Thank you Cyril (and probably Synectique too!). It's very cool to have Bootstrap available and now Material Design Lite. Cheers, On Fri, Sep 23, 2016 at 10:31 AM, Cyril Ferlicot D. < cyril.ferlicot@gmail.com> wrote: > Hi everyone! > > I am happy to announce the version 1 of Material Design Lite for seaside. > > This version contains all components from V1.2.1 of Google's Material > Design Lite (https://github.com/google/material-design-lite, > http://getmdl.io) > > This version also contains some widget build in top of MDL as: > > Pagination widget > Sorted Paginated Table > Select Widget > Poll Widget > Calendar Widget > Nested List with dynamic loading and search function > > Thanks to K?vin Lanvin, Olivier Auverlot, Thomas Heniart, Merwan Ouddane > and Guillaume Larcheveque who helped to release this version. > > Thanks to Sabine Mana for the feedback she gave. > > You can find the project on: > > https://github.com/DuneSt/MaterialDesignLite > > There is some documentation of the README. > > If you find a bug you can open an issue on the repository. > If you have some question I will be happy to answer. > > -- > Cyril Ferlicot > > http://www.synectique.eu > > 2 rue Jacques Pr?vert 01, > 59650 Villeneuve d'ascq France > > > _______________________________________________ > seaside mailing list > seaside@lists.squeakfoundation.org > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > > -- Mariano http://marianopeck.wordpress.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20160923/33e391b8/attachment.htm From yannlesag at gmail.com Fri Sep 23 13:48:52 2016 From: yannlesag at gmail.com (lesage yann) Date: Fri Sep 23 13:48:55 2016 Subject: [Seaside] seaside front-end testing tool pharo4.0 In-Reply-To: <3E8BC877-8B3F-4EF2-A43A-939BB2B02B3B@inceptive.be> References: <22905836-B70A-4E4B-8667-7692D02112D2@inceptive.be> <3E8BC877-8B3F-4EF2-A43A-939BB2B02B3B@inceptive.be> Message-ID: Hi Bob, thank for your anwer. Johan, In some case, we just to test user interaction but we want to test our js script more deeply (time excution, if error come of model (server side) or of script ...). I have understund : - selenium + parasol is a good to user interaction test - mocha stay the solution to test our script JS and theirs dom modifications. So I think i have answers for my questions. realy thank for you two :D Yann Lesage 2016-09-23 14:32 GMT+02:00 Johan Brichau : > Yann, > > I think Mocha and Selenium (Parasol) are two different kind of testing > frameworks. > > Selenium is about browser automation and Parasol allows to write browser > application tests with it from within your Smalltalk backend?s unit testing > framework. The abstraction level is actions a user can do via the UI. > Mocha is a unit testing framework for javascript applications. The > abstraction level is the javascript API of your implementation modules. > > I?m not sure I understand what you are looking for because SeasideTesting > and Albatros were even less about browser-based testing. SeasideTesting was > just testing the html output of Seaside, for example. > If Seaside is part of your solution stack and you want to write tests that > simulate user actions on the webpage, Parasol is the way to do it from your > Smalltalk backend. > > cheers > Johan > > On 23 Sep 2016, at 14:07, lesage yann wrote: > > Hi Johan, > > Thank for you reply, > > I have read yours links. It's interesting but to test cytoscape we need an > access to javascript variable. I think used js.executeScript is not really > good solution for that (http://stackoverflow.com/ > questions/13994393/reading-javascript-variables-using-selenium-webdriver). > > So we'll write our project with Pharo/ Mocka/ Seaside. > > Have a nice day. > > Yann Lesage > > 2016-09-23 13:37 GMT+02:00 Johan Brichau : > >> Hi Yann, >> >> Use webdriver (selenium) testing with Parasol: http://www.slideshare >> .net/esug/4-beach-parasol-presentation >> See: http://ss3.gemstone.com/ss/Parasol.html >> >> SeasideTesting is dead (I stopped maintaining it since we use Parasol). >> >> cheers >> Johan >> >> On 23 Sep 2016, at 12:16, lesage yann wrote: >> >> Hello, >> >> I work for Synectique. We are trying to test telescope and all front end >> of our website. We have started to write tests in js on client-side with >> mocha on DOM(number of element, element visibility or css change...) >> >> We want to automate our tests with Jenkins and optionally launch this >> test from the Pharo image. We have planed to make this with mocha, xml >> reporter and take syntaxe from TestCase class. >> >> To avoid to reinvent the wheel, we have searched for existants solutions >> and found : >> - SeasideTesting -> don't load in Pharo 4.0 >> - Albatros : we have found the repo but the last version dates from 2010 >> and is based on squeak. >> >> So is there someone who test front-end in pharo4.0 with seaside and how ? >> Is There an existants and functional project ? >> >> Thanks for your answers >> Yann Lesage >> >> _______________________________________________ >> seaside mailing list >> seaside@lists.squeakfoundation.org >> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside >> >> >> >> _______________________________________________ >> seaside mailing list >> seaside@lists.squeakfoundation.org >> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside >> >> > _______________________________________________ > seaside mailing list > seaside@lists.squeakfoundation.org > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > > > > _______________________________________________ > seaside mailing list > seaside@lists.squeakfoundation.org > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20160923/b1433038/attachment-0001.htm From cyril.ferlicot at gmail.com Fri Sep 23 14:21:04 2016 From: cyril.ferlicot at gmail.com (Cyril Ferlicot D.) Date: Fri Sep 23 14:21:14 2016 Subject: [Seaside] Re: [Pharo-dev] [ANN] Material Design For Seaside V1.0.0 In-Reply-To: References: <65c6868e-ff71-2ff2-09b4-f96d64297459@gmail.com> Message-ID: <8a77295e-f357-b5bf-1375-ebabd3db6754@gmail.com> Skipped content of type multipart/mixed-------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature Url : http://lists.squeakfoundation.org/pipermail/seaside/attachments/20160923/05dd93be/signature.pgp From marianopeck at gmail.com Fri Sep 23 15:21:34 2016 From: marianopeck at gmail.com (Mariano Martinez Peck) Date: Fri Sep 23 15:21:37 2016 Subject: [Seaside] Execute jQuery script upon #onAjaxComplete? Message-ID: Hi guys, I am trying to make some alerts/notifications to be displayed to users. For some internal reasons, these notifications are at server side. I have main component that on the #renderContentOn: does the render of the needed notifications. This works fine for normal requests as any "interaction" from the user with the app, will make a normal request causing a re-render of everything, included the notification component. The problem, as usual, is all ajax requests (and my app is now almost everything with ajax). I need to hook on ajax calls so that I could also re-render the notifications components as there could have been new notifications since the last rendering. I tried the following: html document addLoadScript: (html jQuery document onAjaxComplete: ( (html jQuery id: self systemMessageNotifier mainDivId) replaceWith: [:r | self systemMessageNotifier renderContentOn: r. ] )). But obviously that doesn't work because the onAjaxComplete: scripts ends being a hardcoded to the html of the current systemMessageNotifier component. In other words, the #renderContentOn: of the systemMessageNotifier is called only once...and not on every ajax complete. And I understand why. What I don't know how to do is what I want hahhaa. I would try to avoid WebSockets for the moment. I thought maybe doing some jQuery polling ? Thoughts? Thanks in advance, -- Mariano http://marianopeck.wordpress.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20160923/4caa4cf7/attachment.htm From emaringolo at gmail.com Fri Sep 23 18:23:24 2016 From: emaringolo at gmail.com (Esteban A. Maringolo) Date: Fri Sep 23 18:24:08 2016 Subject: [Seaside] Execute jQuery script upon #onAjaxComplete? In-Reply-To: References: Message-ID: 2016-09-23 12:21 GMT-03:00 Mariano Martinez Peck : > The problem, as usual, is all ajax requests (and my app is now almost everything with ajax). > I need to hook on ajax calls so that I could also re-render the notifications components as > there could have been new notifications since the last rendering. > html > document > addLoadScript: (html jQuery document > onAjaxComplete: ( > (html jQuery id: self systemMessageNotifier mainDivId) replaceWith: [:r | > self systemMessageNotifier renderContentOn: r. > ] > )). > What I don't know how to do is what I want hahhaa. >I would try to avoid WebSockets for the moment. I > thought maybe doing some jQuery polling ? I don't understand what you want to implement. If you want to notify something, then such notification should come as a response of the xhr and implement the ajaxComplete function handler to parse the response searching for the notification you want to display. The alternative is to include a