Study Diary on March 18, 2021

3.18 Review of learning

Today I learned the boundary value method, scenario design method and decision table method of test cases.

1. Boundary value method of test cases

  1. Concept: A
    large number of faults often occur on the boundary of the input domain or output value domain, rather than inside it. Therefore, designing test cases for various boundary conditions usually achieves good test results.
  2. Example:
    Enter 6 digits, and the date is from January 1990 to December 2049.
    Then the boundary values ​​of the year are: 1989, 1990, 1991, 2048, 2049, 2050.
    The boundary values ​​of the month are: 00, 01, 01, 11, 12, 13.

Second, the scenario design method of test cases

  1. Concept: The
    scenario method generally includes elementary streams and alternate streams. Starting from a process, the process is determined by describing the path passed, and the entire scenario is completed by traversing all the elementary streams and alternate streams.
    (1) The basic flow is the simplest path through the use case. The software function implements a correct flow according to the correct event flow.
    (2) The backup flow is the process of failure or defect. An alternative flow may start from the basic flow. Execute under a certain condition and then rejoin the basic flow. It may also originate from another alternative flow, or terminate the use case without rejoining a flow.
    The difference between basic flow and alternative flow
  2. Design steps:
    (1) Describe the basic flow of the program and each alternative flow according to the requirements description
    (2) Generate different scenarios based on the basic flow and the alternative flow
    (3) Produce corresponding test cases for each scenario
    (4) ) Re-review all test cases, remove some redundant and unlikely occurrences in the actual business, after the test cases are determined, determine the test data value for each test case
  3. Case:
    Insert picture description here
    Insert picture description here
    Insert picture description here
    Insert picture description here
    Insert picture description here

3. Judgment table method for test cases

  1. Concept:
    Among all black box testing methods, the test based on the decision table (also called the decision table) is the most rigorous and logical test method. The decision table is a tool for analyzing and expressing the execution of different operations under multiple logic conditions. It has the advantage of being able to list all complex problems according to various possible situations, concise and avoid omissions. Therefore, the use of the decision table can design a complete set of test cases.
  2. Steps:
    (1) List all the condition stakes and action stakes
    (2) Determine the number of rules. The judgment table with n conditions has 2n rules (each condition takes true and false values)
    (3) Fill in the condition item
    (4) Fill in the action item, get the initial judgment table
    (5) Simplify the judgment table, merge similar rules . If there are two or more rules in the table with the same action, and there is a very similar relationship between the condition items, they can be merged. The merged condition item is represented by the symbol "-", indicating that the executed action has nothing to do with the value of the condition, which is called an irrelevant condition
  3. Case:
    Insert picture description here
    Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_56039103/article/details/114988383