Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the difference between test scenario and test case?

Tags:

testing

I am little confused about test scenarios and test cases. What are the differences between them?

Let's say I have to test a box of matches. Am I right saying that following can be examples of test scenarios?

  • is the box able to contain x matches?
  • lets say the box is closed and I shake it vigorously. Are the matches still in the box?

Can you give me examples of test scenarios and test cases?

like image 344
Lukas Fryc Avatar asked Nov 15 '12 14:11

Lukas Fryc


1 Answers

Example:

You are testing your phone:

Scenario: Verify that device automatically connects to Wi-Fi if user creates new profile

Test cases:
           case 1: create Wi-Fi profile and verify that it created successfully
           case 2: verify that device succeeded to connect to Wi-Fi

In this example you have one test scenario that contains 2 test cases. Because 1st one refers to precondition

like image 164
Maxim Shoustin Avatar answered Nov 05 '22 17:11

Maxim Shoustin