We have to generate the test cases for the above web page. Normally there are two types of testing. They are
i) White Box Testing
ii) Black Box Testing
Black Box Testing
In black box testing can help to get the design and coding correct with respect to the specification. Black box testing is mainly used to test the functionality and features of the system. In black box testing, there are two strategies followed as given below.
1) Boundary Value Analysis:
In the web page there are two text boxes, which has to enter no. of rows and no. of columns. We must enter both no. of columns and no. of rows for matrix. If we don’t given any of the two values then we don’t get the matrix.
Test Case | r1 | c1 | Expected Output |
1 | - | - | We get an error message |
2 | 10 | - | We get an error message |
3 | - | 11 | We get an error message |
4 | 10 | 11 | We get text boxes to enter matrix values |
In order to complete our aim of calculating the transpose of a matrix, we have to enter both no. of rows and no. of columns for the matrix.
Test Case | Input | Expected Output |
1 | Clicking Enter Button | Web page having text boxes |
2 | Clicking Cancel Button | We get message |
On successfully entering the no. of rows and no. of columns, when we click the Enter button we get the web page having the text boxes to enter the value of the matrix. When we click the Cancel button then we get a message.
If we enter both no. of rows and no. of columns then we get a web page of have text boxes of number equal to the no . of rows * no. of columns. In order to get the text boxes to enter values of the matrix we have to enter the both the no. of rows and no. of columns.
We have to enter the values in all the text boxes, then only the values are entered into matrix. Suppose we gave 2 * 2 matrix then we get 4 text boxes.
Test Case | T1 | T2 | T3 | T4 | Expected Output |
1 | - | - | - | - | Error Message |
2 | 3 | - | - | - | Error Message |
3 | - | 4 | - | - | Error Message |
4 | - | - | 7 | - | Error Message |
5 | - | - | - | 10 | Error Message |
6 | 11 | 10 | - | - | Error Message |
7 | 14 | 13 | 55 | - | Error Message |
8 | - | 12 | 11 | 10 | Error Message |
9 | 12 | 11 | - | 14 | Error Message |
10 | 14 | - | 15 | 16 | Error Message |
11 | - | - | 13 | 12 | Error Message |
12 | 10 | 11 | 12 | 13 | Transpose Matrix |
When we don’t enter the value into any text box, then we get a error message. On successfully entering into all text boxes we get the transpose of the give matrix, in the next web page
0 टिप्पणियाँ:
Post a Comment