<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0"><channel><title>NBehave</title><link>http://nbehave.codeplex.com/project/feeds/rss</link><description>NBehave is a lightweight behavior-driven design framework for describing application behavior in terms of stories and scenarios.  NBehave features a fluent interface and can be used with any testing framework, including NUnit, MbUnit, and MSTest.  It is heavily influenced by Joe </description><item><title>New Post: Visual Studio Express</title><link>http://nbehave.codeplex.com/discussions/443924</link><description>&lt;div style="line-height: normal;"&gt;Speaking of the VS plugin. I am finding it unstable when I am using VS2012. It is causing VS to restart especially when I am creating or editing a method. My work around at the moment is to disable the extension and enable it again when I want to debug or run my scenario&lt;br /&gt;
&lt;/div&gt;</description><author>1dson</author><pubDate>Fri, 17 May 2013 09:10:04 GMT</pubDate><guid isPermaLink="false">New Post: Visual Studio Express 20130517091004A</guid></item><item><title>New Post: Visual Studio Express</title><link>http://nbehave.codeplex.com/discussions/443924</link><description>&lt;div style="line-height: normal;"&gt;No visual studio plugins work in Express. Its a restriction added by Microsoft, it sucks.&lt;br /&gt;
But thats all, you may implement steps of course, and you could use the console runner to run/debug stuff.&lt;br /&gt;
&lt;/div&gt;</description><author>Lazydev</author><pubDate>Thu, 16 May 2013 15:42:26 GMT</pubDate><guid isPermaLink="false">New Post: Visual Studio Express 20130516034226P</guid></item><item><title>New Post: Visual Studio Express</title><link>http://nbehave.codeplex.com/discussions/443924</link><description>&lt;div style="line-height: normal;"&gt;Is it possible to use Nbehave Framework with VS express. I've noticed that the VS plugin is not compatible with express. Would a work around be to use Nunit as a runner&lt;br /&gt;
&lt;/div&gt;</description><author>1dson</author><pubDate>Thu, 16 May 2013 15:01:36 GMT</pubDate><guid isPermaLink="false">New Post: Visual Studio Express 20130516030136P</guid></item><item><title>New Post: Listing all scenarios belonging to a feature</title><link>http://nbehave.codeplex.com/discussions/443722</link><description>&lt;div style="line-height: normal;"&gt;I'm curious, why would you need that information?&lt;br /&gt;
There is no method or property that expose that to you.&lt;br /&gt;
You could build that list yourself though, put a list in the FeatureContext which you populate in a [BeforeScenario] where you can grab the ScenarioTitle from ScenarioContext.&lt;br /&gt;
&lt;/div&gt;</description><author>Lazydev</author><pubDate>Wed, 15 May 2013 12:40:59 GMT</pubDate><guid isPermaLink="false">New Post: Listing all scenarios belonging to a feature 20130515124059P</guid></item><item><title>New Post: Listing all scenarios belonging to a feature</title><link>http://nbehave.codeplex.com/discussions/443722</link><description>&lt;div style="line-height: normal;"&gt;I know if you use   var xx = ScenarioContext.Current.ScenarioTitle;, you'll get the current scenario that is/has been executed but is it possible just to list all of the scenarios belong to a feature?&lt;br /&gt;
&lt;/div&gt;</description><author>1dson</author><pubDate>Wed, 15 May 2013 12:10:10 GMT</pubDate><guid isPermaLink="false">New Post: Listing all scenarios belonging to a feature 20130515121010P</guid></item><item><title>New Post: Can't get hooks to work</title><link>http://nbehave.codeplex.com/discussions/439301</link><description>&lt;div style="line-height: normal;"&gt;It seems your alias is somewhat of a misnomer then :)&lt;br /&gt;
&lt;br /&gt;
Thank you!&lt;br /&gt;
&lt;br /&gt;
Cheers,&lt;br /&gt;
James&lt;br /&gt;
&lt;/div&gt;</description><author>jamescrosswell</author><pubDate>Mon, 08 Apr 2013 20:56:44 GMT</pubDate><guid isPermaLink="false">New Post: Can't get hooks to work 20130408085644P</guid></item><item><title>New Post: Can't get hooks to work</title><link>http://nbehave.codeplex.com/discussions/439301</link><description>&lt;div style="line-height: normal;"&gt;The obsolete attributes are already gone in my 0.7 branch, but on the bright side I just spent an hour implementing Before-/After-Scenario/Step hooks for the fluent interface. It should only require to add a single using statement when upgrading.&lt;br /&gt;
&lt;/div&gt;</description><author>Lazydev</author><pubDate>Mon, 08 Apr 2013 20:21:14 GMT</pubDate><guid isPermaLink="false">New Post: Can't get hooks to work 20130408082114P</guid></item><item><title>New Post: Can't get hooks to work</title><link>http://nbehave.codeplex.com/discussions/439301</link><description>&lt;div style="line-height: normal;"&gt;Thanks for the reply... I think MainSetup and MainTeardown are in the ScenarioDrivenSpecBase class, which doesn't help much (I could simply use ClassInitialize and ClassCleanup in mstest to do that). Ideally I was after something that I could use in the ActionSteps helper, since it would avoid having to use static properties and potential issues if/when multiple tests are run concurrently.&lt;br /&gt;
&lt;br /&gt;
It seems the obselete NBehave.Narrator.Framework.BeforeScenarioAttribute still works with the fluent interface though, so I'm using that instead. Hopefully it doesn't get pulled from the code completely in future releases :(&lt;br /&gt;
&lt;/div&gt;</description><author>jamescrosswell</author><pubDate>Sun, 07 Apr 2013 21:40:05 GMT</pubDate><guid isPermaLink="false">New Post: Can't get hooks to work 20130407094005P</guid></item><item><title>New Post: Can't get hooks to work</title><link>http://nbehave.codeplex.com/discussions/439301</link><description>&lt;div style="line-height: normal;"&gt;From your other post I assume you are using the fluent interface, if so then hooks doesnt work, they only work when running gherkin files.&lt;br /&gt;
You could override MainSetup and MainTeardown.&lt;br /&gt;
&lt;/div&gt;</description><author>Lazydev</author><pubDate>Sun, 07 Apr 2013 21:10:48 GMT</pubDate><guid isPermaLink="false">New Post: Can't get hooks to work 20130407091048P</guid></item><item><title>New Post: Can't get hooks to work</title><link>http://nbehave.codeplex.com/discussions/439301</link><description>&lt;div style="line-height: normal;"&gt;I've created a &amp;quot;global&amp;quot; hooks class as &lt;a href="https://github.com/nbehave/NBehave/wiki/Hooks" rel="nofollow"&gt;per the docs&lt;/a&gt;, which is not inside any namespace and looks like this:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;
[Hooks]
public class MyHooks
{
    [Hooks.BeforeScenario]
    private void OnBeforeScenario()
    {
        ScenarioContext.Current[&amp;quot;DataHelper&amp;quot;] = new TestDataHelper();
    }

    [Hooks.AfterScenario]
    public void OnAfterScenario()
    {
        var dataHelper = (TestDataHelper)ScenarioContext.Current[&amp;quot;DataHelper&amp;quot;];
        if (dataHelper != null)
            dataHelper.Dispose();
    }

}&lt;/code&gt;&lt;/pre&gt;

However, when I run my tests, neither of the hooks is called. What am I doing wrong here?&lt;br /&gt;
&lt;br /&gt;
Cheers,&lt;br /&gt;
James&lt;br /&gt;
&lt;/div&gt;</description><author>jamescrosswell</author><pubDate>Fri, 05 Apr 2013 20:41:47 GMT</pubDate><guid isPermaLink="false">New Post: Can't get hooks to work 20130405084147P</guid></item><item><title>New Post: ClassInitialize and ClassCleanup when using Helper objects for action steps</title><link>http://nbehave.codeplex.com/discussions/439293</link><description>&lt;div style="line-height: normal;"&gt;So scratch that... finally found what I was after &lt;a href="https://github.com/nbehave/NBehave/wiki/Hooks" rel="nofollow"&gt;in the docs&lt;/a&gt; :)&lt;br /&gt;
&lt;br /&gt;
Cheers,&lt;br /&gt;
James&lt;br /&gt;
&lt;/div&gt;</description><author>jamescrosswell</author><pubDate>Fri, 05 Apr 2013 20:19:20 GMT</pubDate><guid isPermaLink="false">New Post: ClassInitialize and ClassCleanup when using Helper objects for action steps 20130405081920P</guid></item><item><title>New Post: ClassInitialize and ClassCleanup when using Helper objects for action steps</title><link>http://nbehave.codeplex.com/discussions/439293</link><description>&lt;div style="line-height: normal;"&gt;I've been using the &lt;a href="https://github.com/nbehave/NBehave/wiki/Fluent%20Interfaces" rel="nofollow"&gt;Fluent Interfaces&lt;/a&gt; for nbehave to create integration tests for a few weeks now and for the most part this works really nicely. &lt;br /&gt;
&lt;br /&gt;
However when using a helper object to execute the action steps, the way I'm currently dealing with dependencies that need to be initialised before any of the action steps is executed and cleaned up after all of the action steps have been executed is somewhat messy. &lt;br /&gt;
&lt;br /&gt;
I see in the &lt;a href="https://github.com/nbehave/NBehave/blob/master/src/NBehave.Fluent.Framework/ScenarioDrivenSpecStepRunner.cs" rel="nofollow"&gt;ScenarioDrivenSpecStepRunner.cs&lt;/a&gt; class that there are a couple of methods which look suspiciously like they might provide the plumbing I need to do this more cleanly:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;        public void BeforeScenario()
        {
            var beforeAction = resolvers
                .Select(resolver =&amp;gt; resolver.ResolveOnBeforeScenario())
                .FirstOrDefault(action =&amp;gt; action != null);
            if (beforeAction != null)
                beforeAction();
        }

        public void AfterScenario()
        {
            var afterAction = resolvers
                .Select(resolver =&amp;gt; resolver.ResolveOnAfterScenario())
                .FirstOrDefault(action =&amp;gt; action != null);
            if (afterAction != null)
                afterAction();
        }&lt;/code&gt;&lt;/pre&gt;

However as I'm new to nbehave I'm not sure how I would configure the appropriate &amp;quot;resolvers&amp;quot; to get the step runner to call my initialization and cleanup code before/after the scenario gets executed... and this isn't immediately apparent gazing at the code.&lt;br /&gt;
&lt;br /&gt;
Has anyone ever used these OnBeforeScenario and OnAfterScenario events and, if so, how is this done?&lt;br /&gt;
&lt;br /&gt;
Cheers,&lt;br /&gt;
James&lt;br /&gt;
&lt;/div&gt;</description><author>jamescrosswell</author><pubDate>Fri, 05 Apr 2013 19:47:54 GMT</pubDate><guid isPermaLink="false">New Post: ClassInitialize and ClassCleanup when using Helper objects for action steps 20130405074754P</guid></item><item><title>New Post: skipping scenarios</title><link>http://nbehave.codeplex.com/discussions/399880</link><description>&lt;div style="line-height: normal;"&gt;To skip running scenarios/features using tags you have to use the console runner.&lt;br /&gt;
&lt;br /&gt;
With R# you could perhaps create a test session with only the scenarios you want to run?&lt;br /&gt;
&lt;/div&gt;</description><author>Lazydev</author><pubDate>Thu, 28 Mar 2013 09:06:28 GMT</pubDate><guid isPermaLink="false">New Post: skipping scenarios 20130328090628A</guid></item><item><title>New Post: skipping scenarios</title><link>http://nbehave.codeplex.com/discussions/399880</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p dir="ltr"&gt;Sorry I wasn't really clear I meant tags &lt;/p&gt;
&lt;p dir="ltr"&gt;Wondy&lt;/p&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;</description><author>1dson</author><pubDate>Thu, 28 Mar 2013 08:48:43 GMT</pubDate><guid isPermaLink="false">New Post: skipping scenarios 20130328084843A</guid></item><item><title>New Post: skipping scenarios</title><link>http://nbehave.codeplex.com/discussions/399880</link><description>&lt;div style="line-height: normal;"&gt;I'm not following you, is it tags or backgrounds you cant get to work? or both?&lt;br /&gt;
&lt;br /&gt;
To use the embedded runner se &lt;a href="https://github.com/nbehave/NBehave/wiki/Embedded%20Runner" rel="nofollow"&gt;here&lt;/a&gt;.&lt;br /&gt;
To use the R# runner please use the latest (0.6.2), In 0.6.1 i screwed up the installer :-(&lt;br /&gt;
&lt;/div&gt;</description><author>Lazydev</author><pubDate>Thu, 28 Mar 2013 08:41:56 GMT</pubDate><guid isPermaLink="false">New Post: skipping scenarios 20130328084156A</guid></item><item><title>New Post: Mapping mulitple features to one class</title><link>http://nbehave.codeplex.com/discussions/438182</link><description>&lt;div style="line-height: normal;"&gt;Yes you can put steps for multiple features in the same class if you like.&lt;br /&gt;
You can put all steps in one class or even each step in its own class (dont recommend that one though).&lt;br /&gt;
If you need to keep state between steps/scenarios use FeatureContext and/or ScenarioContext.&lt;br /&gt;
&lt;/div&gt;</description><author>Lazydev</author><pubDate>Thu, 28 Mar 2013 08:36:05 GMT</pubDate><guid isPermaLink="false">New Post: Mapping mulitple features to one class 20130328083605A</guid></item><item><title>New Post: Mapping mulitple features to one class</title><link>http://nbehave.codeplex.com/discussions/438182</link><description>&lt;div style="line-height: normal;"&gt;Is it possible to map multiple features to one class?&lt;br /&gt;
&lt;br /&gt;
I am using Resharper to run my tests and currently i've only got one feature file. I was wondering is it possible to have multiple features mapping to one class. Then in you test you could call which feature you want to be executed first, 2nd etc.....&lt;br /&gt;
&lt;/div&gt;</description><author>1dson</author><pubDate>Wed, 27 Mar 2013 15:34:52 GMT</pubDate><guid isPermaLink="false">New Post: Mapping mulitple features to one class 20130327033452P</guid></item><item><title>New Post: skipping scenarios</title><link>http://nbehave.codeplex.com/discussions/399880</link><description>&lt;div style="line-height: normal;"&gt;Never really managed to get this working. If i am using an embedded runner e.g. Resharper, how do i declare this inside a void? &lt;br /&gt;
&lt;/div&gt;</description><author>1dson</author><pubDate>Tue, 26 Mar 2013 14:34:28 GMT</pubDate><guid isPermaLink="false">New Post: skipping scenarios 20130326023428P</guid></item><item><title>New Post: skipping scenarios</title><link>http://nbehave.codeplex.com/discussions/399880</link><description>&lt;div style="line-height: normal;"&gt;Never really managed to get this working. If i am using an embedded runner e.g. Resharper, how do i declare this inside a void? &lt;br /&gt;
&lt;/div&gt;</description><author>1dson</author><pubDate>Tue, 26 Mar 2013 14:34:13 GMT</pubDate><guid isPermaLink="false">New Post: skipping scenarios 20130326023413P</guid></item><item><title>New Post: skipping scenarios</title><link>http://nbehave.codeplex.com/discussions/399880</link><description>&lt;div style="line-height: normal;"&gt;Never really managed to get this working. If i am using an embedded runner e.g. Resharper, how do i declare this inside a void? &lt;br /&gt;
&lt;/div&gt;</description><author>1dson</author><pubDate>Tue, 26 Mar 2013 14:11:44 GMT</pubDate><guid isPermaLink="false">New Post: skipping scenarios 20130326021144P</guid></item></channel></rss>