Question

In: Computer Science

i posted this question before , but the answer was totally wrong . i am developing...

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

Solutions

Expert Solution

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:

  • Controller Layer - UI component's entry point to your system
  • Service Layer or Facade Layer - Controllers in each flow invoke various services like usersService, accountService, financeService to get the data to be displayed in the UI.
  • DAO (Data Access Objects) Layer - Services internally calls different DAO(s) to fetch/manipulate data in the Database.

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
  1. Test code invokes the SearchService to fetch the product details. http://test.ecommerceapp.com/search/product?keyword=android%20mobile
  2. Test code invokes the ProductDetailsService to get the product details. http://test.ecommerceapp.com/product/details?productId=45196388
  3. Test code calls the UserService to add the product with a specific productId in the user favorites. http://test.ecommerceapp.com/user/addToFavorites?productId=45196388&userId=1098776213
  4. Test code evaluates the UserService response.
  5. Test code evaluates that data has been written to the database.
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.


Related Solutions

I posted this question before too but answer was wrong can you please make sure the...
I posted this question before too but answer was wrong can you please make sure the answer is right Required information [The following information applies to the questions displayed below.] In 2018, the Westgate Construction Company entered into a contract to construct a road for Santa Clara County for $10,000,000. The road was completed in 2020. Information related to the contract is as follows: 2018 2019 2020 Cost incurred during the year $ 2,204,000 $ 3,192,000 $ 2,424,400 Estimated costs...
PLEASE NOTE: THIS QUESTION HAS BEEN POSTED BEFORE BUT A WRONG ANSWER WAS PROVIDED. PLEASE DO...
PLEASE NOTE: THIS QUESTION HAS BEEN POSTED BEFORE BUT A WRONG ANSWER WAS PROVIDED. PLEASE DO NOT COPY THAT ANSWER AND PASTE IT HERE AGAIN. I WOULD APPRECIATE A FRESH ATTEMPT. HERE IS THE QUESTION: 'The conclusion is that the more convex bond outperforms the less convex bond'. Explain this statement with the help of a diagram. Your answer should include a brief definition of ‘convex’ in this context.
I posted this question before and the person who answered it answered wrong.........please have someone else...
I posted this question before and the person who answered it answered wrong.........please have someone else try again The following information applies to the questions displayed below.] O’Brien Company manufactures and sells one product. The following information pertains to each of the company’s first three years of operations: Variable costs per unit: Manufacturing: Direct materials $28 Direct labor $15 Variable manufacturing overhead $5 Variable selling and administrative $3 Fixed costs per year: Fixed manufacturing overhead $580,000 Fixed selling and administrative...
Posted this question yesterday but whoever answered it did not answer correctly. I am stuck on...
Posted this question yesterday but whoever answered it did not answer correctly. I am stuck on number 2; missing something but not sure what. Any help is appreciated. Lou Barlow, a divisional manager for Sage Company, has an opportunity to manufacture and sell one of two new products for a five-year period. His annual pay raises are determined by his division’s return on investment (ROI), which has exceeded 22% each of the last three years. He has computed the cost...
using C , comments will be appreciated. I already posted this before and I am looking...
using C , comments will be appreciated. I already posted this before and I am looking for different answer. please answer both part of the question. A) Write down an function named bitwisedFloatCompare(float number1, float number2) that tests whether a floating point number number1is less than, equal to or greater than another floating point number number2, by simply comparing their floating point representations bitwise from left to right, stopping as soon as the first differingbit is encountered. The fact that...
BEFORE YOU ANSWER THIS QUESTION, PLEASE READ: I HAVE ALREADY POSTED THIS QUESTION MULTIPLE TIMES, AND...
BEFORE YOU ANSWER THIS QUESTION, PLEASE READ: I HAVE ALREADY POSTED THIS QUESTION MULTIPLE TIMES, AND I NEED HELP WITH THE JOURNAL ENTRIES. PLEASE INCLUDE THEM IN THE ANSWER. THANK YOU Overhead Variances, Four-Variance Analysis, Journal Entries Laughlin, Inc., uses a standard costing system. The predetermined overhead rates are calculated using practical capacity. Practical capacity for a year is defined as 1,000,000 units requiring 200,000 standard direct labor hours. Budgeted overhead for the year is $750,000, of which $300,000 is...
PLEASE NOTE: I POSTED THIS QUESTION BEFORE BUT ONE EXPERT SIMPLY COPIED THE ANSWER TO ANOTHER...
PLEASE NOTE: I POSTED THIS QUESTION BEFORE BUT ONE EXPERT SIMPLY COPIED THE ANSWER TO ANOTHER QUESTION THAT WAS USING THE SAME INFORMATION. WHAT I'M LOOKING FOR ARE 2 GRAPHS. An investor is provided with the following information on American put and call options on a share of a company listed on the London Stock Exchange: Call price (c0) = 33p Put price (p0) = 49p Exercise price (X) = 480p Today: 11 June 2019 Expiry date: 20 December 2019...
I have asked this question before however I am not getting the right answer. What is...
I have asked this question before however I am not getting the right answer. What is the evolutionary advantage to having the conduction velocity of neural impulses change with temperature, and which of the five major groups of vertebrate organisms might benefit most from this phenomenon? Explain thoroughly please.
I posted this question looking for a new paper not an answer that's already posted on...
I posted this question looking for a new paper not an answer that's already posted on chegg since if someone already turned in that paper it will show as a copied paper... the question is.. write a paper of 300-600 words presenting your analysis of the following topic- Discuss shortages and surpluses and how they re-direct resources
I saw an answer for this on another question posted, but I don't think the answer...
I saw an answer for this on another question posted, but I don't think the answer was exactly what I was looking for. Can anyone help guide me in the right direction in regards to this question and its subquestions? Thanks. The proton and electron are particles found to have equal and opposite charges to the precision that the measurements have been made so far. Why is it important that the proton and electron have exactly the same magnitude for...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT