On Tue, Oct 14, 2008 at 1:49 PM, aslak hellesoy
<[EMAIL PROTECTED]> wrote:
> On Tue, Oct 14, 2008 at 5:29 PM, Michael Latta <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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" <[EMAIL PROTECTED]>
>>>>> Gesendet: 09.10.08 15:25:14
>>>>> An: rspec-users <rspec-users@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@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@rubyforge.org
>>>> http://rubyforge.org/mailman/listinfo/rspec-users
>>>>
>>> _______________________________________________
>>> rspec-users mailing list
>>> rspec-users@rubyforge.org
>>> http://rubyforge.org/mailman/listinfo/rspec-users
>>
>> _______________________________________________
>> rspec-users mailing list
>> rspec-users@rubyforge.org
>> http://rubyforge.org/mailman/listinfo/rspec-users
>>
> _______________________________________________
> rspec-users mailing list
> rspec-users@rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to