Prepare for your Next Interview
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....................
|
|||
|
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 |
| The Following User Says Thank You to sridharrganesan For This Useful Post: | ||
|
|||
|
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. |
|
|||
|
Re: Manual Testing
Simple formula for statement coverage is
Statement Coverage = Executable Statements Tested _____________________________ Total No. of executable Statements |
|
|||
|
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 |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| 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 |