Sunday, 24 April 2016

BVT Test Cases & Table

Test cases

                                                              BVA on Steps Inputs

     Test case 1 - Expected outcome - Error Msg: Invalid input (# steps must > 1),Prompt user
                          Actual outcome     -The program as seen above fails to prompt the user for a valid                                                                  input which would be values between 2 and 120. 
                          

     
     Test case 2 - Expected outcome - valid output 
                           Actual outcome    - valid output



    Test case 3 - Expected outcome - valid output 
                         Actual outcome    - valid output 

x

      Test case 4 - Expected outcome - valid output
                           Actual outcome    - valid output 

     
       Test case 5 - Expected outcome - valid output 
                           Actual outcome    - valid output 



     Test case 6 -  Expected outcome - Error Msg: Invalid input (1 < #steps < 121),Prompt user.
                           Actual outcome    - The program accepts 121 steps and calculates the largest                                                                           difference as seen above.



BVA on Location Inputs



     Test case 7 -  Expected outcome - Error Msg: Invalid input (# steps must > 1),Prompt user
                           Actual outcome    - The program should not accept values < 1 but as seen above it                                                                outputs a value.



     Test case 8 - Expected outcome - Error Message: Invalid Input (must be greater than previous), Prompt User
                           Actual outcome    - outputs a value



     Test case 9- Expected outcome - valid output
                           Actual outcome    - valid output




     Test case 10 -  Expected outcome - valid output
                           Actual outcome    -  valid output

     

      Test case 11 - Expected outcome - valid output
                           Actual outcome    - valid output



     Test case 12 -  Expected outcome - Error Message: Invalid Input (must be greater than previous), Prompt User
                           Actual outcome    - The program outputs a value ignoring the repeated no.



BVT Table


Test cases
Steps
Locations
Expected output
Boundary values on steps Robustness Test case - test case 1
1
1
-
Error Msg: Invalid input (# steps must > 1),
Prompt user
2
2
2, 5
Valid output - 5
3
3
12, 6, 15
Valid output - 5
4
60
115, 151,195......
Valid output
5
120
7,10,15…………
Valid output
6
121
15,19,35............
Please re-enter a valid input
Boundary values on locations, Robustness Test case - test case 14
7
2
-1, 2
Error Message: Invalid Input (must be positive), Prompt User
8
3
2, , 5 - below min
Error Message: Invalid Input (must be greater than previous)
9
3
2, 3, 6 - min
Valid output
10
3
2,  4, 6   - nominal
Valid output
11
3
2,  5, 6   - just below max
Valid output
13
3
2,  5, 6   - max
Valid output
14
3
2,  6, 6   - above max
Error Message: Invalid Input (must be greater than previous)
  • I first did the boundary values tests on the steps input then the location inputs
  •  According to the project specification the safety officer is only interested in the gaps between the steps and so is not interested in the height of the first step from the ground. Therefore the first location value doesn't require any boundary value tests. 
  •  Boundary values for the subsequent values is evaluated using min, above min, nominal, max, above val.