Ch 9 -From Use Cases to Test Cases
Ch 9 -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.
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
5
Test Scenario
A test scenario measures functionality across a set
of actions or conditions to verify the expected
result.
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