what is test scenario 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

A TEST SCENARIO is defined as any functionality that can be tested.
Make sure that end to end functionality of application 
under test is working as expected
Test Scenario: Validate the login page 
Test Case 1: Enter a valid username and password 
Test Case 2: Reset your password 
Test Case 3: Enter invalid credentials

Tags:

Misc Example