How low coupling and high cohesion enables modular design

Assignment Help Database Management System
Reference no: EM131948673

Assignment: Software QA and Testing

Part I: Conceptual Questions

1.: Objective of this question is for you to revisit common terminologies and concepts use in software testing

a) Briefly explain how low coupling and high cohesion enables modular design.

b) In the class we discussed three basic approaches in Integration testing: Top down, bottom up and sandwich. Explain each technique in detail highlighting pros and cons of each technique.

c) Junit is a framework. What is the main difference between a framework and a toolkit?

d) Junit provides four annotations @Before, @After, @BeforeClass, @AfterClass. Explain how you can use those testing OO applications (try to give examples)

Part II: OO Application Design/Architecture/ and Testing

Objectives: This question will help you in understanding designing stubs and driver program for testing. Also, how to perform integration testing. Finally, designing and implementing test cases (Using a tool, JUnit in our case) to test OO applications.

2. Download the BagleHouse program posted. It was developed as two-layered software where UI and computation related classes have being separated. They interact with each other through interfaces. BagleHouse application UI will let users select a type of a Bagel, toppings (up to 4), and a type of coffee as shown below. Once the calculate button is pressed amount due will be displayed.

a) Study the code and draw the class diagram that clearly shows the class relationships implemented. Make sure to use correct UML notations.

Submit: class diagram. No need to use a tool. Handwritten is fine as long as it's legible.

b) In testing this application, it make sense to test the calculations.java class first before integrating it with UI classes. Design test cases to test the calculations class (Explain your strategy). Then, develop a test driver program using JUnit to implement your test cases. Run test cases and make sure it the implementation of calculations class is correct.

Submit: Your JUnit test driver program and the test plan.

c) Then, we need to test the Presentation Layer before integrating it to the Application Layer. Explain your approach in testing the Presentation Layer using stubs to represent the Application Layer. Develop 3 test cases to show your strategy. Use MockItO framework to generate stubs.

Submit: Your test plan and three sample test cases.

3. [State Based Testing] In the class we have discussed the windshield wiper program and developed test cases based on the StateChart for lever and a Use Case. In this question you will revisit the program design and develop two set of test cases.

StateChart Based Testing:

The following StateCart represent the behavior of the Wiper of the winshield wiper case study discussed in the class.

a) Design test cases based on the segment of the StateChart shown below. Your test cases should cover all state transitions shown in the given state diagram. Represent your test cases in a table.

b) Implement Junit test cases to implement your test cases designed above (a)

c) Use case based testing: Consider the following usage scenario.

i.) Design test cases to test the scenario given.
ii.) Implement Junit test cases to implement your test cases designed above (c)

Assume that when lever and dial changes, they do not need to follow any sequential order. For example, dial can go from 1 to 3 without staying at level 2.

Attachment:- Assignment.rar

Reference no: EM131948673

Questions Cloud

Calculate how many canvases anke needs to sell : Breakeven analysis Anke Perks is opening an arts and crafts store that focuses on canvases, paints, and pencils. The selling price of a canvas is $24.
What counter-offer would you have to make to bank : what counter-offer would you have to make to the bank in order to achieve the 20% return?
How much money after tax : How much money after tax he can accumulate in the investment account at the end of year 5?
Explain what is meant by the term positioning : Choose one (1) product category you find interesting (e.g. pickup trucks, women's apparel, athletic shoes), and identify at least three different brands.
How low coupling and high cohesion enables modular design : Briefly explain how low coupling and high cohesion enables modular design. What is the main difference between a framework and a toolkit?
Decide between two almost identical commercial properties : An investor is trying to decide between two almost identical commercial properties, property A and property B.
What is the interest tax shield from braxton debt : Braxton Enterprises currently has debt outstanding of $55 million and an interest rate of 6%. Braxton plans to reduce its debt by repaying $11 million.
Developing a detailed work breakdown structure : Developing a detailed work breakdown structure (WBS) for a system development project is a basic function of project management.
Calculate expected change in price of these bonds : Calculate the expected change in price of these bonds and recommend which bond will be more suitable for risk averse investors.

Reviews

Write a Review

Database Management System Questions & Answers

  Knowledge and data warehousing

Design a dimensional model for analysing Purchases for Adventure Works Cycles and implement it as cubes using SQL Server Analysis Services. The AdventureWorks OLTP sample database is the data source for you BI analysis.

  Design a database schema

Design a Database schema

  Entity-relationship diagram

Create an entity-relationship diagram and design accompanying table layout using sound relational modeling practices and concepts.

  Implement a database of courses and students for a school

Implement a database of courses and students for a school.

  Prepare the e-r diagram for the movie database

Energy in the home, personal energy use and home energy efficiency and Efficient use of ‘waste' heat and renewable heat sources

  Design relation schemas for the entire database

Design relation schemas for the entire database.

  Prepare the relational schema for database

Prepare the relational schema for database

  Data modeling and normalization

Data Modeling and Normalization

  Use cases perform a requirements analysis for the case study

Use Cases Perform a requirements analysis for the Case Study

  Knowledge and data warehousing

Knowledge and Data Warehousing

  Stack and queue data structure

Identify and explain the differences between a stack and a queue data structure

  Practice on topic of normalization

Practice on topic of Normalization

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd