Search

Thursday, April 03, 2008

TEST CASE DESIGN

Any engineered product can be listed is one of two ways.1) Knowing the specified in that a product has been designed to perform, tests can be conducted that demonstrate each for fully operational while at the same time searching for errors in each tn, called BLACK BOX TESTING. It alludes to test that are conducted at the S/W interface. Although they are designed to uncover errors, black-box tests are and to demonstrate that S/W fn’s are designed to uncover errors black box tests are and to demonstrate that s/w fn’s are operational, that ip is properly accepted and op is correctly of external info. (eg. Data) is maintained. A black – box test examines little regard for the internal logical structure of the software testing.

window.google_render_ad();

2) Knowing the internal working of a product, tests can be conducted to ensure that all internal operations are performed according to spec and all internal components have been adequately exercised. This is called WHITE BOX TESTING or GLASS BOX TESTING. Which box testing assert an close examination of procedural detail. Logical paths through the s/w are listed by providing test cases that exercise specific sets of and/ or loops. The status of the program can be examined at various pts to det of the expected or asserted status corresponds to the actual status. Here the test case design is using structure of the procedural design.

Monday, March 31, 2008

WHITE BOX TESTING

Using white box testing method, the software engineer can drive cases that1) Guarantee that all independent paths within a module have been exercised at least once.2) Exercise all logical divisions on their true and false sides.3) Exercise all loops at their boundaries and within their operational bounds.4) Exercise internal data structures to ensure their validity.

CONTROLE STRUCTURE TESTING : This alludes to white box-testing method.1) Basic path Testing: This enables the tester to drive a logical complexity measure of a procedural design and are this measure as a guide for defining a basis set of execution paths. Test cases derived to exercise the basis set are guaranteed to execute every during testing.We may are ‘FLOW GRAPH NOTATION’ as a useful loop for understanding control flow and illustrating the approach.We can are ‘CYLLOMETRIC COMPLEXITY’ is a software metric that provides a quantitative measure of the logical complexity of a program. Here, the value computed for cyclometric complexity defines the No. of independent paths is the basis set of program and provides as with the upped bound for the No. of tests that be conducted to ensure that all statements have been exercise at least once.

window.google_render_ad();

GRAPH METRIX 2) Condition Testing :This test case design method exercise the logical condn’s contained in the program module. It has adv. like (i) measurement of test coverage of a cond’n is sample. (ii) The test coverage of condn’s is a program provides guidance for the gen of additional tests for the program.BRANCH TESTING : for a compound condn’s C, the true and false branches of C and every sample cond’n in C need to be exec. at least onceDOMAIN TESTING, required there of four tests to be derived for a relational exprsm.3) Data flow TestingThis method selects test paths of a program according to the locations of defines and cases variable in the program.4) Loop Testing:1) Start at the internal loop set all other loops to2) Conduct simple test for investment loops while holding the outer loops their min interaction parameter ( loop counter) values. Add other tests for out of range or excluded values.3) Work outward, conducting test for the next loops but keeping all other outer loops at min. values.4) Continue till the last loop.