Test Notes

I don't make software; I make it better

  Home  |   Contact  |   Syndication    |   Login
  68 Posts | 0 Stories | 22 Comments | 641 Trackbacks

News

  

Please Note
The information in this weblog is provided “AS IS" with no warranties, and confers no rights. This weblog does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion. Inappropriate comments will be deleted at the authors discretion.


Google 

Groups
SoftwareTesting
Browse Archives at
groups.google.com



  Page Loads:

Technorati Profile

Click for Hyderabad, India Forecast

Archives

Post Categories

Image Galleries

Friend's Blog's

Groups

Sites

Testing Blog's

The world has started to rely increasingly on software that is becoming more and more complex. Today software is everywhere - part of every system or machine that we use in daily life. Software Quality and Reliability have become an important concern of the software industry. While improved and formal software development processes help avoid more and more defects, a large number of defects are still left in software. In one of history's well-known bugs, the entire long distance of AT&T was down for nine hours. The melt down was finally traced to a single line of code that could have been best detected by some effective unit testing. Beizer argues that the number of bugs left behind after a software engineer "delivers" his code to others is still too high for comfort. While improved design techniques try to avoid defects, effective testing continues to play an important role in removing defects left behind and is the cornerstone of the Software Quality Assurance activity.................

More at http://www.deccanetworld.com/sublinks/whitepapers/unit_testing.htm

It is very good white paper written by “R.Venkat Rajendran, Director, Deccanet Designs Ltd.

posted on Wednesday, March 10, 2004 9:08 PM

Feedback

# re: Unit Testing 1/6/2005 1:38 PM Vishal kharge
Advantage of Unit Testing:

1. Plays major role in the Testing effort

2. Defect found in the unit testing is less costly than in the later stages of testing

3. To achive high test coverage

4. Internal condition can be tested


# re: Unit Testing 4/11/2005 11:51 AM Vishal Kharge
Vishal Kharge
I don't make software; I make it better

Unit Testing

What is Unit Testing?
Unit Testing is the earliest stage of testing and is most cost effective testing stage in removing defects. Unit testing must employ Functional, Structural and Heuristic (Intuitive) testing techniques to be effective against the different types of defects.

Why Unit Testing? (Advantage of Unit Testing)
Units are the smallest building blocks of software. Some of the major benefits are:
· Unit Testing plays a major role in the total testing efforts
· Be able to test parts of a project with out waiting for the other parts to be available
· Achieve parallelism in testing by being able to test and fix problems simultaneously by many engineers
· Be able to detect and remove defects at a much less cost compared to other later stages of testing
· Be able to take advantage of a number of formal testing techniques available for unit testing
· Simplify debugging by limiting to a small unit the possible code areas in which to search for bugs
· Be able to test internal conditions that are not easily reached by external inputs in the larger integrated systems (for example, exception conditions not easily reached in normal operation)
· Be able to achieve a high level of structural coverage of the code
· Avoid lengthy compile-build-debug cycles when debugging difficult problems
Unit testing is more cost effective compared to the other stages of testing.


What are the problems related to the Unit Testing?
· Testing is monotonous, boring and repetitive
· Poor Documentation of Test cases
· Coding Drivers and Stubs
· Informal testing process
· Poor Regression Testing
· Lack of Complete Testing tools


What are the Unit Testing Techniques?
The testing techniques may be broadly divided into three types:
· Functional Testing
· Structural Testing
· Heuristic or Intuitive Testing

Functional Testing techniques help catch omissions and wrong implementations; Structural Testing techniques help catch surprises and wrong implementations. Heuristic or intuitive testing techniques help catch all types of defects. But Intuitive testing is effective only when complementing the systematic types of Functional and Structural testing techniques.
Functional Testing Techniques:
Boundary Value Analysis
Equivalence Partitioning
Cause Effect Graphing
Structural Testing Techniques:
Statement Coverage
Branch Coverages
Condition Coverage
Modified Condition-Decision Coverage





# re: Unit Testing 7/1/2007 6:26 PM rajesh zinjurde
Unit Testing-
1. It is OO (object oriented) testing
2.in this type of testing each module or component consider as whole
3.here functionality of component is tested
4.here for testing stub and driver are used
5. it is effective when used with any other s/w testing process


Post Feedback

Title:
Name:
Email: (never displayed)
Url:
Comments: 
Please add 5 and 4 and type the answer here: