Code coverage testing involves "Dynamic Testing" methods of executing the product with pre¬written test cases and finding out how much of code has been covered. If a better coverage of a code is desired, several iterations of testing may be required. For every iteration, one has to write a new set of test cases for covering those portions of code that were not covered by earlier test cases. To do such type of testing, not only does one need to understand the code and logic but also need to understand how to write effective test cases that can cover good portions of the code.

Understanding of code and logic means white box or structural testing whereas writing effective test cases means black box testing. So, what we need is in fact a combination of white box and black box techniques for test effectiveness. This type of testing is known as gray box testing'.

Thus we can say that

WHITE + BLACK = GRAY

What is Gray Box Testing?

Black box testing focuses on software's external attributes and behaviour. Such testing looks at an application's expected behaviour from the user's point of view. White box testing / glass-box testing, however, tests software with knowledge of internal data structures, physical logic flow, and architecutre atthe source code level. White box testing looks at testing from the developer’s point of view.

Both black¬box and white-box testing are critically important complements of a complete testing effort. Individually, they do not allow for balanced testing. Black box testing can be less effective at uncovering certain error types such as data-flow errors or boundary condition errors at the source level. White box testing does not readily highlight macro level quality risks in operating environment, compatibility, time-related errors and usability.

How experts have defined the Gray Box Testing

Gray box testing incorporates the elements of both black box and white box testing. It considers the outcome on the user end, system-specific technical knowledge and the operating environmer It evaluates the application design in the context of the inter-operability of system components. The gray box testing approach is integral to the effective testing of web applications comprises of numerous components like both software and hardware. These components must be tested in the context system design to evaluate their functionality and corripatiouity.

Industry experts have provided some definitions of gray box testing, few of them are given below.

Definition – 1: "Gray box testing consists of methods and tools derived from the knowledge of the application internals and the environment with which it interacts, that can be applied in black box testing to enhance testing productivity, bug finding and bug analyzing efficiency – by Nguyen H.G

Definition – 2: "Gray box testing is using inferred or incomplete structural or design information to expand or focus black box testing". - Dick Bende

Definition – 3: "Gray box testing is designing of the test cases based on the knowledge of algorithms interval states, architectures or other high level descriptions of program behaviour". - Dong Hoffmar

Definition – 4: "Gray box testing involves inputs and outputs, but test design is educated by informatior about the code or the program operation of a kind that would normally be out of scope of view of the tester". - Cem Kanei

Where does the Gray box testing fit in?

Gray box testing is well suited for web application testing because it factors in high level design environment and the inter operability conditions. It addresses problems that are not as easily considered by a black box or white box analysis, especially problems of end-to-end information flow and distributed hardware / software system configuration and compatibility. Context-specific errors that are germane to web systems are commonly uncovered in this process.

http://www.softwaretestinggenius.com
A Storehouse of Complete Knowledge on Software Testing & QA under one Roof

Article Source:http://www.articlesbase.com/software-articles/let-us-know-all-about-gray-box-testing-1008206.html

NERO 11 PLATINIUM
NERO 11 PLATINIUM

$49.00
Time Remaining: 6d 3h 33m
Buy It Now for only: $49.00
Click To Buy Now
Mac OS X 103 discs for iMac including Software Restore
Mac OS X 103 discs for iMac including Software Restore

$27.98 (6 Bids)
Time Remaining: 32m
Click To Buy Now
Bid now
NEW QuickBooks Pro 2012 Accounting Software Sealed Retail Box Full Version
NEW QuickBooks Pro 2012 Accounting Software Sealed Retail Box Full Version

$129.95
Time Remaining: 21d 19h 14m
Buy It Now for only: $129.95
Click To Buy Now
Windows XP Pro Retail Full With Key
Windows XP Pro Retail Full With Key

$40.00 (1 Bid)
Time Remaining: 1h 42m
Click To Buy Now
Bid now
Intuit Quicken Deluxe 2011 Brand New No Box Sealed
Intuit Quicken Deluxe 2011 Brand New No Box Sealed

$11.99
Time Remaining: 4d 8h 28m
Buy It Now for only: $11.99
Click To Buy Now
QUICKEN HOME AND BUSINESS 2012 BRAND NEW FREE SHIPPING
QUICKEN HOME AND BUSINESS 2012 BRAND NEW FREE SHIPPING

$36.00 (5 Bids)
Time Remaining: 47m
Click To Buy Now
Bid now
Norton Internet Security 2012 CD 1 User 1 Yr Factory Fresh CD
Norton Internet Security 2012 CD 1 User 1 Yr Factory Fresh CD

$16.99
Time Remaining: 20d 45m
Buy It Now for only: $16.99
Click To Buy Now
Apple iWork 09 Retail Version V903
Apple iWork 09 Retail Version V903

$19.99 (1 Bid)
Time Remaining: 41m
Click To Buy Now
Bid now
NEW RETAIL McAfee Total Protection 2012 3 Users LATEST VERSION In Sealed Box
NEW RETAIL McAfee Total Protection 2012 3 Users LATEST VERSION In Sealed Box

$13.25
Time Remaining: 4d 19h 31m
Buy It Now for only: $13.25
Click To Buy Now
COREL PAINTSHOP PRO X4 ULTIMATE BRAND NEW RETAIL BOX SOFTWARE
COREL PAINTSHOP PRO X4 ULTIMATE BRAND NEW RETAIL BOX SOFTWARE

$23.50 (7 Bids)
Time Remaining: 1h 53m
Click To Buy Now
Bid now
Norton Internet Security 2012 1 User License for 3 PCS Installs Antivirus
Norton Internet Security 2012 1 User License for 3 PCS Installs Antivirus

$21.97
Time Remaining: 17d 11h 15m
Buy It Now for only: $21.97
Click To Buy Now
NERO 11 MULTIMEDIA SOFTWARE BRAND NEW SEALED RETAIL BOX
NERO 11 MULTIMEDIA SOFTWARE BRAND NEW SEALED RETAIL BOX

$29.00 (8 Bids)
Time Remaining: 1h 53m
Click To Buy Now
Bid now
McAfee Total Protection 2012 3 Users In Retail Box The Newest Version
McAfee Total Protection 2012 3 Users In Retail Box The Newest Version

$13.95
Time Remaining: 10d 6h 31m
Buy It Now for only: $13.95
Click To Buy Now
COREL PHOTO  VIDEO X4 ULTIMATE BUNDLE BRAND NEW RETAIL BOX SOFTWARE
COREL PHOTO VIDEO X4 ULTIMATE BUNDLE BRAND NEW RETAIL BOX SOFTWARE

$24.50 (13 Bids)
Time Remaining: 1h 52m
Click To Buy Now
Bid now
Norton 360 60 V6 3 PCs 1 Year Retail All In One AntiVirus Internet Security
Norton 360 60 V6 3 PCs 1 Year Retail All In One AntiVirus Internet Security

$32.99
Time Remaining: 17d 18h 56m
Buy It Now for only: $32.99
Click To Buy Now
New Sealed Adobe Photoshop Elements 10Premiere Elements 10 Full Bundle Version
New Sealed Adobe Photoshop Elements 10Premiere Elements 10 Full Bundle Version

$73.00 (17 Bids)
Time Remaining: 48m
Click To Buy Now
Bid now
Norton AntiVirus 2012 Retail 1 PC 1 Year Symantec
Norton AntiVirus 2012 Retail 1 PC 1 Year Symantec

$15.99
Time Remaining: 19d 18h 34m
Buy It Now for only: $15.99
Click To Buy Now
Norton Antivirus 2012 with Antispyware 3PC Original Factory Sealed Box
Norton Antivirus 2012 with Antispyware 3PC Original Factory Sealed Box

$15.50 (10 Bids)
Time Remaining: 38m
Click To Buy Now
Bid now
Norton 360 60 Retail BOX 3 PC 1 Year All In One AntiVirus Internet Security V6
Norton 360 60 Retail BOX 3 PC 1 Year All In One AntiVirus Internet Security V6

$33.99
Time Remaining: 2d 17h 51m
Buy It Now for only: $33.99
Click To Buy Now
Adobe Acrobat 70 Standard for Windows
Adobe Acrobat 70 Standard for Windows

$4.99 (1 Bid)
Time Remaining: 30m
Click To Buy Now
Bid now
Norton Internet Security 2012 Retail 1 User License 3 Activations w AntiVirus
Norton Internet Security 2012 Retail 1 User License 3 Activations w AntiVirus

$22.99
Time Remaining: 29d 4h 31m
Buy It Now for only: $22.99
Click To Buy Now
FINAL CUT STUDIO 2 FINAL CUT PRO 6 COLOR MOTION 3 COMPRESSOR 3 ACADEMIC VERSION
FINAL CUT STUDIO 2 FINAL CUT PRO 6 COLOR MOTION 3 COMPRESSOR 3 ACADEMIC VERSION

$169.99 (1 Bid)
Time Remaining: 3h 59m
Click To Buy Now
Bid now
New CorelDRAW Graphics Suite X5 Full Version
New CorelDRAW Graphics Suite X5 Full Version

$49.99
Time Remaining: 1d 13h 32m
Buy It Now for only: $49.99
Click To Buy Now
Windows server 2008 standard retail box 5 Client Access Licences
Windows server 2008 standard retail box 5 Client Access Licences

$192.49 (3 Bids)
Time Remaining: 53m
Click To Buy Now
Bid now
All N OneV10 Optimize Windows 7Vista XPRepairClone Hard Disk Reset Win Pass
All N OneV10 Optimize Windows 7Vista XPRepairClone Hard Disk Reset Win Pass

$9.00
Time Remaining: 1d 2h 49m
Buy It Now for only: $9.00
Click To Buy Now
New Adobe Creative Suite 55 Web Premium Full Retail Factory Sealed for Mac OS
New Adobe Creative Suite 55 Web Premium Full Retail Factory Sealed for Mac OS

$255.00 (2 Bids)
Time Remaining: 1h 17m
Click To Buy Now
Bid now
Intuit Quicken Home and Business 2011 Brand New No Box Sealed
Intuit Quicken Home and Business 2011 Brand New No Box Sealed

$18.99
Time Remaining: 1d 22h 15m
Buy It Now for only: $18.99
Click To Buy Now
Windows Vista Ultimate 64bit Full Genuine With Key
Windows Vista Ultimate 64bit Full Genuine With Key

$48.00 (7 Bids)
Time Remaining: 1h 32m
Click To Buy Now
Bid now
Norton 360 Version 5 50 All In One RETAIL 3 PCs
Norton 360 Version 5 50 All In One RETAIL 3 PCs

$32.50
Time Remaining: 18d 13h 3m
Buy It Now for only: $32.50
Click To Buy Now
Adobe Creative Suite 3 Design Standard Mac
Adobe Creative Suite 3 Design Standard Mac

$100.00 (1 Bid)
Time Remaining: 1h 47m
Click To Buy Now
Bid now