Divide the input space for the into three equivalence class

Assignment Help Programming Languages
Reference no: EM13948054

Many functions have an almost infinite number of input values. Testing all of these values is not possible in most cases, and doesn't necessarily tell us more than testing a few values. How do you choose the best values to test? Equivalence class partitioning can be used to divide the test inputs into classes so that each class contains the same kinds of input (in another word, you may only need to test one input from each class), thus reducing the number of test cases to a manageable size. For example, if the specification of one program is: "Design a program that accepts inputs of ASCII strings (arbitrary long) and breaks the input into lines of 60 characters". The requirement for the testing group is to generate a three test cases for test this program. OK, then you can generate the following two inputs: the first input with 40 ASCII characters and the second input with 30 characters. Now you want to design the third input, how long should it be? 16 characters or 100 characters? If you do not use partition method, you may feel it is better to generate a 100 character input for testing. But it is not systematic. A systematic approach will generally divide the input space for the above program into three "equivalence" classes:

1. inputs with less than 60 characters

2. the input with 60 characters

3. inputs with more than 60 characters

Furthermore, you may further divide the third classes into more classes: inputs whose length is long than 60 but less than 120, inputs whose length is long than 120 but less than 180, etc...

Thus the general rule for partition testing is:

1. Partition testing separates the input space into classes whose union is the entire space, but the classes may not be disjoint

2. Uniformly chooses one or more test from each class

3. Generate testing cases with Cartesian product by eliminating illegal inputs. This may still lead to huge amount of test cases.

For example, if you got 5 inputs (each in a separate partitioned class, for each input/classes, you decide to have 6 values, then you will still get 65=7776 test cases.

My task for this exercise is to use Equivalence Class partitioning and Boundary Value Analysis (which means to test the input at the boundary of the equivalence class partition) to analyze the valid and invalid inputs for Microsoft WinWord or any other software package that you have installed on your computer. If you choose to test different software than WinWord, please make sure that the software has several functions for user input (e.g., the zoom menu that needs user input or the search/replace menu).

As an example (or beginning point), you may use the following divided categories for WinWord "Find" and "Format Font" function.

Reference no: EM13948054

Questions Cloud

Write the balanced equation : A unique iron ore (Fe3O2)  produces metallic ion (Fe)  and carbon dioxide when heated in carbon monoxide atmosphere. The unbalanced equation for this process is: Fe3O2(s) + CO (g) →  Fe (s) + CO2(g).
Explain how companies can use barriers to entry : Using two different industries as examples, explain how companies can use barriers to entry to discourage or even prevent competitors from entering the market.
Corrosion prevention measures that should be taken : Suggest an appropriate material for each of the following applications, and, if necessary, recommend corrosion prevention measures that should be taken. Justify your suggestions.
A decline in the expected return on corporate bonds : A decline in the expected return on corporate bonds due to a rise in relative riskiness causes
Divide the input space for the into three equivalence class : Furthermore, you may further divide the third classes into more classes: inputs whose length is long than 60 but less than 120, inputs whose length is long than 120 but less than 180, etc...
How does affect and effect our nation : Shareholder's Wealth Maximization linked to Corporate Governance and Capitalization. How does affect and effect our nation - government, businesses, and individuals?
Federal reserve made a mistake and caused recession : Suppose the federal reserve made a mistake and caused a recession. Then we should observe
If the federal government enacts a tax on a monopoly : If the federal government enacts a tax on a monopoly, how would you expect the additional tax to affect the following?
Clarify strategic objective classified by balanced scorecard : Identify the strategic objectives classified by Balanced Scorecard perspectives. Next, suggest measures for each objective. Classify the measures as lead or lag measures.

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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