In: Computer Science
i posted this question before , but the answer was totally wrong . i am developing e-commerce website for my project in my school . this testing is not required to testing by code .
and i need to fail the table , and example should be related to e-commere website .
hi everyone i need your help , actually i trying to develop e
commerce website and i have to document the testing for my system
in my project documentation .as we have many testing phase , like
unit test, integration test and i'm fine with them but the system
testing , i can't understand how i will test my system as
whole
and my prof ask me to fill this tables. can anyone suppose that is
in the testing the e-commerce website as a system testing , how
will you do it, please i need example related to the basic function
in e-commerce website like order , bill.. the table is below
test Case Name
Purpose
Test Description(Steps)
ExpectedResults
Actual Results
Status(Pass/Fail)
Remarks
First of all, we start with the basics of testing:
Unit tests test only a single "unit" of the code (say a module or a class), to see if it behaves as expected. They generally make sure that the behaviour of the module is sane and desirable, while not trying to see if it works as part of the larger scheme.
For example,
Your e-commerce webapp server code is structured as below:
Unit tests check methods (unit of code) in each of these components separately to see whether these units of code are working properly individually.
Integration tests test a call to controllers (the REST API or SOAP service or plain HTTP request) is working properly or not. Let’s say, there is a call to the system which gets product details in your e-commerce application. This call to controller, internally invokes controllers, services, DAO(s) and get the data.
So, in your integration test you check that the data fetched from this REST call is correct or not.
Talking about System tests, it tests the entire end to end customer flow, which would involve various REST calls.
For example, consider the below flow:
1. Customer searches for a product in the search box. It internally calls the search REST API (or controller as u say).
2. This service fetches a product list and populates a List or a GRID in the UI.
3. Customer clicks on a particular product. Another REST API is called for fetching the product details
4. The product details are populated in a popup box or in a new page.
5. Customer clicks on Add to Favorites. Another REST API is called to save the product in the favorites of that particular customer and returns a true or false, based on the fact that particular product could be added in the favorites or not.
6. Based on the result the favorites icon will appear in the product details page.
So, it could be populated in the table as per you format as below:
Test case Name | Add to Favorites Flow |
Purpose |
Test end to end flow of customer product selection to add to favorites Button. |
Test Description |
|
Expected Results | UserService should return false, since the product is obsolete and obsolete products are not allowed to be added in the favorites. |
Actual Result | UserService returned false |
Status | Pass |
Remarks | System is working as expected |
Similarily, other flows can also be tested, for example,
1. Change customer address end to end flow.
2. Checkout the products in the user cart end to end flow.
3. Show search suggestions flow, etc.