Testing Philosophy - Test Scenarios & Test Case - What are these?

The topic today is about the difference between test scenarios and test cases. This is pure philosophy and theoretical stuff, but if you want to build your test plan right knowing their difference can simplify things for you.


Before you are starting to write your test in any testing project, you should begin with the areas and functionalities that you want to cover in your test plan. Then you have to create all the test scenarios and test cases to support it.


let's take a log-in page for example:


The test scenarios that we want to check here are:

  1. A User name with valid names

  2. A User name with Invalid names

each one of these test scenarios should now be handheld with corresponding test cases that we will run to ensure that the test scenario is working as expected.


Test Scenario 1: Log in with Valid credentials

  • Enter user name with 6 Minimum characters, and the correct password.

  • Enter user name with MAX allowed characters and the correct password.

  • Enter user name with special characters and the correct password.

  • Enter user name with capital letters and the correct password.

Test Scenario 2: Log in with Invalid credentials

  • Enter user name with less than the MIN allowed characters and the correct password.

  • Enter a valid user name with a wrong password.

  • Enter an INvalid user name and a correct password.

  • Enter only information of user name without credentials.

As you can see, test scenarios are containers for specific test cases that are used to ensure that each test scenario is covered and approved.



26 views0 comments