lecture3_2up

lecture3_2up - Object-Oriented Software Engineering...

Info iconThis preview shows pages 1–14. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Object-Oriented Software Engineering Practical Software Development using UML and Java Chapter 10: Testing and Inspecting to Ensure High Quality Lecture 3 January 02, 2009 Functional testing 77 Errors and failure Inputs Outputs Error revealing inputs cause failures Erroneous outputs indicate failures Program January 02, 2009 Functional testing 85 Functional testing Learning objectives What is functional testing? How to perform functional testing? What are clues, test requirements, and test specifications? How to generate test inputs? What are equivalence partitioning, boundary value testing, domain testing, state testing, and decision table testing? January 02, 2009 Functional testing 86 What is functional testing? When test inputs are generated using program specifications, we say that we are doing functional testing. Functional testing tests how well a program meets the functionality requirements. January 02, 2009 Functional testing 87 The methodology The derivation of test inputs is based on program specifications. Clues are obtained from the specifications. Clues lead to test requirements. Test requirements lead to test specifications. Test specifications are then used to actually execute the program under test. January 02, 2009 Functional testing 88 Specifications-continued Two types of pre-conditions are considered: Validated: those that are required to be validated by the program under test and an error action is required to be performed if the condition is not true. Assumed: those that are assumed to be true and not checked by the program under test. January 02, 2009 Functional testing 89 Preconditions for sort January 02, 2009 Functional testing 89 Preconditions for sort Validated: N>0 On failure return -1; sorting considered unsuccessful. Assumed: The input sequence contains N integers. The output area has space for at least N integers. January 02, 2009 Functional testing 90 Post-conditions A post-condition specifies a property of the output of a program. The general format of a post-condition is: if condition then effect-1 { else effect-2} Example: For the sort program a post-condition is: if N>0 then {the output sequence has the same elements as in the input sequence and in ascending order.} January 02, 2009 Functional testing 91 Incompleteness of specifications Specifications may be incomplete or ambiguous. Example post-condition: if user places cursor on the name field then read a string This post-condition does not specify any limit on the length of the input string hence is incomplete. January 02, 2009 Functional testing 92 Ambiguous specifications It also does not make it clear as to whether a string should be input only after the user has placed the cursor on the name field and clicked the mouse or simply placed the cursor on the name field....
View Full Document

Page1 / 71

lecture3_2up - Object-Oriented Software Engineering...

This preview shows document pages 1 - 14. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online