1 StepsDecompose the functional specification into functional units150Characteristics of functional units149They can be tested independently149A toplevel user command150Or a function149 ID: 393153
Download Pdf The PPT/PDF document "partition MethodKey ideaMeth..." 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.
1 partition MethodKey ideaMethod for creating test suitesRole of test engineerAnalyze the system specificationWrite a series of formal test specificationsAutomatic generatorProduces test frames StepsDecompose the functional specification into functional unitsCharacteristics of functional unitsThey can be tested independentlyA top-level user commandOr a functionDecomposition may require several stagesSimilar to high-level decomposition done by software designersMay be reused, although independent decomposition is recommended 2 Examine each functional unitIdentify parametersExplicit input to the functional unitEnvironmental conditionsCharacteristics of the systems stateTest CasesSpecific values of parametersAnd environmental conditions StepsTest cases are chosen to maximize chances of finding errorsFor each parameter & environmental conditionFind categoriesMajor property or characteristicBrowsers, Operating Systems, array sizeFor each categoryFind choices»Examples: (IE 5.0, IE 4.5, Netscape 7.0), (Windows NT, Linux), (100, 0, - 3 Develop Formal Test Specification for each functional unitList of categoriesLists of choices within each categoryConstraints Automatically produces a set of test framesConsists of a set of choices An Example Command 4 Examples of Find Usage Analyzing the SpecsIndividual function that can be tested separatelyTwo parametersPattern characteristicsFrom specsEnclosed in quotes or notEmbedded blanks or notEmbedded quotes or notNot from specsQuoted must have blanks?Successive quotes? 5 Analyzing the Specs (2)Name is a parameterFile existsOr notFile properties are environmental characteristicsNumber of occurrences of pattern in fileNumber of occurrences of pattern in a lineMaximum line length in a file Test Specs - 6 Test Specs - Number of Test Frames 7 Contradictory RequirementsCan we even generate such a test case? [property A, B, ]A and B are property namesE.g., [property Empty]Selector expression[if A]E.g., [if Empty] 8 Adding Constraints Number of Test FramesCan we reduce them? 9 Adding [error] and [single] Number of Test Frames 10 Generating Test CasesUse a constraint solverChoose specific values that satisfy the constraints