Select an Object-Oriented software application, as well as a Sequential software application. Develop a testing template and create five meaningful test cases for each.
Testing Object Oriented Software Application:
Testing object-oriented software application usually done testing the underlying classes in the application. Class testing, testing the behaviour of the class and the methods that perform the logic, creation of objects by testing the constructors, state of the object by testing the variables etc. Object methods encapsulate the business logic in object-oriented application.
Consider Banking application which has the classes like
Bank class
Account - Abstract class.,
id , name , balance
getters and setters for variables.
methods like withdraw() , deposit() , viewBalance(), calculateInterest()
SavingAccount the child class of Account.
interestRate
overridden method - calculateInterest() methods
CheckingAccount the child class of Account.
interestRate
overridden method - calculateInterest() methods
Testcases:
Try to create an object of Account. Abstract class should not create any objects.
Creation of objects for SavingAccount , Checking Account.
Testing for methods setters and getters for the variables like balance.
Test business logic for calculate interest for
Saving account class
Checking account class.
Test for deposit and withdraw business logic.
Steps:
Create an object for Saving account.
Invoke calculateInterest() method.
Calculate the amount as per the business logic.
Assert for object returned value and as per business logic.
---------------------
Testing Sequential Software Application
Unlike object oriented applications,, sequential applications do not have classes and objects.
They perform all the business logic in a program with functions and modules.
Consider a console application written in C language that
ask user to choose from menu of options and performs the tasks as per the user selection.
TestCases.
Test for Program Features:
Test program features and function interactions.
Positive testcase
Test the individual functions business logic what the method is intended to perform.
Negative testcase:
Test the individual functions business logic what the method is NOT intended to perform.
Static testcase:
Test the readability of the sequential software program like code readability, comments,
code indentation etc.
Compatibility Test Case:
Test the program executable by building and running on different OS versions
for example, like Windows 7, Windows 10 etc.
Select an Object-Oriented software application, as well as a Sequential software application. Develop a testing template...
Select an Object-Oriented software application, as well as a Sequential software application. Develop a testing template and create five meaningful test cases for each. Explain why you chose what you did and what you were trying to achieve by creating the test cases that you did. For a Software Engineering II class
Discuss the benefits, drawbacks, and areas of application of object-oriented design. Why object orientation is such a big deal for system and software design, how it changes the architecture of software systems, and the processes of software development, and how it fundamentally affects system reliability and maintenance.
19. Select the correct answer. Nick is testing his software by using test cases and boundary cases. Which testing type is he using? test-boundary testing test cases testing integration testing boundary testing black-box testing 20. Select the correct answer A boundary case belongs to which testing typei? unit testing "white-box" testing "white-unit" testing "black-box" testing integration testing
Develop a test strategy for testing the entire application of a college course registration system. Specifically define roles, responsibilities, timing, and test strategy for each level of testing.
Question 2 During the last years, object oriented programming has become a major aspect of software development. However, new methods for developing concurrent and distributed software systems has arisen according as communication and synchronization technologies have been advanced. Explain what software process is appropriate to develop these technologies and why.
Advanced Object-Oriented Programming using
Java
Assignment 4: Exception Handling and Testing in
Java
Introduction - This assignment is
meant to introduce you to design and implementation of
exceptions in an object-oriented language. It will
also give you experience in testing an
object-oriented support class.
You will be designing and implementing a version of the game
Nim. Specifically, you will design and implement a
NimGame support class that stores all actual
information about the state of the game, and detects and throws...
Using the various Object Oriented Programming concepts and skills learnt in this course, design and develop a Java Application to compute an individual student’s GPA and store the records in a database. The application should have two components i.e. The student and the course components. The following should be the minimal operations on the course component: – Set course information – Print course information – Show credit hours – Show course number The following should be the minimal operations on...
****Here is the assignment **** Purpose: To write an Object-Oriented application that creates a Java class with several instance variables, a constructor to initialize the instance variables, several methods to access and update the instance variables’ values, along with other methods to perform calculations. Also, write a test class that instantiates the first class and tests the class’s constructor and methods. Details: Create a class called Rectangle containing the following: Two instance variables, An instance variable of type double used...
In Software Testing and Quality Assurance Theory and Practice Functional Testing You have 3 parameters (g, h, i)each with 3 values (<g1, g2, g3>, <h1, h2, h3>, <i1, i2, i3>). Use IPO from Functional Testing to come up with the test cases. Show the initialization horizontal and vertical growth phases. Show Orthogonal array for the same.
In this exercise you will develop a C# application that allows the user to handle a Windows service. Create a class named ServiceController. Create the following properties: CanShutDown, CanStop, MachineName, ServiceName, ServiceType, Status. Create the following methods: Start, Stop, Close, and ToString to return service controller object information in a nicely formatted string. Provide a constructor that allows the user to initialize ServiceController object information. Write a driver class to test the ServiceController class. The driver class (main class) interacts...