Sei sulla pagina 1di 4

Online Shopping

3.4 TESTING STRATEGY

Software testing is a critical element of software quality


assurance and represent the ultimate review of the specification, design
and coding. Testing is a process of executing the program with intent of
finding an error. A good test case is one that has a high probability of
finding an as yet undiscovered error.

TEST CASE DESIGN:


BLACK BOX TESTING:

In Black box testing, the system is tested as a whole


without considering the internal process and their inputs and outputs.
Black box testings are used to demonstrate that software functions are
operational, that input is properly accepted and output is correctly
produced and that the integrity of external information is maintained.

WHITE BOX TESTING:

White box testing is a technique that is done to verify the


internal process, their inputs and outputs. Hence, test cases are derived
using the control structure of procedural design. The System test educing
the test case design. Each function is executed separately and results
are found to be as expected lines. The fields which are compulsory are
validated. It is found that all the functions are working satisfactorily
according to the specifications. The controls are checked. A separate test
case is designed to check the controls, which passes control to all the
functions and the controls are found to be working satisfactorily.

TESTING STRATEGY:

76

Dept of C.S.E.,Narayana Engineering College., Nellore.


Online Shopping

A strategy for software testing interprets software test case


design methods into a well planned series of steps that results in a
successful construction of structure.It incorporates test planning, test
case design, test execution and result data collection and evaluation.

The following are different tests at various levels:


 Unit testing
 Integrate testing
 Validation testing

UNIT TESTING:

Unit testing focuses verification effort on the smallest unit of


software design, the module. The important control parts are tested to
uncover with in the boundary of the module. The module interface is
tested to ensure that the information properly flows into and out of the
program unit and boundary conditions are tested to ensure that the
modules operate properly at boundaries established to limit or restrict
processing. Test date is provided through testing screens.

INTEGRATION TESTING:

Integrating testing is a systematic technique for


constructing Program structure while conducting tests to uncover error
associates with interfacing .The objective is to take unit modules and
built a program structure that has been directed by design.

VALIDATION TESTING:
Software validation is achieved through a series of
Black box Testing that demonstrate conformity with requirements. Hence
validation is done using Alpha Testing. The user conducts the alpha test
77

Dept of C.S.E.,Narayana Engineering College., Nellore.


Online Shopping

at the developer’s site. Alpha test are conducted in a controlled


environment testing carried out.

TEST CASE1:
When the user logs in to the system by giving his USER ID and
Password, the login module of system checks whether he is a valid user.
It prompts invalid login name or password message if entered values are
wrong. Login module is given both invalid USER ID and Password and
valid ID and password and checked for its correctness.

When the customer enters the fields in customer registration form,


which have the compulsory option (*) is not filled, then we get the
message “red marks are to be filled “ and this way the validation is
carried out in our program.

TEST CASE2:

The task of the login module is to check whether the


customer is logged in or not.
When the customer tries to enter into the shop without
logging, he will be displayed with the message “please log in “ and he
will be provided with two buttons “REGISTER “ and “LOGIN” .The
unregistered user can only view the products but he can’t purchase
them.

TEST CASE 3:

78

Dept of C.S.E.,Narayana Engineering College., Nellore.


Online Shopping

During his shopping, he has to make a click on the BUY button


to purchase the item that he would like to buy. After clicking the BUY
button he has to specify the quantity he wants. If he skips to give the
quantity then he will be asked repeatedly until he specifies.

TEST CASE 4:

After completing his shopping, in order to get the bill, he has to


click the BILL button. Mere clicking this button he will be asked to enter
his Credit card no.
This number will be checked for validity. If it is not a valid one, a
message will be displayed stating “YOUR CREDIT CARD IS NOT
VALID”.

TEST CASE 5:

After the credit card is validated, a check is made to see whether


his total bill amount is allowed or not. If his allowable credit is less than
the bill amount
Then a message “YOUR AMOUNT IS NOT ALLOWABLE PLEASE
CHECK AGAIN “ .If he has allowable credit then the product is delivered
to the specified address.

79

Dept of C.S.E.,Narayana Engineering College., Nellore.

Potrebbero piacerti anche