Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Pls i need the answer Department of Software Engineering SE 430 (Software Testing) First 2021 / 2021 Homework 3: Integration testing Consider the modified online

image text in transcribed

Pls i need the answer

Department of Software Engineering SE 430 (Software Testing) First 2021 / 2021 Homework 3: Integration testing Consider the modified online medical lab application that consists of the following classes: Tax +computeSales Tax(amount:double)(): double 1 TestOrder 1+compute TotalCost(): double 1 Home Service 1 +computeHome Service Fees(requireHome Service:bool)(): double TestResult -value +isResult Normall): bool +setValue() +getValue(): double Test -testName: string -unit: string -lowest Value: double -highestValue: double -price: double +setTestName() +get TestName() +setUnit() +getUnit() +set LowestValue() +getLowestValue() +set Highest Valuel) +getHighestValue() +set Price() *getPrice) 1 1 As can be noticed, we added two new classes: 1) Tax: this class is responsible for computing taxes. It has the following method: a. computeSalesTax: This method takes the order amount as an input and returns the sales tax as an output. The tax values range from a minimum if 5 JD to a maximum of 50 JD. 2) HomeService: This class computes the costs related to ordering lab tests at home. It has the following operation: a. computeHomeService Fees(requireHome Service:bool): This method returns a value only when its input value is set to true. Otherwise, it returns zero. Homework requirements: 1) You are required to do an integration testing for the modified "computeTotalCost" method. The new classes are missing, so you must implement appropriate stubs or drivers to do the test. Furthermore, the computeTotalCost inside the class TestOrder should be updated to account for tax and home service fees. 2) You should design your test cases (only for "computeTotalCost") using equivalence partitioning approach and implement them inside a class named "TestOrder_Test". 3) Implement a class "TestDriver" that executes "TestOrder_Test". Note: You should use the source code from Homework #1. Submission Deadline: 11/1/2021 23:55 PM (You get 100%) 12/1/2021 23:55 PM (You get 50%) No submission will be accepted after 12/1/2021 23:55 PM. No excuse will be given under any circumstances. Important note: Corrupted files will get a zero grade. It is your own responsibility to check that the uploaded file is readable. Department of Software Engineering SE 430 (Software Testing) First 2021 / 2021 Homework 3: Integration testing Consider the modified online medical lab application that consists of the following classes: Tax +computeSales Tax(amount:double)(): double 1 TestOrder 1+compute TotalCost(): double 1 Home Service 1 +computeHome Service Fees(requireHome Service:bool)(): double TestResult -value +isResult Normall): bool +setValue() +getValue(): double Test -testName: string -unit: string -lowest Value: double -highestValue: double -price: double +setTestName() +get TestName() +setUnit() +getUnit() +set LowestValue() +getLowestValue() +set Highest Valuel) +getHighestValue() +set Price() *getPrice) 1 1 As can be noticed, we added two new classes: 1) Tax: this class is responsible for computing taxes. It has the following method: a. computeSalesTax: This method takes the order amount as an input and returns the sales tax as an output. The tax values range from a minimum if 5 JD to a maximum of 50 JD. 2) HomeService: This class computes the costs related to ordering lab tests at home. It has the following operation: a. computeHomeService Fees(requireHome Service:bool): This method returns a value only when its input value is set to true. Otherwise, it returns zero. Homework requirements: 1) You are required to do an integration testing for the modified "computeTotalCost" method. The new classes are missing, so you must implement appropriate stubs or drivers to do the test. Furthermore, the computeTotalCost inside the class TestOrder should be updated to account for tax and home service fees. 2) You should design your test cases (only for "computeTotalCost") using equivalence partitioning approach and implement them inside a class named "TestOrder_Test". 3) Implement a class "TestDriver" that executes "TestOrder_Test". Note: You should use the source code from Homework #1. Submission Deadline: 11/1/2021 23:55 PM (You get 100%) 12/1/2021 23:55 PM (You get 50%) No submission will be accepted after 12/1/2021 23:55 PM. No excuse will be given under any circumstances. Important note: Corrupted files will get a zero grade. It is your own responsibility to check that the uploaded file is readable

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Principles Of Database Systems With Internet And Java Applications

Authors: Greg Riccardi

1st Edition

020161247X, 978-0201612479

More Books

Students also viewed these Databases questions