code coverage analysis in testing

Click here to load reader

Upload: 9869265428

Post on 15-Jan-2017

322 views

Category:

Technology


0 download

TRANSCRIPT

CODE COVERAGE ANALYSIS IN TESTING

BY MECODE COVERAGE ANALYSIS IN TESTING

CODE COVERAGE ANALYSISCode coverage analysis can be done in two ways:Block based code coverage analysis.Line based code coverage analysis.

BLOCK BASED CODE COVERAGE ANALYSISNot Covered(Blocks).Covered(Blocks).Not Covered(Blocks %) 40%.Covered(Blocks %) 60%.

LINE BASED CODE COVERAGE ANALYSISLines Covered.Lines Not Covered.Lines Covered(Lines %).Lines Not Covered (Not Covered Lines %).Partially Covered Lines.Partially Covered Lines (%).

LINES OF TEST METHODAfter executing the test method, to check which lines of test method are fully covered, partially covered, Not at all covered, we need to click on "Show Code Coverage Coloring" in the code coverage analysis window.

LINES OF TEST METHODThe lines which are completely covered will be displayed with light blue color.the partially covered lines are displayed with beige color.The lines that are not at all covered are displayed with dark red color.

CODE COVERAGE ANALYSIS WINDOWBy default the code coverage analysis window displays only block based code coverage analysis details, but in order to get even line base code coverage analysis details, you need to right click on one of the column names and select "Add/Remove columns" and select or deselect the options as you need.

THANK YOU