Test
scenario and test cases
Test case consist of a set of input values, execution
precondition, expected results and executed post condition, developed to cover
certain test condition.
While Test scenario is nothing but a test procedure. A Test Scenarios has one or many relations with Test Case, meaning a scenario can have multiple test cases. A TEST SCENARIO is defined as any functionality that can be
tested.
Test scenario is like what we have
to test, it’s a high level test case.
Means what we have to test is considered
as test scenario.
One test scenario is collection of
multiple test cases.
Example of test scenario: LOGIN
FUNCTIONALITY OF FACEBOOK.
SCENARIO: login functionality.
Test case:
1. Valid Username Invalid Password.
2. Valid password
invalid Username.
3. Invalid Username valid password.
4. Invalid password valid username.
5. Invalid username invalid password.
6. Valid username valid password.
A test scenario contains
a high level documentation, describing an end to end functionality to be tested.
A test case contains
clearly defined test steps for testing a feature of an application.
Test scenarios just focus
on “what to test. Test cases focus on “what to test” and “how to test”.
Test scenarios are
generally one-liner. Hence, there is always possibility of ambiguity during testing.
Test cases have clearly defined step, pre-requisites, expected results etc.
Hence, there is no ambiguity.
Test scenarios are
derived from use cases .Test cases can be derived from test scenarios
and have many to one relationship with them
Test scenarios are
beneficial in quick testing of end to end functionality of the application.
Test cases are efficient in exhaustive testing of application.
Relatively less time and
resources are required for creating and testing using scenario. More
resources are required for documentation and execution of test cases.
Comments
Post a Comment