Question

In: Computer Science

Write a short 1-2 page paper describing the following: a. What is meant by Use Case...

Write a short 1-2 page paper describing the following:
a. What is meant by Use Case Testing? Why is it useful and important? What other options exist other than doing Use Case Testing? Please include citations for any papers, books, or websites used.

Solutions

Expert Solution

Answer:

What is meant by Use Case Testing? Why is it useful and important?

Use Case Testing is a functional black box testing technique that helps testers to identify test scenarios that exercise the whole system on each transaction basis from start to finish.

Characteristics of Use Case Testing:

  • Use Cases capture the interactions between 'actors' and the 'system'.

  • 'Actors' represents user and their interactions that each user takes part into.

  • Test cases based on use cases and are referred as scenarios.

  • Capability to identify gaps in the system which would not be found by testing individual components in isolation.

  • Very effective in defining the scope of acceptance tests.

How to do Use Case Testing: Example

In a use-case, an actor is represented by "A" and system by "S". We create Use for a login functionality of a Web Application as shown below

Main Success Scenario Step Description
A:Actor
S:System
1 A: Enter Agent Name & Password
2 S: Validate Password
3 S: Allow Account Access
Extensions 2a Password not valid
S: Display Message and ask for re-try 4 times
2b Password not valid 4 times
S: Close Application

  • Consider the first step of an end to end scenario for a login functionality for our web application where the Actor enters email and password.
  • In the next step, the system will validate the password
  • Next, if the password is correct, the access will be granted
  • There can be an extension of this use case. In case password is not valid system will display a message and ask for re-try four times
  • If Password, not valid four times system will ban the IP address.
  • A use case is a description of a particular use of the system by an actor (a user of the system). Each use case describes the interactions the actor has with the system in order to achieve a specific task (or, at least, produce something of value to the user).
  • Actors are generally people but they may also be other systems.
  • Use cases are a sequence of steps that describe the interactions between the actor and the system. Use cases are defined in terms of the actor, not the system, describing what the actor does and what the actor sees rather than what inputs the system expects and what the system’s outputs.
  • They often use the language and terms of the business rather than technical terms, especially when the actor is a business user.
  • They serve as the foundation for developing test cases mostly at the system and acceptance testing levels.
  • Use cases can uncover integration defects, that is, defects caused by the incorrect interaction between different components. Used in this way, the actor may be something that the system interfaces to such as a communication link or sub-system.
  • Use cases describe the process flows through a system based on its most likely use. This makes the test cases derived from use cases particularly good for finding defects in the real-world use of the system (i.e. the defects that the users are most likely to come across when first using the system).
  • Each use case usually has a mainstream (or most likely) scenario and sometimes additional alternative branches.
  • Each use case must specify any preconditions that need to be met for the use case to work.
  • Use cases must also specify post conditions that are observable results and a description of the final state of the system after the use case has been executed successfully.

What other options exist other than doing Use Case Testing?

  • Result negative: An Exception is anything that leads to NOT achieving the use case’s goal.
  • Result positive: An Alternate Flow is a step or a sequence of steps that achieves the use case’s goal following different steps than described in the main success scenario. But the goal is achieved finally.

Cancel is no Alternative! It’s an Exception

Anything that leads to NOT achieving the use case’s goal is an Exception.

Very often the user is requested to confirm a step like data entry or delete something. In that situation there is always the possibility that the user does not confirm but cancel the use case. So what happens? The system works perfectly right handling the cancellation. Nevertheless this is a typical Exception because it leads to not achieving the use case’s goal.

In the example below the user confirms the deletion in step 5. But there are two other options the user may select: He aborts the the deletion or he prolongs the deletion. Because both possibilities refer to step 5 they are numbered as 5a and 5b within the section Exceptions. Again, both exceptions are not caused by system errors or malfunction. But both exceptions lead to not achieving the use case’s goal, which is the deletion of the contract. In the first case the user will not delete the contract. In the letter case the contract is also not deleted but additionally put into the job queue for later assessment.

Alternatives lead to success

We consider any steps deviating from the main success scenario, which finally lead to a success of the use case as Alternative Steps.

There are many roads to Rome. The main success scenario describes the most likely way a user may take to achieve the business goal. Nevertheless, there may be other ways to perform a particular step or a sequence of steps. Those different paths are called Alternate Flows or Alternatives.

Below an example show how to delete a contract. From the pure business perspective this is most likely not the way we do that. But take it just as an example. In the first step the user’s navigates to the customer who’s contract to be deleted. Next he selects the particular contract (step 2). Instead of locating the customer the user may filter the huge list of contracts alternatively. As this is an alternative to step 1 of the success scenario it is numbered as 1a within the alternate flows. As it is nothing stated explicitly in the alternate step the use case will continue with step 2 of the main scenario. The user selects the contract and initiates the deletion.


Related Solutions

After reading Special Topic 1 and Special Topic 2, write a 2-page paper answering and describing:...
After reading Special Topic 1 and Special Topic 2, write a 2-page paper answering and describing: Can democracy survive if a majority of the citizenry pay little or nothing in taxes while benefiting directly from a higher level of government spending? Why or why not? Discuss
write a short one-half to one page response paper describing what you learned about computational science...
write a short one-half to one page response paper describing what you learned about computational science and anything interesting about it
2 page paper describing the following Provide a description of an organization you are familiar with...
2 page paper describing the following Provide a description of an organization you are familiar with (possibly a company you have worked for in the past or are currently working for) and describe briefly what services they contribute. Then, select three out of the six questions below and provide detailed answers, supporting those answers by referencing any sources used. Be sure to use examples from your research to strengthen your argument as needed ·What personal knowledge management tools does this...
Please submit a 1-2 page paper on the following statement " write a reaction paper on...
Please submit a 1-2 page paper on the following statement " write a reaction paper on what you believe is the most meaningful contribution of the African diaspora to the US or any region of the world" . Please support your arguments with evidence from academic sources.
Write a three-page paper summarizing each of the following areas for France, and describing the influence...
Write a three-page paper summarizing each of the following areas for France, and describing the influence of each on global business: 1.Location, topography, and population 2. History, natural resources, and economy 3. Education, family, and marriage 4. Medicine, art structures
Write a 2-page paper describing the importance to decision making of proper overhead allocation. Discuss the...
Write a 2-page paper describing the importance to decision making of proper overhead allocation. Discuss the various methods available to accountants to allocate overhead to products and services. Include the limitations of these methods as well as the pros and cons for each method.
Write a two (2) page paper describing the differences and interactions between strategic thinking and strategic...
Write a two (2) page paper describing the differences and interactions between strategic thinking and strategic management. Address why many leaders often fail to think strategically. Include experiences you have had with leaders for whom you have worked
Write a 3-page paper based on your the Exotic Embezzlement case addressing the following: Use the...
Write a 3-page paper based on your the Exotic Embezzlement case addressing the following: Use the readings and the fraud examination checklist to address the following questions: 1.      What sections of the fraud examination checklist were most helpful to the investigation and why? Please be specific in the way the techniques you used based on the checklist will contribute to the overall investigation. 2.      Identify the specific direct & circumstantial evidence used to support a prosecution of this case.   3.      Identify the anomalies...
Write a 1-2-page paper (not including title page and reference page) that describes the following: Ø...
Write a 1-2-page paper (not including title page and reference page) that describes the following: Ø You are caring for a patient with c-diff as part of your workload assignment. Discuss what c-diff is and how it is transmitted (how you can get it)? Ø What actions will you take as a nurse to protect yourself and the other patients on the unit when taking care of your patient? You should include a minimum of 3 scholarly references (suggestion on...
Write a 1-2-page paper (not including title page and reference page) that describes the following: Ø...
Write a 1-2-page paper (not including title page and reference page) that describes the following: Ø You are caring for a patient with c-diff as part of your workload assignment. Discuss what c-diff is and how it is transmitted (how you can get it)? Ø What actions will you take as a nurse to protect yourself and the other patients on the unit when taking care of your patient? You should include a minimum of 3 scholarly references (suggestion on...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT