9 Test Case
9 Test Case
Chapter 5: TESTING
What is testing
Software testing is defined as an activity to check whether the actual results match the
expected results and to ensure that the software system is Defect free. It involves execution
of a software component or system component to evaluate one or more properties of interest.
Software testing also helps to identify errors, gaps or missing requirements in contrary to
the actual requirements. It can be either done manually or using automated tools. Some prefer
saying Software testing as a White Box and Black Box Testing.
Types of Testing
1. Unit Testing
It focuses on smallest unit of software design. In this we test an individual unit or group
of inter related units.It is often done by programmer by using sample input and observing its
corresponding outputs.
2. Integration Testing
The objective is to take unit tested components and build a program structure that has
been dictated by design.Integration testing is testing in which a group of components are
combined to produce output.
3. Regression Testing
Every time new module is added leads to changes in program. This type of testing make
sure that whole component works properly even after adding components to the complete
program.
47
TEST CASES
4. Smoke Testing
This test is done to make sure that software under testing is ready or stable for further
testing
It is called smoke test as testing initial pass is done to check if it did not catch the fire or
smoked in the initial switch on.
5. Alpha Testing
This is a type of validation testing.It is a type of acceptance testing which is done before
the product is released to customers. It is typically done by QA people.
6. System Testing
In this software is tested such that it works fine for different operating system.It is
covered under the black box testing technique. In this we just focus on required input and
output without focusing on internal working. In this we have security testing, recovery
testing , stress testing and performance testing
48
TEST CASES
Test Case ID Test case name Expected Result Actual Result Pass/Fail
TC-001 Verify that login Login has Login has username Pass
has username username and and password field
and password password field
field
TC-002 Verify that not Empty field should Empty field gives Pass
filling the fields give error error that please fill
will give a error all inputs
message
TC-003 Verify that all All input field has Username input Pass
input field has proper place holder field has placeholder
proper like username input username and
placeholder field has username password field hass
password placholder
TC-004 Verify that Empty username Empty username Pass
empty username should give error gives error message
gives error message
message
49
TEST CASES
50
TEST CASES
51