0% found this document useful (0 votes)
8 views

Ch 9 -From Use Cases to Test Cases

The document discusses the relationship between use cases and test cases in software testing, emphasizing that test cases are detailed documents used to evaluate software functionality against specified requirements. It highlights the differences between test cases and test scenarios, with test cases being low-level actions and test scenarios providing high-level descriptions of what to test. Additionally, it outlines the benefits of test cases, including improved software quality and customer satisfaction.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views

Ch 9 -From Use Cases to Test Cases

The document discusses the relationship between use cases and test cases in software testing, emphasizing that test cases are detailed documents used to evaluate software functionality against specified requirements. It highlights the differences between test cases and test scenarios, with test cases being low-level actions and test scenarios providing high-level descriptions of what to test. Additionally, it outlines the benefits of test cases, including improved software quality and customer satisfaction.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 11

From Use Cases to Test Cases

Requirements Engineering

1
Software Testing
 Software testing is a process, to evaluate the
functionality of a software application with an
intent to find whether the developed software
met the specified requirements or not.

 To identify the defects to ensure that the product


is defect-free in order to produce a quality
product.

 Software testing is widely used technology


because it is compulsory to test each & every
software before deployment.
2
Is a Use Case a Test Case?
 Test case is a detailed document that includes all
possible inputs such as positive and negative,
and the navigation steps.
 Test cases are implemented during the testing
process to check whether the software application is
performing the task for that it was developed or not.
 Test cases contain Features, Inputs/ Test steps,
Expected result for testing the application.
 Test cases are low-level actions.
 Test cases work on the basics of "How to be tested".
 Test cases are more specific.
Test case and Use-case are different.

3
Test cases examples
 Test Case 1: Check the whether UI Elements are aligned
properly
 Test Case 2: Enter valid Username and valid Password
 Test Case 3: Enter valid Username and invalid Password
 Test Case 4: Enter invalid Username and valid Password
 Test Case 5: Enter invalid Username and invalid Password
 Test Case 6: Check the forgot password is working as
expected
 Test Case 7: Click on Login without entering any valid
data

4
Test Cases
 Test case benefits
 Reduced maintenance costs
 Improved software quality
 Confirmation
 More satisfied customers
 Increased company profit

 Test cases are prepared on Use cases


 Test case and Use-case are not same.
 We do a lot of analysis to derive test cases from
the use cases.

5
Test Scenario
 A test scenario measures functionality across a set
of actions or conditions to verify the expected
result.

 The test scenarios are those derived from the use


case and give a one-line information about what to
test.

 These are high-level actions.

 The test scenarios work on the basic to "What to be


tested".
6
Test Scenario Examples
 Test Scenario 1: Check the Product Description Page.
 Test Scenario 2: Check the Payments Functionality.

 Test Scenario 3: Check Home Page behavior for returning


customers.
 Test Scenario 4: Check Category/Product Pages.
 Test Scenario 5: Check Customer Service/Contact Pages.
 Test Scenario 6: Check Daily Deals pages.
7
Test Scenarios and Test cases

8
Test cases vs Test Scenarios
 The test case is a detailed  The test scenarios are those
document (testing strategy, derived from the use case and
testing process, preconditions, give a one-line description
and expected output). about what to test.
 Test cases include all  Test scenarios are one-line
the positive and negative statement, but it is connected
inputs, navigation steps, with several test cases.
expected results, pre and post
condition, etc.  These are high-level actions.
 These are low-level actions.  Test scenario's main objective
 Test case’s main objective of is a cover end to end
writing the test case is to functionality of a software
verify the test scenario by application.
implementing steps.  Test scenarios take less
 Test cases take more time as time as compared to test
compared to test scenarios. cases.

9
Use Case Scenarios
 Use-case scenario is an instance of use-case.
 A use case is a set of steps that are required
to accomplish a specific task or goal.
 A use case can have multiple paths to reach
the goal.
 Each of them is considered a use case
scenario.
 A use case is a goal with various processes,
and a case scenario represents a linear and
straight path through one of the operations.

10
Use Case Scenarios
Start use case

Alternative flow 3
Alternative flow 1

Alternative flow 2

Alternative flow 4

end use case

end use case

end use case


11

You might also like