Test case design - Scene method (basic path method) (5)

First, what is the scene law?

Scene traffic flow is usually divided into elementary stream, stream Alternatively, the abnormal flow

The basic flow: Basic flow representation through business process inputs are correct, can achieve the goal of the process. (Card - "to enter the correct password -" enter the amount - "withdrawal -" take the card)

Alternate flow: Alternative represents the input stream through the business process error (or operational error) led to repeated processes exist, but after a correction could meet to achieve the target process (Card -> enter the wrong password - "input. the correct password - "enter the amount -" withdrawal - "take the card)

Exception flow: Exception indicates an abnormal termination of a process stream input error through the business process (or operating error) (Card -> 3 times the wrong password input - "Tunka) 

A process desired by the user: the single degree, a degree of unique. Each process contains a process node never walked.

Second, why does the law scene design test cases?

Most business management software by the background (for example: user management, role management, rights management, and so on a variety of management) composed of several parts and workflow . End users expect the software to achieve business needs, rather than a simple combination of functions. For single-point function using equivalence classes, boundary value, determination table can solve most of the problems with the design method of Example. Software system according to business processes, using suitable methods scene.

Advantages: relates to the business process of the business requirements for the scene by Method

Disadvantages: only validates the business process, not a single point authentication function, generally by first using the first equivalence class, the boundary value, an error inference, decision tables, etc. The method for single-point authentication function, verified by use of business processes after the scene Method verification.

Third, scene design method step of the test case?

Step a: understand the needs, business process is determined (basic process, the alternative process, abnormal process)

Step two: flow diagrams, flow path again confirmed

Step Three: The business flowchart extraction test path (each path need not contain a path traveled too)

Step Four: refinement path, using the method of equivalence class refinement path boundary value extracting test

Fourth, the test sample scenario design method

Example one:

demand:

flow chart:

测试用例:(根据流程图抽取路径时最好从最后一个判定条件抽取)

1-》2-》3-》4-》5-》6-》7:进入发送子程序,有空闲缓冲写入空闲缓冲,写入成功启动发送命令,发送消息成功。

1-》2-》8-》10:进入发送子程序,无空闲缓冲发送失败消息。

1-》2-》3-》4-》9-》10:进入发送子程序,有空闲缓冲区,写入空闲缓冲区,写入失败发送失败消息。

转:https://www.cnblogs.com/yangyangchunchun/p/9004196.html

Guess you like

Origin blog.csdn.net/qq_39247153/article/details/88551765