SlideShare ist ein Scribd-Unternehmen logo
1 von 31
WRITING TEST CASES
FROM USER STORIES
AND
ACCEPTANCE
CRITERIA
2
Agenda:
2
3
What Is A User Story?
○ User stories are short, simple descriptions of a feature told from
the perspective of the person who desires the new capability,
usually a user or customer of the system .
○ They usually follow a template like this:
As a <type of user>, I want <some desired outcome>
so that <some reason>.
○ Example: “As a customer, I want to be able to view the
items in my cart so that I know for sure what I’m purchasing.”
 Promote more discussion and collaboration with the whole
team .  Used in agile model .
3
Agile Features
1. ITERATIVE
4
2. INCREMENTAL &
EVOLUTIONARY
6. VALUE-BASED
DEVELOPMENT
5. FACE - TO - FACE
COMMUNICATION
3. ADAPTIVE
4. EMPIRICAL PROCESS
CONTROL
8 Benefits of Agile Software Development
1. STAKEHOLDER
ENGAGEMENT
5
2. TRANSPARENCY 6. ALLOWS FOR
CHANGE
5. EARLY AND
PREDICTABLE DELIVERY
3. EARLY AND
PREDICTABLE DELIVERY 7. FOCUSES ON
BUSINESS VALUE
4. FOCUSES ON
USERS 8. IMPROVES QUALITY
The 3 C’s of User Stories
○ Card: stories are traditionally written on notecards,and
these cards can be annotated with extra details
○ Conversation: details behind the story come out through
conversations with the Product Owner.
○ Confirmation : Acceptance test confirm the story is
finished and working as intended.
4
A good user story matches the following
model called “INVEST” created by Bill Wake:
1. INDEPENDENT
Reduced dependencies
= easier to plan;
7
2. NEGOTIABLE
Details added via
collaboration (with all
parties mentioned
above);
5. SMALL
Can be done in less than
a week by the team;
4. ESTIMABLE
Too big or too vague =
not estimable;
3. VALUABLE
Provides value to the
customer;
6. TESTABLE
Good acceptance
criteria
What is requirements?
○ A statement of what should be tested in the AUT.
○ Functional Requirement: the requirement for the functions that
the application should do.
○ Non-functional requirement: the requirement for the
properties that the functions should have or should look like:
- Look n Feel
- Boundary
- Negative
○ Examples:
“User can login successfully with valid email and password.”
 Lessmore discussion with the whole team.  Used in waterfall
model .
8
What is acceptance criteria?
○ Acceptance criteria are the “conditions that
a software product must satisfy to be accepted by a
user, customer or other stakeholders.” (Microsoft Press)
o Acceptance criteria state the intent of the client and
not the solution.
7
The goals of Acceptance Criteria ?
1. TO CLARIFY what the
team should build
before they start work
10
2. TO ENSURE
everyone has a
common
understanding of the
problem
3. TO HELP VERIFY
the Story via
automated tests.
4. TO HELP the
team members
know when the
Story is complete
Who Writes Acceptance Criteria
and When?
○ Either a client or a development team writes
acceptance criteria.
○ Acceptance criteria should be specified upfront and
never after the development stage has started.
9
Creating Acceptance Criteria ?
○ There are several types of acceptance criteria: rules-
oriented and scenario-oriented.
○ Scenario-oriented criteria tend to follow the
“Given…When…Then…” template. This was derived
from behavior-driven-development (BDD).
○ Scenario: Sending message through valid email
address:
- Given The email address is valid
- When The email address is authenticated
- Then The message is sent to the email
address
9
13
What is BDD?
 BDD (Behaviour Driven Development) is a methodology for
developing software through continuous example-based
communication between developers, QAs and BAs.
Why choose The Given / When / Then
format?
○ This format is convenient for humans (since it’s written
in a familiar cause-and-effect manner) as well as for
automated testing tools like Cucumber and RSpec.
○ The Given/When/Then template helps you reduce the
time spent on writing test cases since you describe the
system’s behaviour upfront.
9
What is Test case?
- A test case is a set of conditions or
variables under which a tester will determine
whether a system under test satisfies
requirements or works correctly .
15
- A test that (ideally) executes a single well
defined test object(i.e, a specific behavior of a
feature under a specific condition).
(Testing Computer Software-Kaner ,Faulk
,Nguyen)
Why write test case ?
1. Accountability
16
2. Reproducibility 6. To verify that tests
are being executed
correctly
7. To measure test
coverage
3. Tracking
4. Automation
5. To find bugs
17
Test case template
TC ID The ID of the test case.
TC Description The description/ objective of the test case.
Pre-Condition Any prerequisites or preconditions that must be fulfilled prior to executing the test.
Steps Step-by-step procedure to execute the test.
Input data The test data, or links to the test data, that are to be used while conducting the test.
Expected Result The expected result of the test.
Actual result The actual result of the test; to be filled after executing the test.
Status Pass ,Fail , Blocked or Skipped
Build
Sprint Testcase of any sprint?
Test Environment The environment (Hardware/Software/Network) in which the test was executed
Bug_ID Fail or Blocked will have BugID
Note Your comment
Design Techniques :
○ Equivalent Partitioning
○ Boundary Analysis
○ State Transition
○ Constraint Analysis
○ Condition Combination
9
19
Equivalent Partitioning & Boundary
Analysis
 The program’s specification:
- This program is designed to add two number, which you will enter.
- Each number should be one or two digits.
20
State Transition
21
State Transition
TC No. 1 2 3 4 5 6 7
Login 1st 1st 2nd 2nd 3rd 3rd login 3 times
are wrong,
after 24
hours
Account valid invalid valid invalid valid invalid
Status Login
successfully
Blocked Login
successfully
Blocked Login
successfully
Blocked Login again
22
Constraint Analysis
The value of End Date is constrained Start Date , because
End date can’t be earlier than Start date.
23
Condition Combination
24
Condition Combination
Case Size Color
1 1 Green
2 1 Blue
3 1 Black
4 1 White
5 2 Green
6 2 Blue
7 2 Black
8 2 White
Case Size Color
9 3 Green
10 3 Blue
11 3 Black
12 3 White
13 4 Green
14 4 Blue
15 4 Black
16 4 White
Writing Test Cases from
Acceptance Criteria
15
1
Visualize the Workflow
15
Example:
What do you see when the user clicks
“Order history” ? What happens when they
click “Add to cart”? If the user clicks the
“Back” button, what is displayed?
Create the Happy Path
○ “Happy path” can cover a large portion of the workflow
and if it doesn’t work smoothly, the rest of your testing
may be blocked. Boundary Analysis
○ Example :
1. Purchase items from general search
2. Click order history from accounts page
3. Verify previously ordered items are displayed
4. Add items to cart from the previously ordered list
5. Complete purchase of previously ordered items
When the code is delivered for testing, this would be
would execute.
9
Negative testing
28
- What are all possible error cases that can
happen?
System issue occurs. What errors are displayed
throughout the website when a system issue
occurs ?
 Create a test case to verify every error is
displayed when it should be.
Boundary testing
- How many items from order history should
be displayed?
If it’s not in the acceptance criteria, this
needs to be addressed with the BA or product
owner. The developer may code this to display
all items from a customer’s history but what
happens when a user has an order history of
5,000 items?
 the product owner may decide they need
to create more user stories to add sorting,
filtering and pagination.
29
Reference
○ http://b4usolution.com/news/detail/writing-test-cases-from-user-
story-and-acceptance-criteria/30/
○ https://blog.testlodge.com/writing-test-cases-from-user-stories-
acceptance-criteria/
○ https://www.slideshare.net/hoale/writing-test-cases-from-user-
stories-and-acceptance-criteria
○ https://rubygarage.org/blog/clear-acceptance-criteria-and-why-
its-important
○ https://itviec.com/blog/agile-la-gi-scrum-la-gi/
○ https://www.testingexcellence.com/bdd-guidelines-best-practices/
○ https://www.seguetech.com/8-benefits-of-agile-software-
development/
○
30
THANKS!
31

Weitere ähnliche Inhalte

Was ist angesagt?

Fundamentals of Testing
Fundamentals of TestingFundamentals of Testing
Fundamentals of TestingCode95
 
INTRODUCTION TO ISTQB FOUNDATION LEVEL - CTFL
INTRODUCTION TO ISTQB FOUNDATION LEVEL - CTFLINTRODUCTION TO ISTQB FOUNDATION LEVEL - CTFL
INTRODUCTION TO ISTQB FOUNDATION LEVEL - CTFLRahul R Pandya
 
Istqb sample paper 2011- www.ajoysingha.info
Istqb sample paper   2011- www.ajoysingha.infoIstqb sample paper   2011- www.ajoysingha.info
Istqb sample paper 2011- www.ajoysingha.infoTestingGeeks
 
Chapter 5 - Improving the Testing Process
Chapter 5 -  Improving the Testing ProcessChapter 5 -  Improving the Testing Process
Chapter 5 - Improving the Testing ProcessNeeraj Kumar Singh
 
Chapter 1 - Requirement Engineering
Chapter 1 - Requirement EngineeringChapter 1 - Requirement Engineering
Chapter 1 - Requirement EngineeringNeeraj Kumar Singh
 
Why RTM (Requirement Traceability Matrix) is important in testing?
Why RTM (Requirement Traceability Matrix) is important in testing?Why RTM (Requirement Traceability Matrix) is important in testing?
Why RTM (Requirement Traceability Matrix) is important in testing?BugRaptors
 
Best Practices for Writing and Organizing QA Tests
Best Practices for Writing and Organizing QA TestsBest Practices for Writing and Organizing QA Tests
Best Practices for Writing and Organizing QA TestsSarah Goldberg
 
02 software test plan template
02 software test plan template02 software test plan template
02 software test plan templateAndrei Hortúa
 
Software Testing Life Cycle (STLC) | Software Testing Tutorial | Edureka
Software Testing Life Cycle (STLC) | Software Testing Tutorial | EdurekaSoftware Testing Life Cycle (STLC) | Software Testing Tutorial | Edureka
Software Testing Life Cycle (STLC) | Software Testing Tutorial | EdurekaEdureka!
 
Emerging QA COE Practice by Mukund Wangikar
Emerging QA COE Practice by Mukund WangikarEmerging QA COE Practice by Mukund Wangikar
Emerging QA COE Practice by Mukund WangikarAgile Testing Alliance
 
TestLink introduction
TestLink introductionTestLink introduction
TestLink introductionDavid Ionut
 
Software Testing Process
Software Testing ProcessSoftware Testing Process
Software Testing Processguest1f2740
 
Best Practices for Test Case Writing
Best Practices for Test Case WritingBest Practices for Test Case Writing
Best Practices for Test Case WritingSarah Goldberg
 
ISTQB / ISEB Foundation Exam Practice -1
ISTQB / ISEB Foundation Exam Practice -1ISTQB / ISEB Foundation Exam Practice -1
ISTQB / ISEB Foundation Exam Practice -1Yogindernath Gupta
 
Exploratory Testing Explained
Exploratory Testing ExplainedExploratory Testing Explained
Exploratory Testing ExplainedTechWell
 
Strategies For Software Test Documentation
Strategies For Software Test Documentation Strategies For Software Test Documentation
Strategies For Software Test Documentation Vishwak Solution
 
КАТЕРИНА АБЗЯТОВА - Getting ready for ISTQB Foundation 4.0: Overview and Q&A ...
КАТЕРИНА АБЗЯТОВА - Getting ready for ISTQB Foundation 4.0: Overview and Q&A ...КАТЕРИНА АБЗЯТОВА - Getting ready for ISTQB Foundation 4.0: Overview and Q&A ...
КАТЕРИНА АБЗЯТОВА - Getting ready for ISTQB Foundation 4.0: Overview and Q&A ...GoQA
 

Was ist angesagt? (20)

Fundamentals of Testing
Fundamentals of TestingFundamentals of Testing
Fundamentals of Testing
 
INTRODUCTION TO ISTQB FOUNDATION LEVEL - CTFL
INTRODUCTION TO ISTQB FOUNDATION LEVEL - CTFLINTRODUCTION TO ISTQB FOUNDATION LEVEL - CTFL
INTRODUCTION TO ISTQB FOUNDATION LEVEL - CTFL
 
Istqb sample paper 2011- www.ajoysingha.info
Istqb sample paper   2011- www.ajoysingha.infoIstqb sample paper   2011- www.ajoysingha.info
Istqb sample paper 2011- www.ajoysingha.info
 
Chapter 5 - Improving the Testing Process
Chapter 5 -  Improving the Testing ProcessChapter 5 -  Improving the Testing Process
Chapter 5 - Improving the Testing Process
 
Chapter 1 - Requirement Engineering
Chapter 1 - Requirement EngineeringChapter 1 - Requirement Engineering
Chapter 1 - Requirement Engineering
 
Testing Center of Excellence - Keytorc Approach
Testing Center of Excellence -  Keytorc ApproachTesting Center of Excellence -  Keytorc Approach
Testing Center of Excellence - Keytorc Approach
 
Why RTM (Requirement Traceability Matrix) is important in testing?
Why RTM (Requirement Traceability Matrix) is important in testing?Why RTM (Requirement Traceability Matrix) is important in testing?
Why RTM (Requirement Traceability Matrix) is important in testing?
 
Chapter 3 - Test Techniques
Chapter 3 - Test TechniquesChapter 3 - Test Techniques
Chapter 3 - Test Techniques
 
Best Practices for Writing and Organizing QA Tests
Best Practices for Writing and Organizing QA TestsBest Practices for Writing and Organizing QA Tests
Best Practices for Writing and Organizing QA Tests
 
02 software test plan template
02 software test plan template02 software test plan template
02 software test plan template
 
Chapter 5 - Test Management
Chapter 5 - Test ManagementChapter 5 - Test Management
Chapter 5 - Test Management
 
Software Testing Life Cycle (STLC) | Software Testing Tutorial | Edureka
Software Testing Life Cycle (STLC) | Software Testing Tutorial | EdurekaSoftware Testing Life Cycle (STLC) | Software Testing Tutorial | Edureka
Software Testing Life Cycle (STLC) | Software Testing Tutorial | Edureka
 
Emerging QA COE Practice by Mukund Wangikar
Emerging QA COE Practice by Mukund WangikarEmerging QA COE Practice by Mukund Wangikar
Emerging QA COE Practice by Mukund Wangikar
 
TestLink introduction
TestLink introductionTestLink introduction
TestLink introduction
 
Software Testing Process
Software Testing ProcessSoftware Testing Process
Software Testing Process
 
Best Practices for Test Case Writing
Best Practices for Test Case WritingBest Practices for Test Case Writing
Best Practices for Test Case Writing
 
ISTQB / ISEB Foundation Exam Practice -1
ISTQB / ISEB Foundation Exam Practice -1ISTQB / ISEB Foundation Exam Practice -1
ISTQB / ISEB Foundation Exam Practice -1
 
Exploratory Testing Explained
Exploratory Testing ExplainedExploratory Testing Explained
Exploratory Testing Explained
 
Strategies For Software Test Documentation
Strategies For Software Test Documentation Strategies For Software Test Documentation
Strategies For Software Test Documentation
 
КАТЕРИНА АБЗЯТОВА - Getting ready for ISTQB Foundation 4.0: Overview and Q&A ...
КАТЕРИНА АБЗЯТОВА - Getting ready for ISTQB Foundation 4.0: Overview and Q&A ...КАТЕРИНА АБЗЯТОВА - Getting ready for ISTQB Foundation 4.0: Overview and Q&A ...
КАТЕРИНА АБЗЯТОВА - Getting ready for ISTQB Foundation 4.0: Overview and Q&A ...
 

Ähnlich wie B4 u solution_writing test cases from user stories and acceptance criteria

Generating Test Cases
Generating Test CasesGenerating Test Cases
Generating Test CasesVivekRajawat9
 
Software Testing interview - Q&A and tips
Software Testing interview - Q&A and tipsSoftware Testing interview - Q&A and tips
Software Testing interview - Q&A and tipsPankaj Dubey
 
Load testing web based applications
Load testing   web based applicationsLoad testing   web based applications
Load testing web based applicationsJitendra Yadav
 
Software Testing Principles and  Techniques
Software Testing Principles and  Techniques Software Testing Principles and  Techniques
Software Testing Principles and  Techniques suresh ramanujam
 
Sqa, test scenarios and test cases
Sqa, test scenarios and test casesSqa, test scenarios and test cases
Sqa, test scenarios and test casesConfiz
 
Testing Intelligence
Testing IntelligenceTesting Intelligence
Testing IntelligenceLalit Bhamare
 
Testing Software Solutions
Testing Software SolutionsTesting Software Solutions
Testing Software Solutionsgavhays
 
Specification-by-Example: A Cucumber Implementation
Specification-by-Example: A Cucumber ImplementationSpecification-by-Example: A Cucumber Implementation
Specification-by-Example: A Cucumber ImplementationTechWell
 
Effective Testing Practices in an Agile Environment
Effective Testing Practices in an Agile EnvironmentEffective Testing Practices in an Agile Environment
Effective Testing Practices in an Agile EnvironmentRaj Indugula
 
Agile testingandautomation
Agile testingandautomationAgile testingandautomation
Agile testingandautomationjeisner
 
38475471 qa-and-software-testing-interview-questions-and-answers
38475471 qa-and-software-testing-interview-questions-and-answers38475471 qa-and-software-testing-interview-questions-and-answers
38475471 qa-and-software-testing-interview-questions-and-answersMaria FutureThoughts
 
CHAPTER 1 BASIC CONCEPTS AND PRELIMINARIES
CHAPTER 1 BASIC CONCEPTS AND PRELIMINARIESCHAPTER 1 BASIC CONCEPTS AND PRELIMINARIES
CHAPTER 1 BASIC CONCEPTS AND PRELIMINARIESSamruddhi Sheth
 
Is Test Planning a lost art in Agile? by Michelle Williams
Is Test Planning a lost art in Agile? by Michelle WilliamsIs Test Planning a lost art in Agile? by Michelle Williams
Is Test Planning a lost art in Agile? by Michelle WilliamsQA or the Highway
 
Implementing a testing strategy
Implementing a testing strategyImplementing a testing strategy
Implementing a testing strategyDaniel Giraldo
 

Ähnlich wie B4 u solution_writing test cases from user stories and acceptance criteria (20)

Test case development
Test case developmentTest case development
Test case development
 
Generating Test Cases
Generating Test CasesGenerating Test Cases
Generating Test Cases
 
Software Testing interview - Q&A and tips
Software Testing interview - Q&A and tipsSoftware Testing interview - Q&A and tips
Software Testing interview - Q&A and tips
 
Effective Software Test Case Design Approach
Effective Software Test Case Design ApproachEffective Software Test Case Design Approach
Effective Software Test Case Design Approach
 
Load testing web based applications
Load testing   web based applicationsLoad testing   web based applications
Load testing web based applications
 
Testing Techniques.pptx
Testing Techniques.pptxTesting Techniques.pptx
Testing Techniques.pptx
 
Software Testing Principles and  Techniques
Software Testing Principles and  Techniques Software Testing Principles and  Techniques
Software Testing Principles and  Techniques
 
Test cases
Test casesTest cases
Test cases
 
Sqa, test scenarios and test cases
Sqa, test scenarios and test casesSqa, test scenarios and test cases
Sqa, test scenarios and test cases
 
Testing Intelligence
Testing IntelligenceTesting Intelligence
Testing Intelligence
 
Test case writing
Test case writingTest case writing
Test case writing
 
Testing Software Solutions
Testing Software SolutionsTesting Software Solutions
Testing Software Solutions
 
Specification-by-Example: A Cucumber Implementation
Specification-by-Example: A Cucumber ImplementationSpecification-by-Example: A Cucumber Implementation
Specification-by-Example: A Cucumber Implementation
 
Effective Testing Practices in an Agile Environment
Effective Testing Practices in an Agile EnvironmentEffective Testing Practices in an Agile Environment
Effective Testing Practices in an Agile Environment
 
Agile testingandautomation
Agile testingandautomationAgile testingandautomation
Agile testingandautomation
 
Testing overview
Testing overviewTesting overview
Testing overview
 
38475471 qa-and-software-testing-interview-questions-and-answers
38475471 qa-and-software-testing-interview-questions-and-answers38475471 qa-and-software-testing-interview-questions-and-answers
38475471 qa-and-software-testing-interview-questions-and-answers
 
CHAPTER 1 BASIC CONCEPTS AND PRELIMINARIES
CHAPTER 1 BASIC CONCEPTS AND PRELIMINARIESCHAPTER 1 BASIC CONCEPTS AND PRELIMINARIES
CHAPTER 1 BASIC CONCEPTS AND PRELIMINARIES
 
Is Test Planning a lost art in Agile? by Michelle Williams
Is Test Planning a lost art in Agile? by Michelle WilliamsIs Test Planning a lost art in Agile? by Michelle Williams
Is Test Planning a lost art in Agile? by Michelle Williams
 
Implementing a testing strategy
Implementing a testing strategyImplementing a testing strategy
Implementing a testing strategy
 

Mehr von b4usolution .

Agile_Scrum_B4USolution.pptx
Agile_Scrum_B4USolution.pptxAgile_Scrum_B4USolution.pptx
Agile_Scrum_B4USolution.pptxb4usolution .
 
2022_Bài 10_Thiết kế hệ thống thông tin trong logistics_Ths.Lê Thị Bích Hòa.pptx
2022_Bài 10_Thiết kế hệ thống thông tin trong logistics_Ths.Lê Thị Bích Hòa.pptx2022_Bài 10_Thiết kế hệ thống thông tin trong logistics_Ths.Lê Thị Bích Hòa.pptx
2022_Bài 10_Thiết kế hệ thống thông tin trong logistics_Ths.Lê Thị Bích Hòa.pptxb4usolution .
 
2022_Bài 9_Những vấn đề cơ bản về hệ thống thông tin trong logistics_Ths.Lê T...
2022_Bài 9_Những vấn đề cơ bản về hệ thống thông tin trong logistics_Ths.Lê T...2022_Bài 9_Những vấn đề cơ bản về hệ thống thông tin trong logistics_Ths.Lê T...
2022_Bài 9_Những vấn đề cơ bản về hệ thống thông tin trong logistics_Ths.Lê T...b4usolution .
 
2022_Bài 8_Một số ứng dụng TMDT khác và An Ninh TMDT_Ths.Lê Thị Bích Hòa.pptx
2022_Bài 8_Một số ứng dụng TMDT khác và An Ninh TMDT_Ths.Lê Thị Bích Hòa.pptx2022_Bài 8_Một số ứng dụng TMDT khác và An Ninh TMDT_Ths.Lê Thị Bích Hòa.pptx
2022_Bài 8_Một số ứng dụng TMDT khác và An Ninh TMDT_Ths.Lê Thị Bích Hòa.pptxb4usolution .
 
Agile_Scrum_B4USolution.pptx
Agile_Scrum_B4USolution.pptxAgile_Scrum_B4USolution.pptx
Agile_Scrum_B4USolution.pptxb4usolution .
 
B4USolution_Sexy qtest manager and automation tools to apply for full stack t...
B4USolution_Sexy qtest manager and automation tools to apply for full stack t...B4USolution_Sexy qtest manager and automation tools to apply for full stack t...
B4USolution_Sexy qtest manager and automation tools to apply for full stack t...b4usolution .
 
Sexy Using Cucumber - BDD in your project
Sexy Using Cucumber - BDD in your projectSexy Using Cucumber - BDD in your project
Sexy Using Cucumber - BDD in your projectb4usolution .
 
B4usolution_AI for automation
B4usolution_AI for automationB4usolution_AI for automation
B4usolution_AI for automationb4usolution .
 
b4usolution_Appium Mobile Automation Testing Made Awesome
b4usolution_AppiumMobile Automation Testing Made Awesomeb4usolution_AppiumMobile Automation Testing Made Awesome
b4usolution_Appium Mobile Automation Testing Made Awesomeb4usolution .
 
B4USolution_API-Testing
B4USolution_API-TestingB4USolution_API-Testing
B4USolution_API-Testingb4usolution .
 
B4usolution git git-hub
B4usolution git git-hubB4usolution git git-hub
B4usolution git git-hubb4usolution .
 
Select the right automation test tool in agile project
Select the right automation test tool in agile projectSelect the right automation test tool in agile project
Select the right automation test tool in agile projectb4usolution .
 
Introduction to blazemeter and jmeter
Introduction to blazemeter and jmeterIntroduction to blazemeter and jmeter
Introduction to blazemeter and jmeterb4usolution .
 

Mehr von b4usolution . (15)

Agile_Scrum_B4USolution.pptx
Agile_Scrum_B4USolution.pptxAgile_Scrum_B4USolution.pptx
Agile_Scrum_B4USolution.pptx
 
2022_Bài 10_Thiết kế hệ thống thông tin trong logistics_Ths.Lê Thị Bích Hòa.pptx
2022_Bài 10_Thiết kế hệ thống thông tin trong logistics_Ths.Lê Thị Bích Hòa.pptx2022_Bài 10_Thiết kế hệ thống thông tin trong logistics_Ths.Lê Thị Bích Hòa.pptx
2022_Bài 10_Thiết kế hệ thống thông tin trong logistics_Ths.Lê Thị Bích Hòa.pptx
 
2022_Bài 9_Những vấn đề cơ bản về hệ thống thông tin trong logistics_Ths.Lê T...
2022_Bài 9_Những vấn đề cơ bản về hệ thống thông tin trong logistics_Ths.Lê T...2022_Bài 9_Những vấn đề cơ bản về hệ thống thông tin trong logistics_Ths.Lê T...
2022_Bài 9_Những vấn đề cơ bản về hệ thống thông tin trong logistics_Ths.Lê T...
 
2022_Bài 8_Một số ứng dụng TMDT khác và An Ninh TMDT_Ths.Lê Thị Bích Hòa.pptx
2022_Bài 8_Một số ứng dụng TMDT khác và An Ninh TMDT_Ths.Lê Thị Bích Hòa.pptx2022_Bài 8_Một số ứng dụng TMDT khác và An Ninh TMDT_Ths.Lê Thị Bích Hòa.pptx
2022_Bài 8_Một số ứng dụng TMDT khác và An Ninh TMDT_Ths.Lê Thị Bích Hòa.pptx
 
Agile_Scrum_B4USolution.pptx
Agile_Scrum_B4USolution.pptxAgile_Scrum_B4USolution.pptx
Agile_Scrum_B4USolution.pptx
 
B4USolution_Sexy qtest manager and automation tools to apply for full stack t...
B4USolution_Sexy qtest manager and automation tools to apply for full stack t...B4USolution_Sexy qtest manager and automation tools to apply for full stack t...
B4USolution_Sexy qtest manager and automation tools to apply for full stack t...
 
Sexy Using Cucumber - BDD in your project
Sexy Using Cucumber - BDD in your projectSexy Using Cucumber - BDD in your project
Sexy Using Cucumber - BDD in your project
 
B4usolution_AI for automation
B4usolution_AI for automationB4usolution_AI for automation
B4usolution_AI for automation
 
b4usolution_Appium Mobile Automation Testing Made Awesome
b4usolution_AppiumMobile Automation Testing Made Awesomeb4usolution_AppiumMobile Automation Testing Made Awesome
b4usolution_Appium Mobile Automation Testing Made Awesome
 
B4USolution_API-Testing
B4USolution_API-TestingB4USolution_API-Testing
B4USolution_API-Testing
 
B4usolution git git-hub
B4usolution git git-hubB4usolution git git-hub
B4usolution git git-hub
 
Selenium IDE
Selenium IDESelenium IDE
Selenium IDE
 
Appium testing api
Appium testing apiAppium testing api
Appium testing api
 
Select the right automation test tool in agile project
Select the right automation test tool in agile projectSelect the right automation test tool in agile project
Select the right automation test tool in agile project
 
Introduction to blazemeter and jmeter
Introduction to blazemeter and jmeterIntroduction to blazemeter and jmeter
Introduction to blazemeter and jmeter
 

Kürzlich hochgeladen

08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsRoshan Dwivedi
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 

Kürzlich hochgeladen (20)

08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 

B4 u solution_writing test cases from user stories and acceptance criteria

  • 1. WRITING TEST CASES FROM USER STORIES AND ACCEPTANCE CRITERIA
  • 3. What Is A User Story? ○ User stories are short, simple descriptions of a feature told from the perspective of the person who desires the new capability, usually a user or customer of the system . ○ They usually follow a template like this: As a <type of user>, I want <some desired outcome> so that <some reason>. ○ Example: “As a customer, I want to be able to view the items in my cart so that I know for sure what I’m purchasing.”  Promote more discussion and collaboration with the whole team .  Used in agile model . 3
  • 4. Agile Features 1. ITERATIVE 4 2. INCREMENTAL & EVOLUTIONARY 6. VALUE-BASED DEVELOPMENT 5. FACE - TO - FACE COMMUNICATION 3. ADAPTIVE 4. EMPIRICAL PROCESS CONTROL
  • 5. 8 Benefits of Agile Software Development 1. STAKEHOLDER ENGAGEMENT 5 2. TRANSPARENCY 6. ALLOWS FOR CHANGE 5. EARLY AND PREDICTABLE DELIVERY 3. EARLY AND PREDICTABLE DELIVERY 7. FOCUSES ON BUSINESS VALUE 4. FOCUSES ON USERS 8. IMPROVES QUALITY
  • 6. The 3 C’s of User Stories ○ Card: stories are traditionally written on notecards,and these cards can be annotated with extra details ○ Conversation: details behind the story come out through conversations with the Product Owner. ○ Confirmation : Acceptance test confirm the story is finished and working as intended. 4
  • 7. A good user story matches the following model called “INVEST” created by Bill Wake: 1. INDEPENDENT Reduced dependencies = easier to plan; 7 2. NEGOTIABLE Details added via collaboration (with all parties mentioned above); 5. SMALL Can be done in less than a week by the team; 4. ESTIMABLE Too big or too vague = not estimable; 3. VALUABLE Provides value to the customer; 6. TESTABLE Good acceptance criteria
  • 8. What is requirements? ○ A statement of what should be tested in the AUT. ○ Functional Requirement: the requirement for the functions that the application should do. ○ Non-functional requirement: the requirement for the properties that the functions should have or should look like: - Look n Feel - Boundary - Negative ○ Examples: “User can login successfully with valid email and password.”  Lessmore discussion with the whole team.  Used in waterfall model . 8
  • 9. What is acceptance criteria? ○ Acceptance criteria are the “conditions that a software product must satisfy to be accepted by a user, customer or other stakeholders.” (Microsoft Press) o Acceptance criteria state the intent of the client and not the solution. 7
  • 10. The goals of Acceptance Criteria ? 1. TO CLARIFY what the team should build before they start work 10 2. TO ENSURE everyone has a common understanding of the problem 3. TO HELP VERIFY the Story via automated tests. 4. TO HELP the team members know when the Story is complete
  • 11. Who Writes Acceptance Criteria and When? ○ Either a client or a development team writes acceptance criteria. ○ Acceptance criteria should be specified upfront and never after the development stage has started. 9
  • 12. Creating Acceptance Criteria ? ○ There are several types of acceptance criteria: rules- oriented and scenario-oriented. ○ Scenario-oriented criteria tend to follow the “Given…When…Then…” template. This was derived from behavior-driven-development (BDD). ○ Scenario: Sending message through valid email address: - Given The email address is valid - When The email address is authenticated - Then The message is sent to the email address 9
  • 13. 13 What is BDD?  BDD (Behaviour Driven Development) is a methodology for developing software through continuous example-based communication between developers, QAs and BAs.
  • 14. Why choose The Given / When / Then format? ○ This format is convenient for humans (since it’s written in a familiar cause-and-effect manner) as well as for automated testing tools like Cucumber and RSpec. ○ The Given/When/Then template helps you reduce the time spent on writing test cases since you describe the system’s behaviour upfront. 9
  • 15. What is Test case? - A test case is a set of conditions or variables under which a tester will determine whether a system under test satisfies requirements or works correctly . 15 - A test that (ideally) executes a single well defined test object(i.e, a specific behavior of a feature under a specific condition). (Testing Computer Software-Kaner ,Faulk ,Nguyen)
  • 16. Why write test case ? 1. Accountability 16 2. Reproducibility 6. To verify that tests are being executed correctly 7. To measure test coverage 3. Tracking 4. Automation 5. To find bugs
  • 17. 17 Test case template TC ID The ID of the test case. TC Description The description/ objective of the test case. Pre-Condition Any prerequisites or preconditions that must be fulfilled prior to executing the test. Steps Step-by-step procedure to execute the test. Input data The test data, or links to the test data, that are to be used while conducting the test. Expected Result The expected result of the test. Actual result The actual result of the test; to be filled after executing the test. Status Pass ,Fail , Blocked or Skipped Build Sprint Testcase of any sprint? Test Environment The environment (Hardware/Software/Network) in which the test was executed Bug_ID Fail or Blocked will have BugID Note Your comment
  • 18. Design Techniques : ○ Equivalent Partitioning ○ Boundary Analysis ○ State Transition ○ Constraint Analysis ○ Condition Combination 9
  • 19. 19 Equivalent Partitioning & Boundary Analysis  The program’s specification: - This program is designed to add two number, which you will enter. - Each number should be one or two digits.
  • 21. 21 State Transition TC No. 1 2 3 4 5 6 7 Login 1st 1st 2nd 2nd 3rd 3rd login 3 times are wrong, after 24 hours Account valid invalid valid invalid valid invalid Status Login successfully Blocked Login successfully Blocked Login successfully Blocked Login again
  • 22. 22 Constraint Analysis The value of End Date is constrained Start Date , because End date can’t be earlier than Start date.
  • 24. 24 Condition Combination Case Size Color 1 1 Green 2 1 Blue 3 1 Black 4 1 White 5 2 Green 6 2 Blue 7 2 Black 8 2 White Case Size Color 9 3 Green 10 3 Blue 11 3 Black 12 3 White 13 4 Green 14 4 Blue 15 4 Black 16 4 White
  • 25. Writing Test Cases from Acceptance Criteria 15 1
  • 26. Visualize the Workflow 15 Example: What do you see when the user clicks “Order history” ? What happens when they click “Add to cart”? If the user clicks the “Back” button, what is displayed?
  • 27. Create the Happy Path ○ “Happy path” can cover a large portion of the workflow and if it doesn’t work smoothly, the rest of your testing may be blocked. Boundary Analysis ○ Example : 1. Purchase items from general search 2. Click order history from accounts page 3. Verify previously ordered items are displayed 4. Add items to cart from the previously ordered list 5. Complete purchase of previously ordered items When the code is delivered for testing, this would be would execute. 9
  • 28. Negative testing 28 - What are all possible error cases that can happen? System issue occurs. What errors are displayed throughout the website when a system issue occurs ?  Create a test case to verify every error is displayed when it should be.
  • 29. Boundary testing - How many items from order history should be displayed? If it’s not in the acceptance criteria, this needs to be addressed with the BA or product owner. The developer may code this to display all items from a customer’s history but what happens when a user has an order history of 5,000 items?  the product owner may decide they need to create more user stories to add sorting, filtering and pagination. 29
  • 30. Reference ○ http://b4usolution.com/news/detail/writing-test-cases-from-user- story-and-acceptance-criteria/30/ ○ https://blog.testlodge.com/writing-test-cases-from-user-stories- acceptance-criteria/ ○ https://www.slideshare.net/hoale/writing-test-cases-from-user- stories-and-acceptance-criteria ○ https://rubygarage.org/blog/clear-acceptance-criteria-and-why- its-important ○ https://itviec.com/blog/agile-la-gi-scrum-la-gi/ ○ https://www.testingexcellence.com/bdd-guidelines-best-practices/ ○ https://www.seguetech.com/8-benefits-of-agile-software- development/ ○ 30