specflow

Specflow with Visual Studio express

荒凉一梦 提交于 2019-11-30 03:01:31
问题 I have used Specflow in Visual Studio 2010 Pro at work but would like to use it on my personal projects. Unfortunately I only have VS210 Express. I have not managed to get Specflow working in VS2010 Express. has anyone done this or is it even possible. thanks, 回答1: I have managed to do this, and I have written a blog post on how to do this entitled: "C# ATDD on a shoestring (or the complete guide to SpecFlow & NUnit in VS2010 Express)" 回答2: The main idea is: SpecFlow generates fixtures for

Cuke4Nuke or SpecFlow?

两盒软妹~` 提交于 2019-11-29 20:53:51
I am trying to decide if I should use Cuke4Nuke or SpecFlow. What are the pro/cons of each? Opinions on which is better and why. Thanks! (I might be biased because I am involved with SpecFlow, but here my thoughts...) Cuke4Nuke is very close to Cucumber. This promises a lot of advantages: Compatibility Getting new features from Cucumber when Cucumber evolves (at least in theory, but language support is an example for this) Being a real part of the Cucumber community and the Cucumber ecosystem However this comes also with some potential disadvantages: Ruby is a necessity Since more

How to run SpecFlow tests in Visual Studio 2010?

∥☆過路亽.° 提交于 2019-11-29 20:53:07
Trying to get SpecFlow running with a fresh VS2010 Professional install. Created a new console application and added references to NUnit and SpecFlow. Created a SpecFlow feature. The .feature with the default template code is created. Now I try to run this test, but I don't understand how. When I right-click the project (at the top-level), there is no "Run test(s)" option in the mouse drop down menu. Didn't the SpecFlow install correctly, am I missing some references or some other tool I need to install? mfloryan If you want to be able to run your tests directly from Visual Studio 2010 without

How to integrate Appium with C#?

徘徊边缘 提交于 2019-11-29 14:01:53
问题 I am unable to find a single post where i can automate mobile testing with appium in C#. I have written my Website automation code in the specflow. Can I also Reuse it ? 回答1: Appium provides the dotnet-appium-driver which is your API to interface with Appium. You can use that to write your app automation. You did not provide any example here nor code, so I cannot really act on something to show you. I will just write down some C# code to let you understand how a simple test in C# can be

SpecFlow/Cucumber/Gherkin - Using tables in a scenario outline

浪子不回头ぞ 提交于 2019-11-29 11:28:08
问题 Hopefully I can explain my issue clearly enough for others to understand, here we go, imagine I have the two following hypothetical scenarios: Scenario: Filter sweets by king size and nut content Given I am on the "Sweet/List" Page When I filter sweets by | Field | Value | | Filter.KingSize | True | | Filter.ContainsNuts | False | Then I should see : | Value | | Yorkie King Size | | Mars King Size | Scenario: Filter sweets by make Given I am on the "Sweet/List" Page When I filter sweets by |

How can I run Internet Explorer Selenium tests as a specific domain user?

故事扮演 提交于 2019-11-29 03:25:20
I have a ASP.NET MVC website that uses Windows Authentication to control access. I would like to have a specflow selenium test that checks the configuration is correct by attempting to visit the site as a non-authorised user. As we're using domain accounts to control access there isn't a username/password login screen. The credentials of the current user are automatically passed to the site by the browser. So for my Selenium test I need to be able to run Internet Explorer as a specific user. I have found a number of articles about windows impersonation and I can switch to my test user during

What's the best way to organize feature files?

耗尽温柔 提交于 2019-11-29 03:05:00
问题 I'm a huge fan of Specflow and BDD. It worked out great for me on a variety of projects. One challenge I haven't solved yet is organizing my feature files and scenarios in a way, which makes it easy to navigate and explore. Imagine one year later someone else wants to come along and learn about the system. Where to start? What's most important, what's less important? Any relations between features? Does the system handle a particular scenario? Has the author thought about this problem? Can

How do I disable a feature in specflow (Gherkin) without deleting the feature?

橙三吉。 提交于 2019-11-29 02:01:18
问题 I have some SpecFlow features (using the Gherkin syntax) and I would like to temporarily disable the feature to prevent its tests from running? Is there an attribute I can mark the feature with to do this? I'm guessing that something that works with Cucumber might also work with SpecFlow. 回答1: You can mark the feature with the tag @ignore: @ignore @web Scenario: Title should be matched When I perform a simple search on 'Domain' Then the book list should exactly contain book 'Domain Driven

Feature-scoped step definitions with SpecFlow?

╄→гoц情女王★ 提交于 2019-11-28 23:15:56
I'm using SpecFlow to do some BDD-style testing. Some of my features are UI tests, so they use WatiN. Some aren't UI tests, so they don't. At the moment, I have a single StepDefinitions.cs file, covering all of my features. I have a BeforeScenario step that initializes WatiN. This means that all of my tests start up Internet Explorer, whether they need it or not. Is there any way in SpecFlow to have a particular feature file associated with a particular set of step definitions? Or am I approaching this from the wrong angle? mfloryan There is a simple solution to your problem if you use tags.

SpecFlow/BDD for Unit Tests?

自闭症网瘾萝莉.ら 提交于 2019-11-28 21:12:39
Seems like the internet doesn't have a definitive answer, or set of principles to help me answer the question. So I turn to the great folk on SO to help me find answers or guiding thoughts :) SpecFlow is very useful for BDD in .NET. But when we talk about BDD are we just talking integration/acceptance tests, or are we also talking unit tests - a total replacement for TDD? I've only used it on small projects, but I find that even for my unit tests, SpecFlow improves code documentation and thinking in terms of language. Converseley, I can't see the full code for a test in one place - as the