Test case is a use case?

Asked

Viewed 1,938 times

10

I have doubts about use case and test case. In my understanding both are the same things, just a diagram of UML, but in college my teacher said that a test case is not a diagram nor a use case, but did not go into detail, however, other people said that the test case is a use case ie a UML diagram. Now I’m confused about these two concepts. The following example of a use case can be considered a test case?

Example of use case that I created for illustration: Caso de uso

Otherwise, what would be a test case?

3 answers

9


A use case is a high-level description of a requirement requested by the user. A test case is a given scenario of how the system should behave in a specific location, either through inputs or exits.

In other words, both are different artifacts that have different purposes and that have some unusual information.

The test case can refer to business rules (high level of abstraction) or check how certain internal structures of the software behave (low level this type of information is not specified in the case of use).

Maybe the confusion is that a business rule can become a test case.

  • 2

    Is there any wrong information in the answer? can I correct.

1

Use case is a document containing the system requirements.

Test case is basically describes the steps and expected results for each action.

1

From a use case it is possible to derive one or more test cases.

The use case is like an artifact that represents what the developer should implement on the requirement.

In this association, the test case would represent what the user should be able to perform, given a requirement.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.