Sunday 3 March 2013

Unit Testing - Definition, Execution, Disadvantages

Unit Testing:


unit-testing
Click on the image for zoom view

A unit is smallest testable piece of software :

  • Can be compiled, linked, loaded
  • E.g functions/procedures, classes, interfaces
  • Normally done by programmer
  • Test cases written after coding

This type of testing is performed by the developers before the setup is handed over to the testing team to formally execute the test cases.
  • Unit testing is performed by the respective developers on the individual units of source code assigned areas.
  • The developers use test data that is separate from the test data of the quality assurance team.
  • The goal of unit testing is to isolate each part of the program and show that individual parts are correct in terms of requirements and functionality.

Unit Testing Execution:

Unit-Test-Execution
Click on the image for zoom view

Disadvantages / Limitations of Unit Testing:

Limitations-of-Unit-Testing

  • Testing cannot catch each and every bug in an application.
  • It is impossible to evaluate every execution path in every software application. The same is the case with unit testing.
  • There is a limit to the number of scenarios and test data that the developer can use to verify the source code. So after he has exhausted all options there is no choice but to stop unit testing and merge the code segment with other units.

10 comments:

  1. hope it is the first and foremost level of software testing phase.

    ReplyDelete
  2. i'm a fresher and planned to start my career in software testing. is that GOOD? guide me pls.

    ReplyDelete
  3. @Jai Yup. You can find many mistakes on other's work. Will be interesting :)

    ReplyDelete
  4. Pretty article! I found some useful information in your blog, it was awesome to read, thanks for sharing this great content to my vision, keep sharing. Need to learn
    Software Testing Services
    Software Qa Services

    ReplyDelete
  5. Nice Post.. really helpful to clear my small concepts. thanks Keep doing more, waiting to read your next blog

    Selenium Training in Chennai | Certification | Online Courses

    selenium training in chennai

    selenium training in chennai

    selenium online training in chennai

    selenium training in bangalore

    selenium training in hyderabad

    selenium training in coimbatore

    selenium online training

    ReplyDelete
  6. Thanks for sharing such a great blog... I am impressed with you taking time to post a nice info.
    software testing training in chennai

    ReplyDelete
  7. Thanks for sharing this informative content , Great work
    To crack scrum master interview : Agile coach interview questions

    ReplyDelete

Share your feedback and queries here. Your feedback are more valuable to us!