Sunteți pe pagina 1din 5

TEST CASES

Chapter 5: TESTING

5.1 Types of 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

5.2 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

TC-005 Verify if Username and Incorrect Username Pass


Username and password when and Password gives
Password is entered should give message that
entered incorrect message incorrect username and
username and password is
password incorrect

Table 5.2.1 Login

49
TEST CASES

Test Case ID Test case name Expected Actual Result Pass/Fail


Result
TC-001 Verify that Add Add product Add product Pass
Product has all should have has barcode,
required and barcode, product product name,
necessary input name, product product
fields description , description ,
date and time as date and time as
input fields input fields
TC-002 Verify empty Empty input Empty input Pass
input field gives fields gives error fields gives error
error that please enter
all inputs
TC-003 Verify on scan On scan button On scan button Pass
button click scanner should scanner opens
scanner is open
opened
TC-004 Verify on save On save button On save button Pass
button all input data should be data be added
data is entered added into into database
into database database

Table 5.2.2 Add Product

50
TEST CASES

Test Case ID Test case name Expected Actual Result Pass/Fail


Result
TC-001 Verify that sell Sell Product Sell product Pass
Product has all should have has barcode,
required and barcode, product product name,
necessary input name, product product
fields description , description ,
date and time as date and time as
input fields input fields
TC-002 Verify empty Empty input Empty input Pass
input field gives fields gives error fields gives error
error that please enter
all inputs
TC-003 Verify on “+” On “+” and “-” On “+” and “-” Pass
and “-” button button click button click
click quantity quantity should quantity increase
should increase increase or or decrease
or decrease decrease respectively
respectively respectively
TC-004 Verify on save On save button On save button Pass
button all input data should be data be added
data is entered added into into database
into database database

Table 5.2.3 Sell Product

51

S-ar putea să vă placă și