Exam 1 Review - PowerPoint PPT Presentation

1 / 28
About This Presentation
Title:

Exam 1 Review

Description:

Grady & Van Slack, Key Lessons in Achieving Widespread Inspection Use ... 'As many homeowners know, removing wall paper...is not easy, but it is almost ... – PowerPoint PPT presentation

Number of Views:51
Avg rating:3.0/5.0
Slides: 29
Provided by: mcat
Learn more at: https://www.cise.ufl.edu
Category:
Tags: exam | paper | review | wall

less

Transcript and Presenter's Notes

Title: Exam 1 Review


1
Exam 1 Review
Software Testing and Verification Lecture 15
  • Prepared by
  • Stephen M. Thebaut, Ph.D.
  • University of Florida

2
Coverage
  • Lectures 1-14
  • Readings 1-6
  • Myers, The Art of Software Testing
  • Kit, Software Testing in the Real World
  • Gause Weinberg, Making Meetings Work
  • Fagan, Design and Code Inspections
  • Grady Van Slack, Key Lessons in Achieving
    Widespread Inspection Use
  • Sauer, et al., The Effectiveness of Software
    Development Technical Reviews

3
Coverage (contd)
  • Black-Box Testing Case Study
  • Problem Sets 1-4
  • Topics
  • Intro to VV Techniques and Principles
  • Requirements and Specifications
  • Black-Box Test Case Design Strategies
  • White-Box Test Case Design Strategies
  • Integration and Higher Level Testing

4
Coverage (contd)
  • Topics (contd)
  • Testing Object-Oriented Software
  • Reviews and Inspections
  • Testing Tools

5
Other Resources
  • Practice Exams
  • Lesson Plans (including Self-Check Quiz
    Questions)

6
Ground Rules and Format
  • You will have 90 minutes to complete the exam.
  • No notes, books, calculators, or PDAs are
    allowed.
  • All answers should be given in the spaces
    provided on the exam only.

7
Ground Rules and Format (contd)
  • Question format may be short answer, matching,
    true/false, fill-in-the-blank, proofs, etc.
  • The point-value of each question will be given.

8
Exam Procedures for EDGE Students
  • Proctors should schedule a single exam time
    during normal working hours for all students at
    each site. If this is not possible, exams may be
    scheduled outside normal working hours (e.g., in
    the evening).
  • Exams are made available to proctors the same day
    they are administered to on-campus students.
  • Proctors should return ORIGINAL exams directly to
    the instructor, preferably via overnight delivery.

9
Sample Problems
  • (4 pts.) According to Grady Van Slack ("Key
    Lessons in Achieving Widespread Inspection Use"),
    a Chief Moderator "owns" the inspection process
    within his/her organization. What specific
    responsibilities do Grady Van Slack identify as
    being associated with this "ownership"?

10
Sample Problems (contd)
  • (3 pts.) Even unimpaired, conscientious testers
    who visually compare actual with expected test
    results have a tendency to overlook differences.
    (This is especially true when testing in the the
    Spring!) Briefly explain why this is so. What
    specific techniques were discussed in class for
    countering this tendency?

11
Sample Problems (contd)
  • (4 pts.) In addition to the "top-down" and
    "bottom-up" incremental integration testing
    approaches, 3 "hybrid" approaches were discussed
    in class. Describe 2 of these.

12
Sample Problems (contd)
  • Consider the following subroutine and its control
    flow graph. (not shown)
  • (5 pts.) List all the Def-C-Use pairs for
    variable "B".
  • (5 pts.) List all the Def-P-Use pairs for
    variable "A".
  • (2 pts.) How many paths are associated with the
    Def-C-Use pair (1,4) for variable A?

13
Sample Problems (contd)
  • (contd)
  • (3 pts.) How many of these are du-paths?
  • (3 pts.) Consider a test case with execution path
    lt0,1,2,3,4gt. Circle all of the following coverage
    criteria (not shown) that would be met by
    executing this test case

14
Sample Problems (contd)
  • (contd)
  • (3 pts.) Consider a 2nd test case with execution
    path lt0,2,3,3,4gt. Circle all of the following
    coverage criteria (not shown) that would be met
    by executing BOTH test cases
  • (10 pts.) Give the path condition for path
    lt0,2,3,3,3,4gt in terms of the initial symbolic
    values of A and B for this subroutine. Show ALL
    path condition conjuncts.

15
Sample Problems (contd)
  • (5 pts.) Indicate True or False for each of the
    following statements related to Equivalence
    Partitioning.
  • The technique is also known as output space
    partitioning.
  • When dealing with complex, multiple-input
    problems, a means for identi-fying appropriate
    COMBINATIONS OF EQUIVALENCE CLASSES is necessary
    to partition the input space.

16
Sample Problems (contd)
  • (contd)
  • Cause-Effect Analysis can be viewed as a logical
    extension of Equivalence Partitioning.
  • The specification fragment, "HOURS will range in
    value from 0 to 40 for HOURS lt 20, output
    'Low' for HOURS gt 20, output 'HIGH'," (where
    HOURS is a program input) suggests ONE valid and
    possibly ONE or TWO invalid equivalence classes.

17
Sample Problems (contd)
  • (contd)
  • The technique is predicated on the assumption
    that every element of an equivalence class causes
    the same program path to be executed.

18
Sample Problems (contd)
  • Consider the following Cause-Effect graph
    fragment (not shown)
  • (3 pts.) How many test cases would be required to
    achieve AFCCV (all feasible combinations of Cause
    values) coverage for this model?
  • (2 pts.) How many test cases would be required to
    achieve AEMC (all effects covered with the
    minimum number of test cases) coverage?

19
Sample Problems (contd)
  • (contd)
  • (8 pts.) How many test cases would be required to
    cover all feasible combinations of Causes that,
    based on the graph, will result in Effect E1
    being true? In effect E3 being true?
  • (4 pts.) How many test cases would be required to
    cover all feasible combinations of Causes that,
    based on the graph, will result in Effect E1
    being true, SUBJECT TO THE CULLING RULES
    considered in class? In effect E3 being true?

20
Sample Problems (contd)
  • Recall the specification of pow(x,y), which
    computes the value of x raised to the power y,
    xy, from the Black-Box Testing Case Study.
  • (3 pts.) It was noted that xy really MEANS (or
    represents) different functions depending on the
    input "region" (point, line, etc.) in the x,y
    plane. If y is an integer lt -1 and x is a
    non-zero number, what "function" does xy
    represent?

21
Sample Problems (contd)
  • (4 pts.) What should pow(x,y) return if the
    mathematical value of xy is greater than zero
    but less than TINY_VAL? What should the MATHERR
    function set errno to in this case?
  • (4 pts.) Under what circumstances would a call to
    pow(x,y) result in MATHERR setting errno to
    OVERFLOW? Be specific.

22
Sample Problems (contd)
  • (3 pts.) Glenford Myers ("The Psychology and
    Economics of Program Testing") argues that the
    most important considerations in software testing
    are issues of psychology, and he identifies a set
    of testing principles or guidelines in this vein.
    The justification for one of these is expressed
    via the following analogy

23
Sample Problems (contd)
  • "As many homeowners know, removing wall
    paper...is not easy, but it is almost unbearably
    depressing if you, rather than someone else,
    originally installed it."
  • What principle or guideline was he justifying?

24
Sample Problems (contd)
  • (9 pts.) Give the TFT path condition for the
    program fragment below (not shown) in terms of
    the initial symbolic values of A and B. CLEARLY
    ILLUSTRATE THE USE OF SYMBOLIC EVALUATION IN YOUR
    SOLUTION.
  • (10 pts.) Using the program fragment below (not
    shown), PROVE that All- Uses coverage and
    Condition coverage are independent.

25
Sample Problems (contd)
  • (9 pts.) Match the descriptions below to the
    single most appropriate of the following testing
    related terms.
  • integration testing
  • system level test
  • system test acceptance testing
  • functional testing
  • gray-box testing
  • acceptance testing
  • Alpha testing
  • structural testing
  • causal analysis
  • unit level test
  • benchmarking
  • component level test
  • regression testing
  • product level test
  • post-test analysis
  • Beta testing

26
Sample Problems (contd)
  • __ testing conducted to ensure that a system is
    "ready" for the system-level test phase
  • __ testing undertaken by end-users within the
    user environment prior to general release
  • __ techniques include Boundary Value Analysis
    and Intuition and Experience
  • __ general practice of recording and comparing
    indices of performance, quality, cost, etc.
  • __ testing undertaken as units are combined to
    form components

27
Sample Problems (contd)
  • __ identifying the sources of errors and
    approaches to eliminate future occurrences
  • __ reviewing the results of a testing activity
    with the intent to improve its effectiveness
  • __ techniques include Boundary Value Analysis
    and Fault-Based testing
  • __ end-user testing undertaken within the
    development environment prior to general release

28
Exam 1 Review
Software Testing and Verification Lecture 15
  • Prepared by
  • Stephen M. Thebaut, Ph.D.
  • University of Florida
Write a Comment
User Comments (0)
About PowerShow.com