scenario testing code example

Example 1: what is scenario testing

Scenario testing is a software testing
 technique that is based on a scenario.
 Basically It involves converting business
 requirements to test scenarios for better
 understanding and to achieve an end to end testing. 
 
 For Examle :
As  test scenario – “Verify that the user is not
able to login with incorrect credentials”.
Now, we can  brake down into test scenario 
to multiple test cases like-

-Checking that user with correct username and
incorrect password should not be allowed to login.

-Checking that user with incorrect username
and correct password should not be allowed to login.

-Checking that user with incorrect username
and incorrect password should not be allowed to login.

Example 2: test scenario

What is a Test Scenario?
A Test Scenario is a statement describing the functionality of the application to be tested. It is used for end to end testing of a feature and is generally derived from the use cases.

Test scenarios can serve as the basis for lower-level test case creation. A single test scenario can cover one or more test cases. Therefore a test scenario has a one-to-many relationship with the test cases.

Tags:

Misc Example