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

  • Home
  • SEARCH
  • 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 690859
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T02:28:47+00:00 2026-05-14T02:28:47+00:00

I’ve been working in windows forms applications and ASP.Net applications for the past 10

  • 0

I’ve been working in windows forms applications and ASP.Net applications for the past 10 months. I’ve always wondered how to perform proper unit testing on the complete application in a robust manner covering all the scenarios. I’ve the following questions regarding them –

  • What are the standard mechanisms in
    performing unit testing and writing test cases?
  • Does the methodologies change based
    on the application nature such as
    Windows Forms, Web applications etc?
  • What is the best approach to make
    sure we cover all the scenarios? Any
    popular books on this?
  • Popular tools for performing unit
    testing?
  • 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-14T02:28:48+00:00Added an answer on May 14, 2026 at 2:28 am

    If you want to know how to test whole application, it’s not a unit test, since the unit when talking about .Net applications is a class or method. I guess your confusion arouse from the fact that the automated thing you create is a test unit (you do unit tests with tests units, but you can also do integration tests with test units…). You are probably talking about automated integration tests or acceptance tests (which should never be automatic).

    Testing models such as V-Model define at least three test phases:

    Unit Testing

    Tests a single functionality or
    feature of the system. It’s based on
    the technical specification of the
    unit (class or method) that you are
    building. It can be automated through
    the use of tests units. Also, I think one should
    use a CI Server (continuous integration)
    here, since if your units don’t correctly integrate,
    there problem has most likely appeared in this phase.

    Integration Testing

    Once you certified that each of your
    “units” (classes or methods) works
    individually, you try now to check if
    the whole system is working as one. So
    you do an integration test, which
    checks to see if those units work
    correctly together in order to achieve
    the purpose of the system. You should
    try to automate Integration Tests as
    well. You can use tools like
    StoryTeller for that.

    User Acceptance Testing

    User Acceptance test must be
    conducted by the user, so no
    automation here. Of course, you can
    create and load the data that the user
    will validate, so portions of the
    tests are automated, but not the
    result. No robot should ever give you the final word that the system is
    working, only the user.

    Now, to answer your questions:

    What are the standard mechanisms in performing unit testing and writing test cases?

    You should use .Net Test Units for that purpose. In order to test user interaction (you can test a user interaction with a screen), you can use a external application (check the links below). Some robot might automate such tests to you.

    Does the methodologies change based on the application nature such as Windows Forms, Web applications etc?

    Indeed. For example, a batch application can be unit tested through the sole use of test units. Tests cases for batch systems can also be more lax, but will need more data input to check all the constraints.

    What is the best approach to make sure we cover all the scenarios? Any popular books on this?

    I’m not sure that there’s a real way to make sure that you covered every scenario, but what you should do is define what you are testing against. Like I said before, you should unit test against the technical specification, so if your spec is well written, you should be able to clearly identify the test cases. If you feel the need to test against something that wasn’t specified, then you should be improving your design techniques.

    Popular tools for performing unit testing?

    List of GUI testing tools

    List of unit testing frameworks

    Hope this helps.

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

Sidebar

Related Questions

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
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I'm looking for suggestions for debugging... If you view this site in Firefox or
Seemingly simple, but I cannot find anything relevant on the web. What is the
Does anyone know how can I replace this 2 symbol below from the string
this is what i have right now Drawing an RSS feed into the php,
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
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

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.