Docsity

Assurance-Based Testing: A Process for Independent and Objective Software Evaluation - Pro, Study notes of Computer Science

Toggle sidebar
bg1
1
1
Assurance-Based Testing (ABT)
Wei-Tek Tsai
Department of Computer Science and
Engineering
Arizona State University
Tempe, AZ 85287
2
Introduction to ABT
•Assurance-Based Testing (ABT) is a process
which provides an independent, objective and
quantifiable assesment of testing performed.
Assurance-Based Testing contains a set of
guidelines that include statistical models to
evaluate and assess the testing performed.
•Assurance-Based Testing (ABT) can be easily
embedded in an existing testing process, or can be
applied to a project where testing has been
completed. The ABT provides an independent
assessment of the testing done.
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Assurance-Based Testing: A Process for Independent and Objective Software Evaluation - Pro and more Study notes Computer Science in PDF only on Docsity!

1

Assurance-Based Testing (ABT)

Wei-Tek Tsai

Department of Computer Science and

Engineering

Arizona State University

Tempe, AZ 85287

2

Introduction to ABT

• Assurance-Based Testing (ABT) is a process

which provides an independent, objective and

quantifiable assesment of testing performed.

Assurance-Based Testing contains a set of

guidelines that include statistical models to

evaluate and assess the testing performed.

• Assurance-Based Testing (ABT) can be easily

embedded in an existing testing process, or can be

applied to a project where testing has been

completed. The ABT provides an independent

assessment of the testing done.

3

Introduction to ABT

• Two processes can be used to conduct Assurance-

Based Testing

  • The Bottom-Up process
  • The Top-Down process

• The Top-Down process should be used when

testing is completed or almost completed. The

Bottom-Up process should be used in the early

stages of testing and it can be embedded in an

existing testing process.

4

ABT Top-Down Process

• Overview

  • Introducing major steps in the top-down ABT process.

This process assumes that all the testing tasks have

been completed including module testing, integration

testing, end-to-end testing.

  • Use a small example to illustrate the process. This

example is completed with code and actual test cases

  • One key step is the generation of independent test cases

7

ABT Top-Down Process

• Confidence level vs. target failure density

  • If a system achieved 0.95 confidence with 0.04 failure

density, it means that

  • with probability of 0.95 (95%) that the actual failure density is less than 0.04 (or less than 4 cases will fail in 100 test runs).
  • With a probability of .05 (5%) that the actual failure density is more than 0.04 (or more than 4 cases will fail in 100 test runs).
  • The ABT team must make tradeoffs between

confidence level vs. failure density given that the cost

of running certain number of test cases.

8

Test Cases Required vs. Failure Rate for

Different Confidence Levels

0

100

200

300

400

500

600

700

800

0.01 0.02 0.05 0.08 0.1 0.13 0.15 0.18 0. Falilure Rate(B)

Number of Test Cases

C=0. C=0. C=0. C=0. C=0. C=0. C=0. C=0. C=0. C=0. C=0. C=0. C=0. C=0.

9

Test Cases Required vs. Failure Rate for

Different Confidence Levels (Table)

10

ABT Top-Down Process

  • Determine the number of test cases needed
    • Once the desired confidence level ( C ) and the target failure density ( B ) are determined, use the formula C= 1 - (1-B)N^ to determine the number of test cases ( N ) needed.
    • For example, if desired confidence level is 0.95 , and the target failure rate 0.05 , we need 58 test cases, because 0.95 = 1 - (1- 0.05)N^ , N needs to be 58. The computation can be done using Microsoft’s Excel or calculators. The previous figure and table can be handy too.
    • In this top-down process, at each level, we need 58 test cases to certify that the target software achieved 0.95 confidence with 0. failure density.

13

ABT Top-Down Process

• Random Generation/Selection

  • Random constraints
    • Some test case execution sequences must direct the system to a desired state.
    • Not all the parameters of a test cases can be randomly generated each time.
    • Boundary and partition constraints can be considered to make sure the desire output state of the test case can be predicted.

14

ABT Bottom-Up Process

• Overview

  • Introducing major steps in the bottom-up ABT process.

This process assumes that testing tasks have not yet

been completed.

  • Starts at the module level and works up to integrated

sub-systems, systems and finally end-to-end testing.

  • Use a small example to illustrate the process.
    • This example is completed with code and actual test cases
    • Key component in the testing process is the generation of independent and random test cases

15

ABT Bottom-Up Process

  • Determine the required confidence level and the target failure density
  • Determine the number of test cases needed to pass the ABT at each level
  • Begin from the individual module in the system
    • select or create the test cases required for testing the module
    • Create stubs and drivers as required to test the module
    • Run the test cases and collect test results
    • If the software successfully passes all the test cases, the module is certified to achieved the desired confidence level with the target failure density.
    • Otherwise, it fails. Determine the faults , fix them and retest using the same process till the module passes all the test cases.
  • Once all the modules in a sub-system have passed the testing proceed to the next level. Test the sub-system as a whole using the same ABT process.
  • Proceed in this fashion till integration and end-to-end testing are completed.

16

ABT Bottom-Up Process

• Confidence Level and Threshold Failure Rate

  • The number of test cases needed critically depends on

the desired confidence level and threshold failure rate

acceptable for the unit

  • higher the confidence level => more test cases
  • lower failure density => more test cases
  • For those units that perform critical functions of the

system, we need high confidence level with low failure

density

  • Well-reasoned judgements must be made when fixing

the desired confidence level and target failure rate.

19

ABT Bottom-Up Process

• Test Cases Generation and Selection

– Test cases must be randomly generated/selected

for the ABT.

– The test cases used must be independent of

each other.

– The number of test cases must be large enough

to achieve the desired confidence level.

– Randomness and Independence of test cases

are two important aspects for consideration.

20

References

• [1] M. Dyer, The Cleanroom Approach to Quality Software Development , Wiley,

New York, New York, 1992. http://www.cleansoft.com/cleansoft_overview.html

  • [2] W. E. Howden, “Good Enough versus High Assurance Software Testing and Analysis Methods”, in Proceedings of IEEE High Assurance Systems Engineering Conference,1998 , pp. 166-175.
  • [3] A. K. Onoma, W. T. Tsai, M. Poonawala and H. Suganuma, “Regression Testing in an Industrial Environment”, Communications of ACM, April 1998.
  • [4] M. Poonawala, S. Subramanian, W.T. Tsai, R. Vishnuvajalla, R. Mojdehbakhsh and L. Elliott, "Testing Safety -Critical Systems - A Reuse-Oriented Approach", International Conference on Software Engineering and Knowledge Engineering, June 1997, pp. 271-278.
  • [5] W. T. Tsai, R. Mojdehbakhsh, and F. Zhu, "Ensuring System and Software Reliability in Safety-Critical Applications", Proc. of First IEEE Application-Specific Systems and Software Engineering Technology, 1998. http://asusrl.eas.asu.edu/papers/REA-asset98.htm
  • [6] S. Yau, J. S.Collofello and t. MacGregor, “Ripple Effect Analysis of Software Maintenance”, Proc.of IEEE COMPSAC, 1978, pp. 60-65.
  • ABT Website, http://selab1.cs.umn.edu/abt