/
partition Method•Key idea–Method for creating test suites partition Method•Key idea–Method for creating test suites

partition Method•Key idea–Method for creating test suites - PDF document

pasty-toler
pasty-toler . @pasty-toler
Follow
417 views
Uploaded On 2016-07-06

partition Method•Key idea–Method for creating test suites - PPT Presentation

1 StepsDecompose the functional specification into functional units150Characteristics of functional units149They can be tested independently149A toplevel user command150Or a function149 ID: 393153

1 StepsDecompose the functional specification into

Share:

Link:

Embed:

Download Presentation from below link

Download Pdf The PPT/PDF document "partition Method•Key idea–Meth..." is the property of its rightful owner. Permission is granted to download and print the materials on this web site for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.


Presentation Transcript

1 partition Method•Key idea–Method for creating test suites–Role of test engineer•Analyze the system specification•Write a series of formal test specifications–Automatic generator•Produces test frames StepsDecompose the functional specification into functional units–Characteristics of functional units•They can be tested independently•A top-level user command–Or a function•Decomposition may require several stages•Similar to high-level decomposition done by software designers–May be reused, although independent decomposition is recommended 2 Examine each functional unit–Identify parameters•Explicit input to the functional unit–Environmental conditions•Characteristics of the system’s state•Test Cases–Specific values of parameters–And environmental conditions Steps“Test cases are chosen to maximize chances of finding errors”•For each parameter & environmental conditionFind categories•Major property or characteristic•Browsers, Operating Systems, array size•For each category–Find choices»Examples: (IE 5.0, IE 4.5, Netscape 7.0), (Windows NT, Linux), (100, 0, - 3 Develop “Formal Test Specification” for each functional unit–List of categories–Lists of choices within each category•Constraints •Automatically produces a set of “test frames”–Consists of a set of choices An Example Command 4 Examples of Find Usage Analyzing the Specs•Individual function that can be tested separatelyTwo parameters–Pattern characteristics–From specs•Enclosed in quotes or not•Embedded blanks or not•Embedded quotes or not–Not from specs•Quoted must have blanks?•Successive quotes? 5 Analyzing the Specs (2)•Name is a parameter•File exists•Or not–File properties are environmental characteristicsNumber of occurrences of pattern in file•Number of occurrences of pattern in a line•Maximum line length in a file Test Specs - 6 Test Specs - Number of Test Frames• 7 Contradictory Requirements•Can we even generate such a test case? [property A, B, …]–A and B are property names–E.g., [property Empty]•Selector expression–[if A]–E.g., [if Empty] 8 Adding Constraints Number of Test Frames•Can we reduce them? 9 Adding [error] and [single] Number of Test Frames• 10 Generating Test Cases•Use a constraint solver•Choose specific values that satisfy the constraints