You are on page 1of 4

Test 1: Run the program

[Menu display]
4
You need to create an object

Test 2: Continue the program


[Menu display]
1
Enter the value:
-1
The value must be greater than 0
The value is invalid
1
Enter the creator:
<Enter>
The creator is not empty
The creator is invalid
Mr.Nam
Enter the height:
-1
The height must be greater than 0
The height is invalid
1
Enter the material:
<Enter>
The material is not empty
The material is invalid
Sand
[Menu display]
4
The value is: 1
The creator is: Mr.Nam
The height is: 1
The material is: Sand

Test 3: Continue the program


[Menu display]
2
Enter the value:
-1
The value must be greater than 0
The value is invalid
1
Enter the creator:
<Enter>
The creator is not empty
The creator is invalid
Mr.Nam
Enter the weight:
-1
The weight must be greater than 0
The weight is invalid
1
Enter the colour:
<Enter>
The colour is not empty
The colour is invalid
Red
[Menu display]
4
The value is: 1
The creator is: Mr.Nam
The weight is: 1
The colour is: Red

Test 4: Continue the program


[Menu display]
3
Enter the value:
-1
The value must be greater than 0
The value is invalid
1
Enter the creator:
<Enter>
The creator is not empty
The creator is invalid
Mr.Nam
Enter the height:
-1
The height must be greater than 0
The height is invalid
1
Enter the width:
-1
The width must be greater than 0
The width is invalid
1
Enter the isWatercolour:
aaaaaaaa
The isWatercolour must be True or False (1 or 0)
The isWatercolour is invalid
1
Enter the isFramed:
<Enter>
The isFramed must be True or False (1 or 0)
The isFramed is invalid
0
[Menu display]
4
The value is: 1
The creator is: Mr.Nam
The height is: 1
The width is: 1
The isWatercolour is: True
The isFramed is: False

Test 5: Continue the program


[Menu display]
5
[Exit program]

You might also like