test case and test scenario code example

Example 1: test case vs test scenario

-Scenario is high level descripton of
what are we going to test. 
-Test case is step by step off the test.
For example 
Test scenario is
Login to the application with valid credentials
Test Case is 
Login as a seller
Given valid credentials for a moderator role
When I enter user name and password
And I click login button etc    
Test scenario can have multiple test cases.

Example 2: test scenario, test case and test script

Test scenario is a description of user’s multiple
actions that might face when using the applications. 
It is about what to test. It is high level of test cases.

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.

Test case is documentation which specifies input
values,expected output and the preconditions for executing
the test. It is about how to test . 
It's a layout of the low-level details on
how to test the scenario

Example 3: test case vs test scenario

-Scenario is high level descripton of
what are we going to test. 
-Test case is step by step off the test.
For example 
Test scenario is
Login to the application with valid credentials
Test Case is 
Login as a seller
Given valid credentials for a moderator role
When I enter user name and password
And I click login button etc    
Test scenario can have multiple test cases.

Tags:

Misc Example