Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9268279
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T14:46:12+00:00 2026-06-18T14:46:12+00:00

I’ve been reading a bit about acceptance testing and I’d like to add some

  • 0

I’ve been reading a bit about acceptance testing and I’d like to add some to our web application. We been experiencing a number of regressions recently and I think that this would help us.

We’re using the MVC4 framework to deliver views, but also using knockout.js and the webapi to drive the generation of the html through json data. It’s quite a javascript heavy application.

I’ve been reading a bit about SpecFlow and I think it looks good. Our testers could write their test cases in the gerkin syntax then leave the programmers to implement them or something along those lines.

I have a few questions about this and maybe my understanding is a bit limited here. Maybe this is a bad question in general but any advice on this would be muchly appreciated.

  1. Is acceptance testing end-to-end testing of the live product? I’ve read some yes and some no on this.
  2. Is it possible to write tests with Specflow that manipulate the browser?
  3. Should I be testing end-to-end or should I just unit test the c#, the javascript and maybe throw in some integration tests on the webapi routes?
  4. Should I be using something like Ranorex or Selenium for end-to-end?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T14:46:13+00:00Added an answer on June 18, 2026 at 2:46 pm

    SpecFlow is a framework for allowing developers and business folk to collaborate on defining the business functionality of the system in the form of executable specifications that can be run repeatably and consistently and serve as a ‘living documentation’ system defining how the system is supposed to behave at any given point. To do this effectively the specifications need to be written from the outside in, i.e. hitting the entry points to your application, which for web based applications would either be a website URL or some kind of service endpoint, and validating the business requirements for that end point. To answer your questions:

    Is acceptance testing end-to-end testing of the live product? I’ve read some yes and some no on this.
    Should I be testing end-to-end or should I just unit test the c#, the javascript and maybe throw in some integration tests on the webapi routes?

    Acceptance testing is a large part of it but shouldn’t be done in isolation. You may well require integration tests as well that actually hit your data store if you’re using one or verify that external systems are communicating as expected. You should certainly be unit testing your individual components and mocking/stubbing out dependencies as appropriate, but this won’t tell you if the different layers of the system are functioning interdependently as a whole. This is where SpecFlow really shines. I wouldn’t necessarily advocate running acceptance tests on your live site, but setting up a mirror of live specifically for validating the acceptance tests would be a very worthwhile endeavour, ideally as part of your CI build process.

    Is it possible to write tests with Specflow that manipulate the browser?
    Should I be using something like Ranorex or Selenium for end-to-end?

    Absolutely it is possible. You can use Selenium WebDriver or something like Watin (a .NET wrapper around Selenium). Watin only worked in IE the last time I looked at it. It was working with Firefox 3.6 but a change in the FF core when they released 5 stopped it working. A pity as it was a really nice framework. SpecFlow provides hooks that you can use to spin up and tear down the browser during each test run. Here’s a quick example using Selenium WebDriver:

    [Binding]
    public class FeatureHooks
    {
        [BeforeFeature]
        public static void StartWebDriver()
        {
            Runner.InitialiseHost(HostTypeOption.Firefox);
        }
    
        [AfterFeature]
        public static void StopWebDriver()
        {
            Runner.StopHost();
        }
    
    }
    

    The Runner is a static class I use as part of a page framework I’m developing to help with the acceptance test automation. Here’s the host initialisation part:

    public static class Runner
    {
        internal static IWebDriver Host { get; private set; }
    
        public static void InitialiseHost(HostTypeOption hostType, int windowWidth = 1024, int windowHeight = 768)
        {
            switch (hostType)
            {
                case HostTypeOption.Firefox:
                    Host = new FirefoxDriver();
                    break;
                case HostTypeOption.InternetExplorer:
                    Host = new InternetExplorerDriver();
                    break;
                case HostTypeOption.Chrome:
                    Host = new ChromeDriver();
                    break;
                case HostTypeOption.Safari:
                    Host = new SafariDriver();
                    break;
                default:
                    throw new ArgumentOutOfRangeException("hostType");
            }
            Host.Manage().Window.Size = new System.Drawing.Size(windowWidth, windowHeight);
            Host.Manage().Timeouts().ImplicitlyWait(TimeSpan.FromSeconds(3));
        }
    
        public static void StopHost()
        {
            Host.Quit();
            Host = null;
        }
    }
    

    If you want to use IE or Chrome, you’ll need to download a specific driver and add it to the bin directory of your Acceptance Test project but Firefox works as is.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For some reason, after submitting a string like this Jack’s Spindle from a text
I would like my Web page http://www.gmarks.org/math_in_e-mail.txt on my Apache 2.2.14 server to display
Let's say I'm outputting a post title and in our database, it's Hello Y’all
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I am reading a book about Javascript and jQuery and using one of the
I have a jquery bug and I've been looking for hours now, I can't
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
I've got a string that has curly quotes in it. I'd like to replace

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.