In the last session, We had discussed about Test Cases, which is one of the Testing Terms, and In this session, We are going to discuss another Testing Term, which is Test Case Execution.
Let’s take an example of a Project, where developers are building or developing a calculator. A Calculator will have some functionalities like Addition, Subtraction, Multiplication and Division.
So, the First thing that we will do is, Write Test Scenarios.
Then we will write Test Cases
So, Below could be the Test Scenarios Example.
Test Scenarios Examples
Now, Let’s see the possible Test Cases for these Test Scenarios.
Test Scenario | Test Case |
---|---|
Add 2 Numbers | Adding 2 positive numbers and check the outcome |
Add 2 Numbers | Adding 1 positive number and 1 negative number where positive number is bigger than negative number and then check the outcome |
Add 2 Numbers | Adding 1 positive number and 1 negative number where negative number is bigger than positive number and then check the outcome |
Subtract 2 numbers | Subtract a small number from a big number |
Subtract 2 numbers | Subtract a big number from a small number |
Subtract 2 numbers | Subtract a positive and a negative number |
Multiply 2 numbers | Multiply a positive number and a negative number |
Multiply 2 numbers | Multiply two positive numbers |
Multiply 2 numbers | Multiply two negative numbers |
Now, We will execute these Test Cases.
Here is the Test Case Execution Example for the those Test Cases.
Test Scenario | Test Case | Test Data | Expected Result | Actual Result | Status | Defect No |
---|---|---|---|---|---|---|
Add 2 Numbers | Adding 2 positive numbers and check the outcome | 4+2 | 6 | 6 | Passed | NA |
Add 2 Numbers | Adding 1 positive number and 1 negative number where positive number is bigger than the negative number and check the outcome | 4+(-2) | 2 | 2 | Passed | NA |
Add 2 Numbers | Adding 1 positive number and 1 negative number where negative number is bigger than the positive number and check the outcome | 2+(-4) | -2 | 2 | Failed | 123 |
Subtract 2 numbers | Subtract a small number from a big number | 4-2 | 2 | 2 | Passed | NA |
Subtract 2 numbers | Subtract a big number from a small number | 2-4 | -2 | -2 | Passed | NA |
Subtract 2 numbers | Subtract a positive and a negative number | 4-(-2) | 6 | 2 | Failed | 124 |
Multiply 2 numbers | Multiply a positive number and a negative number | 4*(-2) | -8 | -8 | Passed | NA |
Multiply 2 numbers | Multiply two positive numbers | 4*2 | 8 | 8 | Passed | NA |
Multiply 2 numbers | Multiply two negative numbers | (-4)*(-2) | 8 | 8 | Passed | NA |
We have discussed below topics in this session.
Question for this session is, How will do Test Case Execution for Login Functionality in any Website.
Objects, Classes and Constructor in Javascript Classes and Objects A class in any programming language…
We will start from object oriented programming basics like What are different concepts in Object…
Why we can not over ride a Constructor This is a very important question, that,…
What is Arrow Function In the last session, We had discussed about Anonymous Function. Anonymous…
What is Anonymous Function Anonymous Function is a type of function which has no name…
What is Map, Reduce and Filter Map Filter and Reduce are higher order methods for…