About Decision Table Testing
Decision table testing is a technique for creating test cases by organizing combinations of input conditions and corresponding output results using decision tables, which are useful for organizing complex decision logic. For more information on decision table testing, please check this document.
About Decision Table in GIHOZ
- Conditions: Enumerate values for conditions.
- Actions: Enumerate behavior of the system under test.
- Condition entries: Specify combinations of conditions by entering Y/N or values for conditions.
- Action entries: Specify each action that is performed under the combination of conditions by entering X or values.
5. Generate test cases button: Generate test cases from the decision table.
How to enter conditions
Select the cell next to the Conditions and enter any characters. Click + under the Conditions to add a row.
Click + on the cell next to the Conditions to add a column. You can add only one column when you have entered any characters in the first column of conditions.
How to enter actions
Select the cell next to the Actions and enter any characters. Click + under the Actions to add a row.
Click + on the cell next to the Actions to add a column. You can add only one column when you have entered any characters in the first column of actions.
How to enter entries
Double click cell and select Y, N or X from the pull-down menu. You can also enter any characters in the cell.
Click + next to the number of the entry to add a column.
How to generate combinations of conditions
Generate combinations
You can generate combinations of conditions automatically by clicking Generate combinations. The maximum number of combinations is 1024.
The above progress bar will be displayed during generating combinations, so please wait until it is complete.
When completed, the information entered in the condition entries section will be overwritten and the automatically generated combinations will be displayed. The information entered in the action entries section will be cleared.
If you have entered conditions in the single column, all Y/N combinations will be generated. If you have entered conditions in the multiple columns, the combinations will be generated to cover those columns.
Generate combinations with selected conditions
You can display a dialog by clicking Generate combinations with selected cond.
Select the conditions you want to generate combinations, then click Generate combinations to generate combinations of the selected conditions. Even if you have entered conditions in multi columns, you can only select conditions at the first column.
The above progress bar will be displayed during generating combinations, so please wait until it is complete.
When completed, the information entered in the condition entries section will be overwritten and the combinations of the selected conditions will be displayed.
How to generate test cases
To generate test cases from the decision table, click Generate test cases.
The generated test cases will be displayed and you can edit them. You can download the test cases as a CSV file by clicking Download CSV.
Other operations
The right-click menu differs between the conditions or the actions and the entries. Right click the conditions or the actions to add or delete a row, undo or redo entering characters, and add or delete comments. Right click the entries to add or delete a column, undo or redo entering characters, and add or delete comments.
To add a comment, select the desired cell and choose Add comment from the right-click menu. A blue mark appears in the upper right corner of a cell with a comment, and the comment is displayed when the cell is focused. Comments can be added to all cells except the first row (A, B, C...) and the third row (1, 2, 3...). Added comments can also be edited or deleted using the right-click menu. Comments added to the condition entries and action entries will be automatically deleted when generating combinations.
Click Enable/Disable checkbox if you toggle between valid and invalid of the entry. The invalid entry is grayed out.