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 7093735
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T08:28:35+00:00 2026-05-28T08:28:35+00:00

We have an old asp.net application that has no unit tests, integration tests, component

  • 0

We have an old asp.net application that has no unit tests, integration tests, component tests or UI/functional tests – surprise!

Now, we’d like to introduce some automated system testing that tests the functionality so that when something breaks in the app we immediately get notified!

For example, the user registration form where user can enter username and email address and register in the system.

It’s too late/expensive to introduce unit tests (as the current design is not unit testable) so the most important thing now is writing Automated System Tests.

For example, we’d like to write a test in C# which opens the browser, enters the data to the text boxes, clicks on the Register button then our test checks whether the data is inserted into the database and whether a verification email is sent and at the end whether a proper message is shown to the user (of course this is only the main scenarios and there would be numerous special cases). Basically not testing isolated units but testing whether the whole process works!

So, what tool could I use to help me write such test and automating it?

What approach would you recommend to use?

I had a look at Selenium and Fitnesse but they don’t seem to allow me write C# code to test database, etc. I looked at the SoapUI/LoadUI same issue. WatiN could possibly be used, not sure. any thoughts/recommendations are very much appreciated.

Hope the question is clear.

Many thanks,

  • 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-05-28T08:28:36+00:00Added an answer on May 28, 2026 at 8:28 am

    Selenium absolutely does allow you to write C# code for system testing. First you would have a method to interact with the website, a second method to verify the database is correct. All within a single test app/class.

    For the web interaction, you would use a WebDriver (taken from the Selenium API doc). Here’s some example code of IWebDriver’s interface. It interacts with google, but you can modify this to interact with your website.

    using OpenQA.Selenium.Firefox;
    using OpenQA.Selenium;
    
    class GoogleSuggest
    {
        static void Main(string[] args)
        {
            IWebDriver driver = new FirefoxDriver();
            driver.Navigate().GoToUrl("http://www.google.com/");
            IWebElement query = driver.FindElement(By.Name("q"));
            query.SendKeys("Cheese");
            System.Console.WriteLine("Page title is: " + driver.Title);
            driver.Quit();
        }
    }
    

    Then you would just implement another method that verifies the database entries are correct, using something like LinqToSql or other C# database API.

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

Sidebar

Related Questions

I have a solution that has a plain old asp.net website and a winforms
I have an asp.net application that uses the file (something like hand-made DB). It
I have an old .net 2005 web site that has some asp pages and
Age old question! When you have finished developing and testing your ASP.Net web application,
Retrofitting ASP.NET WebForms themes to an old application I have a need to theme
I have in here an old web application written in ASP.Net 2.0 + AJAX.
I have an old ASP.NET 1.1 site that I am maintaining. We are working
I have an ASP.NET 4 web application that references a SOAP web service. I
I have an old ASP.NET application. We send out httpWebRequest to a remote REST
We have an ASP.NET application that uses Forms Auth. When users log in, a

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.