test script vs test scenario code example

Example: test script vs test scenario

A test script in software testing is
a set of instructions that will be performed
on the system under test to test that the
system functions as expected.

 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-