[Original] "function diagram" Method for Test Case Design

Source: Internet
Author: User

[Original] "function diagram" Method for Test Case Design

Function diagram:

The functional diagram method is actually a gray-box test (because it has both black and white-box tests, it is called the gray-box measure more considerate) case design method; generally, the function description of a program is composed of dynamic description and static description. it dynamically describes the order of input data or the order of transfer. static description describes the correspondence between input and output conditions. displays Functional Descriptions of a program in a graphical form, and mechanically creates a test case with the ability to map data.

Composition of program function description

Dynamic Description: Describes the order or transfer order of input data.

Static description: Describes the correspondence between input and output conditions.

Function Diagram:

A status migration diagram consists of a State migration diagram and a Boolean function. A State Migration diagram is represented by state and migration. A State indicates the location (or time) of the data input. A migration indicates a change in the State. It also depends on the logic function indicated by the discriminant table or causal indicator.

Function diagram Overview

Displays Functional Descriptions of a program in a graphical form, and mechanically creates a test case with the ability to map data.

The function diagram model consists of the State Migration diagram and the logic function model.

Status migration Diagram: Indicates the input data sequence and corresponding output data. The output data and subsequent status are determined by the input data and the current status.

Logical Function Model: Indicates the ing between input and output conditions in the status. The output data is determined by the input data. This model is only applicable to static descriptions.

Function diagram test cases are composed of a series of States passed in the test and must depend on inputs in each State./A pair of conditions in full output data

Function plot test case generation method:

Select Test cases from the State Migration diagram, replace the State with nodes, and replace the State with an arc to migrate. The state diagram can be converted into a control flow chart of a program.

Test Case Generation rules

To combine the test cases of State Migration (test path) with the test cases of the Logical Model (local test case), a functional diagram is used to generate practical test cases, in a structured State Migration (SST), define three forms of loops: Order, selection, and repetition.

Procedure

1Generate a local test case: Generate a local test case from the reason in each status. A local test case consists of a combination of cause values (input data) and corresponding result values (output data or status ).

Test Path Generation: Use the above rules to generate the test path from the initial status to the final status

2Test Case Synthesis: Merge the test path and the local test cases of each status in the function diagram. The result is a sequence of States from the initial state to the final state, and a combination of input data and corresponding output data in each State.

3Test Case merging algorithm:Construct a tree using Conditions


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.