Thomas Marek
2008-Oct-14 07:38 UTC
[rspec-users] Cucumber: Migrating RSpec Story Listeners to Cucumber
No advice on that? Should i open a ticket on Lighthouse? I also would try to implement that... Thanks, Thomas> -----Urspr?ngliche Nachricht----- > Von: "Thomas Marek" <thomasmarek_ at web.de> > Gesendet: 09.10.08 15:25:14 > An: rspec-users <rspec-users at rubyforge.org> > Betreff: [rspec-users] Cucumber: Migrating RSpec Story Listeners to Cucumber> Hello, > > i written a rails plugin for driving Selenium from > the RSpec Story Runner: > > http://github.com/tmak/rspec-rails-selenium-story > > > Now, i want to migrate my plugin to cucumber. > > > My question: > I used the scenario_failed method of the Story Listener to make > screenshots of failing story scenarios. > How can i do that with cucumber? > > > Thanks, > Thomas > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >_____________________________________________________________________ Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! http://smartsurfer.web.de/?mc=100071&distributionid=000000000066
aslak hellesoy
2008-Oct-14 08:31 UTC
[rspec-users] Cucumber: Migrating RSpec Story Listeners to Cucumber
On Tue, Oct 14, 2008 at 9:38 AM, Thomas Marek <ThomasMarek_ at web.de> wrote:> No advice on that? > > Should i open a ticket on Lighthouse?Please do.> I also would try to implement that... >Great! Some suggestions: I''d like to be able to do something like this: After do # cucumber_scenario would return the Scenario instance # The cucumber_scenario method could be defined in a similar way to #run_step, # see Executor#define_step_call_methods if cucumber_scenario.successful? take_screenshot(cucumber_scenario.id) # Each scenario should have a unique id that can be used in e.g. file names. end end Aslak> Thanks, > Thomas > >> -----Urspr?ngliche Nachricht----- >> Von: "Thomas Marek" <thomasmarek_ at web.de> >> Gesendet: 09.10.08 15:25:14 >> An: rspec-users <rspec-users at rubyforge.org> >> Betreff: [rspec-users] Cucumber: Migrating RSpec Story Listeners to Cucumber > >> Hello, >> >> i written a rails plugin for driving Selenium from >> the RSpec Story Runner: >> >> http://github.com/tmak/rspec-rails-selenium-story >> >> >> Now, i want to migrate my plugin to cucumber. >> >> >> My question: >> I used the scenario_failed method of the Story Listener to make >> screenshots of failing story scenarios. >> How can i do that with cucumber? >> >> >> Thanks, >> Thomas >> >> _______________________________________________ >> rspec-users mailing list >> rspec-users at rubyforge.org >> http://rubyforge.org/mailman/listinfo/rspec-users >> > > > _____________________________________________________________________ > Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! > http://smartsurfer.web.de/?mc=100071&distributionid=000000000066 > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
Michael Latta
2008-Oct-14 15:29 UTC
[rspec-users] Cucumber: Migrating RSpec Story Listeners to Cucumber
Why use a cucumber_scenario method when the After method could just pass it to the block? Michael On Oct 14, 2008, at 1:31 AM, aslak hellesoy wrote:> On Tue, Oct 14, 2008 at 9:38 AM, Thomas Marek <ThomasMarek_ at web.de> > wrote: >> No advice on that? >> >> Should i open a ticket on Lighthouse? > > Please do. > >> I also would try to implement that... >> > > Great! Some suggestions: > > I''d like to be able to do something like this: > > After do > # cucumber_scenario would return the Scenario instance > # The cucumber_scenario method could be defined in a similar way to > #run_step, > # see Executor#define_step_call_methods > if cucumber_scenario.successful? > take_screenshot(cucumber_scenario.id) # Each scenario should have > a unique id that can be used in e.g. file names. > end > end > > Aslak > >> Thanks, >> Thomas >> >>> -----Urspr?ngliche Nachricht----- >>> Von: "Thomas Marek" <thomasmarek_ at web.de> >>> Gesendet: 09.10.08 15:25:14 >>> An: rspec-users <rspec-users at rubyforge.org> >>> Betreff: [rspec-users] Cucumber: Migrating RSpec Story Listeners >>> to Cucumber >> >>> Hello, >>> >>> i written a rails plugin for driving Selenium from >>> the RSpec Story Runner: >>> >>> http://github.com/tmak/rspec-rails-selenium-story >>> >>> >>> Now, i want to migrate my plugin to cucumber. >>> >>> >>> My question: >>> I used the scenario_failed method of the Story Listener to make >>> screenshots of failing story scenarios. >>> How can i do that with cucumber? >>> >>> >>> Thanks, >>> Thomas >>> >>> _______________________________________________ >>> rspec-users mailing list >>> rspec-users at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/rspec-users >>> >> >> >> _____________________________________________________________________ >> Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! >> http://smartsurfer.web.de/?mc=100071&distributionid=000000000066 >> >> _______________________________________________ >> rspec-users mailing list >> rspec-users at rubyforge.org >> http://rubyforge.org/mailman/listinfo/rspec-users >> > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users
Thomas Marek
2008-Oct-14 15:43 UTC
[rspec-users] Cucumber: Migrating RSpec Story Listeners to Cucumber
I opened a ticket for that: http://rspec.lighthouseapp.com/projects/16211/tickets/44-ability-to-teardown-failing-or-pending-scenarios-in-different-ways Thomas> -----Urspr?ngliche Nachricht----- > Von: "Michael Latta" <lattam at mac.com> > Gesendet: 14.10.08 17:31:58 > An: rspec-users <rspec-users at rubyforge.org> > Betreff: Re: [rspec-users] Cucumber: Migrating RSpec Story Listeners to Cucumber> Why use a cucumber_scenario method when the After method could just > pass it to the block? > > Michael > > > On Oct 14, 2008, at 1:31 AM, aslak hellesoy wrote: > > > On Tue, Oct 14, 2008 at 9:38 AM, Thomas Marek <ThomasMarek_ at web.de> > > wrote: > >> No advice on that? > >> > >> Should i open a ticket on Lighthouse? > > > > Please do. > > > >> I also would try to implement that... > >> > > > > Great! Some suggestions: > > > > I''d like to be able to do something like this: > > > > After do > > # cucumber_scenario would return the Scenario instance > > # The cucumber_scenario method could be defined in a similar way to > > #run_step, > > # see Executor#define_step_call_methods > > if cucumber_scenario.successful? > > take_screenshot(cucumber_scenario.id) # Each scenario should have > > a unique id that can be used in e.g. file names. > > end > > end > > > > Aslak > > > >> Thanks, > >> Thomas > >> > >>> -----Urspr?ngliche Nachricht----- > >>> Von: "Thomas Marek" <thomasmarek_ at web.de> > >>> Gesendet: 09.10.08 15:25:14 > >>> An: rspec-users <rspec-users at rubyforge.org> > >>> Betreff: [rspec-users] Cucumber: Migrating RSpec Story Listeners > >>> to Cucumber > >> > >>> Hello, > >>> > >>> i written a rails plugin for driving Selenium from > >>> the RSpec Story Runner: > >>> > >>> http://github.com/tmak/rspec-rails-selenium-story > >>> > >>> > >>> Now, i want to migrate my plugin to cucumber. > >>> > >>> > >>> My question: > >>> I used the scenario_failed method of the Story Listener to make > >>> screenshots of failing story scenarios. > >>> How can i do that with cucumber? > >>> > >>> > >>> Thanks, > >>> Thomas > >>> > >>> _______________________________________________ > >>> rspec-users mailing list > >>> rspec-users at rubyforge.org > >>> http://rubyforge.org/mailman/listinfo/rspec-users > >>> > >> > >> > >> _____________________________________________________________________ > >> Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! > >> http://smartsurfer.web.de/?mc=100071&distributionid=000000000066 > >> > >> _______________________________________________ > >> rspec-users mailing list > >> rspec-users at rubyforge.org > >> http://rubyforge.org/mailman/listinfo/rspec-users > >> > > _______________________________________________ > > rspec-users mailing list > > rspec-users at rubyforge.org > > http://rubyforge.org/mailman/listinfo/rspec-users > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >________________________________________________________________________ Schon geh?rt? Bei WEB.DE gibt'' s viele kostenlose Spiele: http://games.entertainment.web.de/de/entertainment/games/free/index.html
aslak hellesoy
2008-Oct-14 15:49 UTC
[rspec-users] Cucumber: Migrating RSpec Story Listeners to Cucumber
On Tue, Oct 14, 2008 at 5:29 PM, Michael Latta <lattam at mac.com> wrote:> Why use a cucumber_scenario method when the After method could just pass it > to the block? >Good idea!> Michael > > > On Oct 14, 2008, at 1:31 AM, aslak hellesoy wrote: > >> On Tue, Oct 14, 2008 at 9:38 AM, Thomas Marek <ThomasMarek_ at web.de> wrote: >>> >>> No advice on that? >>> >>> Should i open a ticket on Lighthouse? >> >> Please do. >> >>> I also would try to implement that... >>> >> >> Great! Some suggestions: >> >> I''d like to be able to do something like this: >> >> After do >> # cucumber_scenario would return the Scenario instance >> # The cucumber_scenario method could be defined in a similar way to >> #run_step, >> # see Executor#define_step_call_methods >> if cucumber_scenario.successful? >> take_screenshot(cucumber_scenario.id) # Each scenario should have >> a unique id that can be used in e.g. file names. >> end >> end >> >> Aslak >> >>> Thanks, >>> Thomas >>> >>>> -----Urspr?ngliche Nachricht----- >>>> Von: "Thomas Marek" <thomasmarek_ at web.de> >>>> Gesendet: 09.10.08 15:25:14 >>>> An: rspec-users <rspec-users at rubyforge.org> >>>> Betreff: [rspec-users] Cucumber: Migrating RSpec Story Listeners to >>>> Cucumber >>> >>>> Hello, >>>> >>>> i written a rails plugin for driving Selenium from >>>> the RSpec Story Runner: >>>> >>>> http://github.com/tmak/rspec-rails-selenium-story >>>> >>>> >>>> Now, i want to migrate my plugin to cucumber. >>>> >>>> >>>> My question: >>>> I used the scenario_failed method of the Story Listener to make >>>> screenshots of failing story scenarios. >>>> How can i do that with cucumber? >>>> >>>> >>>> Thanks, >>>> Thomas >>>> >>>> _______________________________________________ >>>> rspec-users mailing list >>>> rspec-users at rubyforge.org >>>> http://rubyforge.org/mailman/listinfo/rspec-users >>>> >>> >>> >>> _____________________________________________________________________ >>> Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! >>> http://smartsurfer.web.de/?mc=100071&distributionid=000000000066 >>> >>> _______________________________________________ >>> rspec-users mailing list >>> rspec-users at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/rspec-users >>> >> _______________________________________________ >> rspec-users mailing list >> rspec-users at rubyforge.org >> http://rubyforge.org/mailman/listinfo/rspec-users > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
David Chelimsky
2008-Oct-14 19:39 UTC
[rspec-users] Cucumber: Migrating RSpec Story Listeners to Cucumber
On Tue, Oct 14, 2008 at 1:49 PM, aslak hellesoy <aslak.hellesoy at gmail.com> wrote:> On Tue, Oct 14, 2008 at 5:29 PM, Michael Latta <lattam at mac.com> wrote: >> Why use a cucumber_scenario method when the After method could just pass it >> to the block? > > Good idea!Can the Before do the same? Then you could grab the name or whatever before printing anything out.> >> Michael >> >> >> On Oct 14, 2008, at 1:31 AM, aslak hellesoy wrote: >> >>> On Tue, Oct 14, 2008 at 9:38 AM, Thomas Marek <ThomasMarek_ at web.de> wrote: >>>> >>>> No advice on that? >>>> >>>> Should i open a ticket on Lighthouse? >>> >>> Please do. >>> >>>> I also would try to implement that... >>>> >>> >>> Great! Some suggestions: >>> >>> I''d like to be able to do something like this: >>> >>> After do >>> # cucumber_scenario would return the Scenario instance >>> # The cucumber_scenario method could be defined in a similar way to >>> #run_step, >>> # see Executor#define_step_call_methods >>> if cucumber_scenario.successful? >>> take_screenshot(cucumber_scenario.id) # Each scenario should have >>> a unique id that can be used in e.g. file names. >>> end >>> end >>> >>> Aslak >>> >>>> Thanks, >>>> Thomas >>>> >>>>> -----Urspr?ngliche Nachricht----- >>>>> Von: "Thomas Marek" <thomasmarek_ at web.de> >>>>> Gesendet: 09.10.08 15:25:14 >>>>> An: rspec-users <rspec-users at rubyforge.org> >>>>> Betreff: [rspec-users] Cucumber: Migrating RSpec Story Listeners to >>>>> Cucumber >>>> >>>>> Hello, >>>>> >>>>> i written a rails plugin for driving Selenium from >>>>> the RSpec Story Runner: >>>>> >>>>> http://github.com/tmak/rspec-rails-selenium-story >>>>> >>>>> >>>>> Now, i want to migrate my plugin to cucumber. >>>>> >>>>> >>>>> My question: >>>>> I used the scenario_failed method of the Story Listener to make >>>>> screenshots of failing story scenarios. >>>>> How can i do that with cucumber? >>>>> >>>>> >>>>> Thanks, >>>>> Thomas >>>>> >>>>> _______________________________________________ >>>>> rspec-users mailing list >>>>> rspec-users at rubyforge.org >>>>> http://rubyforge.org/mailman/listinfo/rspec-users >>>>> >>>> >>>> >>>> _____________________________________________________________________ >>>> Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! >>>> http://smartsurfer.web.de/?mc=100071&distributionid=000000000066 >>>> >>>> _______________________________________________ >>>> rspec-users mailing list >>>> rspec-users at rubyforge.org >>>> http://rubyforge.org/mailman/listinfo/rspec-users >>>> >>> _______________________________________________ >>> rspec-users mailing list >>> rspec-users at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/rspec-users >> >> _______________________________________________ >> rspec-users mailing list >> rspec-users at rubyforge.org >> http://rubyforge.org/mailman/listinfo/rspec-users >> > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
Zach Dennis
2008-Oct-14 19:52 UTC
[rspec-users] Cucumber: Migrating RSpec Story Listeners to Cucumber
On Tue, Oct 14, 2008 at 3:39 PM, David Chelimsky <dchelimsky at gmail.com> wrote:> On Tue, Oct 14, 2008 at 1:49 PM, aslak hellesoy > <aslak.hellesoy at gmail.com> wrote: >> On Tue, Oct 14, 2008 at 5:29 PM, Michael Latta <lattam at mac.com> wrote: >>> Why use a cucumber_scenario method when the After method could just pass it >>> to the block? >> >> Good idea! > > Can the Before do the same? Then you could grab the name or whatever > before printing anything out. >Based on Aslak''s example and the content in the ticket and this thread I think that is the intent. Although, mentioned in passing it as an example in the After, Aslak''s code exactly on the ticket showed only passing the scenario through to the Before as a block argument. The ticket has been updated, perhaps we should defer future communication on this thread to the ticket? -- Zach Dennis http://www.continuousthinking.com http://www.mutuallyhuman.com
aslak hellesoy
2008-Oct-14 21:04 UTC
[rspec-users] Cucumber: Migrating RSpec Story Listeners to Cucumber
On Tue, Oct 14, 2008 at 9:52 PM, Zach Dennis <zach.dennis at gmail.com> wrote:> On Tue, Oct 14, 2008 at 3:39 PM, David Chelimsky <dchelimsky at gmail.com> wrote: >> On Tue, Oct 14, 2008 at 1:49 PM, aslak hellesoy >> <aslak.hellesoy at gmail.com> wrote: >>> On Tue, Oct 14, 2008 at 5:29 PM, Michael Latta <lattam at mac.com> wrote: >>>> Why use a cucumber_scenario method when the After method could just pass it >>>> to the block? >>> >>> Good idea! >> >> Can the Before do the same? Then you could grab the name or whatever >> before printing anything out. >> > > Based on Aslak''s example and the content in the ticket and this thread > I think that is the intent. Although, mentioned in passing it as an > example in the After, Aslak''s code exactly on the ticket showed only > passing the scenario through to the Before as a block argument. > > The ticket has been updated, perhaps we should defer future > communication on this thread to the ticket? >Yes, let''s> -- > Zach Dennis > http://www.continuousthinking.com > http://www.mutuallyhuman.com > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >