About Boundary Value Analysis
Boundary value analysis is a technique for analyzing the boundaries of continuous values and creating test cases for the boundary values. For more information on boundary value analysis, please check this document.
About Boundary Value Analysis in GIHOZ
Number line area : A number line is created for each variable when you add a variable.
Equivalence partition list : The equivalence partition for each variable is created on a list.
Generated results : The each test case for equivalence partitioning and boundary value analysis is displayed.
Download CSV button : By clicking, each test case for equivalence partitioning and boundary value analysis can be downloaded in CSV format.
How to add a variable
Click Add a variable if you need to add a variable.
You can add a variable in the number line area by the dialog. You can also set a maximum value, a minimum value and the smallest significant distance in the dialog. You can modify the smallest significant distance for the distance of boundary by entering a number which is greater than zero. You can limit the number line by entering a maximum value and a minimum value.
The way to create a boundary and input method
When you move the mouse cursor on the number line after adding a variable, click Add a boundary to move to the dialog to add a boundary when it displays. You can add a boundary on the dialog by setting a number and range.
Select from greater than or equal to, greater than, less than or equal to OR less than as a range.
Here is the actions after all is set.
- greater than or equal to / less than : the background of specified numbers turns blue , the background of the number which is subtracted by the smallest significant distance from the specified number turns white.
- greater than / less than or equal to : the background of specified numbers turns blue, the background of the number which is added by the smallest significant distance from the specified number turns white.
How to edit number lines
You can delete a boundary by using right-click boundary that you would like to delete and selecting Delete boundary.
You can edit the name of equivalence partition if you click New equivalence partition.
If you right-click on the name of equivalence partition, you can toggle enable/disable of equivalence partition. If you make the equivalence partition disable, the background of number line turns grey color. The selection of enable/disable will be reflected in the equivalence partition lists and test cases.
About Equivalence Partition Lists
You can see the list after you click Show equivalence partition lists.
The equivalence partition list consists of the arbitrary valid value, range of value, whether valid or invalid of the equivalence partition. The only column of arbitrary valid value is editable and editing the arbitrary valid value directly reflects to the test case. If you edited the number line, click Update equivalence partition lists after displaying the equivalence partition list.
How to generate test cases
If you click Generate test cases, you can generate the test cases after displaying the equivalence partition list. If you edited the number line or the equivalence partition list after generating the test cases, click Update test cases.
The test cases for the equivalence partitioning and boundary value analysis are generated, and input, the judgement of Whether valid or invalid, aim of the test case and the expected output come up as columns. The blank cell is editable if you click or double-click cell and type in it. The test cases for equivalence partitioning and boundary value analysis can be downloaded as CSV files by clicking Download CSV above each test case.