Geeks Talk

Prepare for your Next Interview




Manual Testing

This is a discussion on Manual Testing within the Testing Issues forums, part of the Software Testing category; What is statement coverage? Please answer this question....................


Go Back   Geeks Talk > Software Testing > Testing Issues

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 02-08-2008
Junior Member
 
Join Date: Jan 2008
Location: Chennai
Posts: 10
Thanks: 4
Thanked 2 Times in 2 Posts
vsjprasath is on a distinguished road
Red face Manual Testing

What is statement coverage?
Please answer this question.................
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 02-11-2008
Moderator
 
Join Date: Sep 2007
Location: Chennai, INDIA
Posts: 406
Thanks: 2
Thanked 153 Times in 81 Posts
sridharrganesan will become famous soon enoughsridharrganesan will become famous soon enough
Re: Manual Testing

Hi prasath,

Statement coverage is one of the Technique used in White Box Testing. Here the testing is done against the code. Statement coverage will check whether all the statements in the code block are executed atleast once. By using statement coverage it is validated that all the lines of code are executed and by that unwanted lines of code are removed.

REgards,
Ganesan
Reply With Quote
The Following User Says Thank You to sridharrganesan For This Useful Post:
  #3 (permalink)  
Old 02-14-2008
Banned
 
Join Date: Oct 2007
Location: Hyderabad
Posts: 176
Thanks: 2
Thanked 11 Times in 11 Posts
quality_quantity is on a distinguished road
Re: Manual Testing

Statement coverage is a code coverage metric that tells you whether the flow of control reached every executable statement of source code at least once.

Attaining coverage on every source statement seems like a good objective. But statement coverage does not adequately take into account the fact that many statements (and many bugs) involve branching and decision-making. Statement coverage's insensitivity to control structures tends to contradict the assumption of code coverage testing itself: thorough testing requires exercising many combinations of branches and conditions.

In particular, statement coverage does not call for testing the following:

Simple if statements
Logical operators (&&, ||, and ?
Consecutive switch labels
Loop termination decisions
Do-while loops
Statement coverage has three characteristics that make it seem like a good coverage metric. Upon close inspection, they all become questionable. Statement coverage is:

Simple and fundamental
Measurable by object code instrumentation
Sensitive to the size of the code
Experts agree. A number of software testing books and papers give descriptions of statement coverage that range from "the weakest measure" to "not nearly enough".

Line coverage, basic block, and segment coverage are variations of statement coverage. They all have similar characteristics and this document applies equally to all of them, except where noted.
Reply With Quote
  #4 (permalink)  
Old 02-14-2008
Contributing Member
 
Join Date: Nov 2006
Location: India
Posts: 79
Thanks: 3
Thanked 15 Times in 10 Posts
j_madhuri is on a distinguished road
Re: Manual Testing

Simple formula for statement coverage is

Statement Coverage =

Executable Statements Tested
_____________________________

Total No. of executable Statements
Reply With Quote
  #5 (permalink)  
Old 02-14-2008
Contributing Member
 
Join Date: Nov 2006
Location: India
Posts: 79
Thanks: 3
Thanked 15 Times in 10 Posts
j_madhuri is on a distinguished road
Re: Manual Testing

Statement Coverage : The percentage of executed statements in a component that have been exercised by a test case suite.

The simple formula is

statement coverage = Executable Statements
Tested
____________________

Total No. of
executable Statements
Reply With Quote
Reply

  Geeks Talk > Software Testing > Testing Issues


Thread Tools
Display Modes


Similar Threads

Thread Thread Starter Forum Replies Last Post
Guidelines for Manual Testing sridharrganesan Testing Issues 34 4 Hours Ago 05:15 PM
manual testing procedure rvija Testing Issues 17 3 Weeks Ago 12:21 AM
In manual testing,how do we check database for changes? spd15 Testing Issues 5 12-18-2007 10:49 AM
testing techniques are used in manual web testing sunny_love Web Testing 10 10-22-2007 03:10 AM
Manual Testing prasad79 Testing Issues 0 09-26-2007 04:20 AM


All times are GMT -4. The time now is 09:18 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved