Test case (four) - decision table method

Purchase order check:

Rules:
Ⅰ. If the amount is greater than 500 yuan and has not expired, an approval slip and bill of lading will be issued.
Ⅱ. If the amount is greater than 500 yuan but expired, the approval form and bill of lading will not be issued.
Ⅲ. If the amount is less than or equal to 500 yuan, an approval note and bill of lading will be issued no matter whether it is expired or not.
Ⅳ. In the case of overdue, a notice must be issued regardless of the amount.

1. Clarify requirements:
rules for purchase order inspection.

2. Draw the judgment table:

Through analysis, it is concluded that there are two conditions for this case: whether the amount is greater than 500, and whether it is expired, so there are a total of 4 situations.

Judgment table
3. Extract data and write test cases:

test case

Guess you like

Origin blog.csdn.net/qq_48826058/article/details/124279489