SlideShare a Scribd company logo
1 of 54
Download to read offline
Test case and BUG report
Andrey Oleynik
2014
Agenda
1. Test Case.
2. Examples.
3. BDD.
4. Examples.
5. Defects
6. BUG Report
7. Examples
8. Good BUG
9. Additional links
2
About myself
Andrey Oleynik
• About 7 years of
work in Quality
Assurance area
• QA Automation
Engineer
• PhD, Theoretical
physics
3
What is a Test Case?
• A set of input values, execution preconditions,
expected results and execution postconditions,
developed for a particular objective or test condition,
such as to exercise a particular program path or to
verify compliance with a specific requirement. [IEEE]
• Documentation specifying inputs, predicted results, and
a set of execution conditions for a test item. [ANSI]
• A test case is a bunch of steps that lead to consider one
"item" as successfully working.
4
Why do we write
test cases?
• The basic objective of writing test cases
is to validate the testing coverage of the
application
• Usually QA engineers follow the test
cases standards
• So writing test cases brings some sort
of standardization and minimizes the
ad-hoc approach in testing
5
What information would
the test manager want
out of test case
document/s?
• Which features have been tested/ will be tested
eventually?
• How many user scenarios/ use cases have been
executed?
• How many features are stable?
• Which features need more work?
• Are sufficient input combinations exercised?
• Is software ready to ship? Is testing enough?
• What is the quality of the application?
6
Test Case design
• Specification based testing;
• Input Domain testing;
• Risk based testing;
• Scenario testing.
7
Test Case Fields
(the most important)
• Test Case id
• Title
• Priority
• Description
• Steps
• Expected result
• Feature/Area 8
Test Case fields
• Test case status
(Idea/Design/Ready/Update/etc.)
• Product version
• Responsible person
• Preparation notes
• Notes to clean the system
• Attachments
• Examples
• Linked feature/requirement/bug
• ...
9
HP ALM example
10
ALM example
(Test Case steps)
11
Execution example
(ALM)
12
Example
Title: Open file.
Description: a file can be opened in the Application.
1. Launch the Application.
2. Select "File" menu.
File menu pulls down.
3. Choose "Open“.
"Open" dialog box appears.
4. Select a file to open.
5. Click OK.
Expected result: File should be opened.
13
Important:
1. Template
2. Descriptive and specific
3. Reusable
4. Atomic
5. Positive and negative
6. Refactor
7. Test data
8. Setup and tear down
9. Test Case review
10. Screenshots
14
Test Suite
• A test suite is a set of related tests, usually
pertaining to a group of features or software
component and usually defined over the same
database. Suites are combined into groups.
[Beizer]
15
Test management tools
• Gemini
• HP ALM (QC)
• IBM Rational Quality Manager
• Meliora Testlab
• Seapine TestTrack
• TestLink
• Google Docs !
• …
16
Q & A
17
Testing pyramid
18
TDD
Test-driven development is a software
development methodology which
essentially states that for each unit of
software, a software developer must:
• define a test set for the unit first;
• then implement the unit;
• finally verify that the implementation of
the unit makes the tests succeed.
19
TDD
• Java (Junit, TestNG);
• C (Check, CUnit);
• C++ (Boost, CppUnit, CppUnitLite, Google
Test);
• C# (xUnit, NUnit, MSTest);
• Ruby (Test::Unit, Shoulda, RSpec);
• Python (pyUnit, py.test, doctest);
• …
20
BDD
• Behavior-driven development is a specialized version
of test-driven development which focuses on
behavioral specification of software units.
• Behavior-driven development specifies that tests of
any unit of software should be specified in terms of
the desired behavior of the unit.
21
BDD
22
Title
The story should have a clear, explicit title.
Narrative
A short, introductory section that specifies
•who
•which effect the stakeholder wants the story to have
•what business value the stakeholder will derive from
this effect
Acceptance criteria or scenarios
a description of each specific case of the narrative.
•It starts by specifying the initial condition
•It then states which event triggers the start of the
scenario.
•Finally, it states the expected outcome, in one or more
clauses.
BDD example
23
Feature: New account
In order to have new ready to use account
As a user
I want to get an account with balance $0
Scenario: Create new account
Given I have no account
When I create an account
Then I should have an account with balance $0
BDD
• Jbehave (Java)
• Thucidydes
• Rspec (Ruby)
• Cucumber
• SpecFlow (C#)
• …
24
Q & A
25
What is a BUG
(defect)?
• A flaw in a component or system
that can cause the component or
system to fail to perform its
required function, e.g. an
incorrect statement or data
definition. A defect, if
encountered during execution,
may cause a failure of the
component or system.
26
BUG
(Harvard Mark II, 1947)
27
Another BUG definition
• A software bug is an error,
flaw, failure, or fault in a
computer program or system
that produces an incorrect or
unexpected result, or causes
it to behave in unintended
ways.[Wikipedia]
28
BUG names
• Mistake
• Anomaly
• Fault
• Failure
• Error
• Exception
• Crash
• Bug
• Defect
• Incident
• Side Effect
• Change request
29
Types of BUGs
• UI
• Functional issues
• Programming logic
• Installation
• Memory allocation
• System resources
• Documentation
• Requirements
• Localization (L10N)
• Internalization (I18N)
• Performance
• Security
• …
30
How to find a bug?
• Understand the whole
application in depth
• Prepare good test cases and test
data before testing
• Execute tests with different test
environment
• Compare actual and expected
results
31
What to do next?
• Do monkey testing
• Use test data pattern from
previous versions/projects
• Check standard scenarios from
other products
• Try to break the application!
32
BUG report
Defect/BUG report: A document reporting on
any flaw in a component or system that can
cause the component or system to fail to
perform its required function. [IEEE]
33
“The point of writing problem
report(bug report) is to get bugs
fixed” [Cem Kaner].
Defect Fields
(the most important)
• Bug ID
• Summary
• Description/Steps to Reproduce
• Expected/Actual result
• Status
• Severity
• Priority
• Detected by
• Assigned to
• Module/Area
34
Defect Fields
• Environment
• Reproducible
• Fixed in Version
• Detected Date
• Modified/Last Updated
• Detected in Version/Build Version
• Comments
• Attachments
• Linked testcases/requirements/defects
35
Defect Life Cycle
36
Defect Resolution
37
Defect Resolution
• Fixed
• Won't Fix
• Not Reproducible
• Duplicate
• By Design
• External / 3d party
38
Defect Severity
1 - Urgent
• (Critical)
• Data loss or corruption. Product is down. Customer operations are
impacted very seriously. There is no any workaround.
• For documentation: copyright or offensive content issues,
documentation steps lead to data loss or corruption.
2- High
• (Serious)
• System / feature is still usable to a high degree but has a serious
issue. Defect has serious customer business impact.
• Some data is at risk. No obvious workaround.
• For documentation: core functionality is not described.
39
Defect Severity
3 - Medium
• Product operational
• Application customer data is not at risk.
• Obvious/easy workaround available.
• Non informative error reporting.
• For documentation: Conceptual information is incorrect or
incomplete.
4 - Low
• It is more of a cosmetic issue. No serious impedance to
system functionality is noted. Annoyances.
• For documentation: typography, formatting.
40
Priority
0. Show-stopper - this needs to be fixed right now,
everything else can wait, the build cannot be
released with this defect
1. Urgent - needs to be fixed before any other high,
medium or low defect should be fixed
2. High - should be fixed as early as possible
3. Medium - should take precedence over low
priority defects
4. Low - fixing can be deferred until all other priority
defects are fixed
41
JIRA example
42
ALM/QC example
43
BUG example
Title/Summary: Application crash on clicking the Browse button while file open.
Area: File operations Build Number: x.x.x
Severity: HIGH Priority: HIGH
Status: New/Open/Active
Environment: Windows 2008
Steps To Reproduce:
1) Launch the application
2) Open menu File -> Open.
3) Click on ‘Browse’ button
Actual result: Application crash.
Expected result: On clicking Browse button file browse dialogue should be
opened.
Notes: the screenshot and the logs are attached. 44
Good BUG
1. Short and precise title
2. Concise but complete description: Steps to
reproduce, consequences of the bug, and
suggested behavior
3. Good attachments
4. Complete definition of the categorizing fields
5. Correct Severity & Priority
6. Follow-up and comment
45
Good BUG
7. Include the Results you Expected
8. Include the Results you Actually Observed
9. Explain the Impact on the Customer
10. Avoid speculation
11. Be careful of the tone of your report
12. Avoid duplication - search first (!)
46
Collaboration
• QA engineers and developers are not in fight
but are partners
• The main thing is product and its quality
47
BUG Tracking Systems
• Gemini
• HP ALM (QC)
• IBM Rational Quality Manager
• JIRA
• Seapine TestTrack
• Bugzilla
• Google Docs !
• …
48
More details
49
• Software testing Help:
http://www.softwaretestinghelp.com/
• Про Тестинг: http://www.protesting.ru/
• http://software-testing.ru
• What is severity and priority in software testing?
http://istqbexamcertification.com/what-is-severity-
and-priority-in-software-testing/
• IEEE Std 1044-1993 IEEE Standard Classification for
Software Anomalies
http://standards.ieee.org/findstds/standard/1044-
1993.html
• ISTQB® Glossary
http://www.istqb.org/downloads/viewcategory/20
.html
More details
50
• Сэм Канер, Джек Фолк Тестирование программного
обеспечения
• Роман Савин Тестирование Дот Ком, или Пособие по
жестокому обращению с багами в интернет-стартапах
• Луиза Тамре Введение в тестирование программного
обеспечения
More details
51
• Introducing BDD by Dan North
http://dannorth.net/introducing-bdd/
• Портал об автоматизации тестирования ПО:
http://automated-testing.info/
• Конференции sqadays: http://www.sqadays.com
• Software testing Help: http://www.softwaretestinghelp.com/
• Про Тестинг: http://www.protesting.ru/
• http://software-testing.ru
More details
52
• Э.Дастин, Дж. Рэшка, Дж.Пол Автоматизированное тестирование
программного обеспечения. Внедрение, управление и эксплуатация
• Matt Wynne and Aslak Hellesoy The Cucumber Book: Behaviour-Driven
Development for Testers and Developers
• Криспин, Грегори Гибкое тестирование
Q & A
53
The End
• Thank you!
54

More Related Content

What's hot

Bug reporting and tracking
Bug reporting and trackingBug reporting and tracking
Bug reporting and trackingVadym Muliavka
 
Acceptance criteria
Acceptance criteriaAcceptance criteria
Acceptance criteriaSoftheme
 
Software Testing Fundamentals
Software Testing FundamentalsSoftware Testing Fundamentals
Software Testing FundamentalsChankey Pathak
 
Software requirement specification
Software requirement specificationSoftware requirement specification
Software requirement specificationshiprashakya2
 
Software Testing Basics
Software Testing BasicsSoftware Testing Basics
Software Testing BasicsBelal Raslan
 
Presentation On Software Testing Bug Life Cycle
Presentation On Software Testing Bug Life CyclePresentation On Software Testing Bug Life Cycle
Presentation On Software Testing Bug Life CycleRajon
 
Software testing.ppt
Software testing.pptSoftware testing.ppt
Software testing.pptKomal Garg
 
Manual testing interview questions by infotech
Manual testing interview questions by infotech Manual testing interview questions by infotech
Manual testing interview questions by infotech suhasreddy1
 
Manual software-testing-interview-questions-with-answers
Manual software-testing-interview-questions-with-answersManual software-testing-interview-questions-with-answers
Manual software-testing-interview-questions-with-answersSachin Gupta
 
Test cases for effective testing - part 1
Test cases for effective testing - part 1Test cases for effective testing - part 1
Test cases for effective testing - part 1Mona M. Abd El-Rahman
 
Defects in software testing
Defects in software testingDefects in software testing
Defects in software testingsandeepsingh2808
 
Dynamic Testing
Dynamic TestingDynamic Testing
Dynamic TestingJimi Patel
 
Software Testing - Part 1 (Techniques, Types, Levels, Methods, STLC, Bug Life...
Software Testing - Part 1 (Techniques, Types, Levels, Methods, STLC, Bug Life...Software Testing - Part 1 (Techniques, Types, Levels, Methods, STLC, Bug Life...
Software Testing - Part 1 (Techniques, Types, Levels, Methods, STLC, Bug Life...Ankit Prajapati
 

What's hot (20)

Software testing
Software testingSoftware testing
Software testing
 
Bug reporting and tracking
Bug reporting and trackingBug reporting and tracking
Bug reporting and tracking
 
Acceptance criteria
Acceptance criteriaAcceptance criteria
Acceptance criteria
 
Software Testing Fundamentals
Software Testing FundamentalsSoftware Testing Fundamentals
Software Testing Fundamentals
 
Software requirement specification
Software requirement specificationSoftware requirement specification
Software requirement specification
 
Software Testing Basics
Software Testing BasicsSoftware Testing Basics
Software Testing Basics
 
Presentation On Software Testing Bug Life Cycle
Presentation On Software Testing Bug Life CyclePresentation On Software Testing Bug Life Cycle
Presentation On Software Testing Bug Life Cycle
 
Software testing ppt
Software testing pptSoftware testing ppt
Software testing ppt
 
Software testing.ppt
Software testing.pptSoftware testing.ppt
Software testing.ppt
 
Alpha & Beta Testing
Alpha & Beta TestingAlpha & Beta Testing
Alpha & Beta Testing
 
Manual testing interview questions by infotech
Manual testing interview questions by infotech Manual testing interview questions by infotech
Manual testing interview questions by infotech
 
Manual software-testing-interview-questions-with-answers
Manual software-testing-interview-questions-with-answersManual software-testing-interview-questions-with-answers
Manual software-testing-interview-questions-with-answers
 
Test cases for effective testing - part 1
Test cases for effective testing - part 1Test cases for effective testing - part 1
Test cases for effective testing - part 1
 
Bug life cycle
Bug life cycleBug life cycle
Bug life cycle
 
Defects in software testing
Defects in software testingDefects in software testing
Defects in software testing
 
Dynamic Testing
Dynamic TestingDynamic Testing
Dynamic Testing
 
Requirements Engineering
Requirements EngineeringRequirements Engineering
Requirements Engineering
 
Software Verification & Validation
Software Verification & ValidationSoftware Verification & Validation
Software Verification & Validation
 
Software Testing - Part 1 (Techniques, Types, Levels, Methods, STLC, Bug Life...
Software Testing - Part 1 (Techniques, Types, Levels, Methods, STLC, Bug Life...Software Testing - Part 1 (Techniques, Types, Levels, Methods, STLC, Bug Life...
Software Testing - Part 1 (Techniques, Types, Levels, Methods, STLC, Bug Life...
 
Types of testing
Types of testingTypes of testing
Types of testing
 

Viewers also liked

Finding bugs, categorizing bugs and writing good bug reports
Finding bugs, categorizing bugs and writing good bug reportsFinding bugs, categorizing bugs and writing good bug reports
Finding bugs, categorizing bugs and writing good bug reportssachxn1
 
Exploratory testing
Exploratory testingExploratory testing
Exploratory testingGleb Rybalko
 
Structured Functional Automated Web Service Testing
Structured Functional Automated Web Service TestingStructured Functional Automated Web Service Testing
Structured Functional Automated Web Service Testingrdekleijn
 
Викторина для тестировщиков
Викторина для тестировщиковВикторина для тестировщиков
Викторина для тестировщиковUladzimir Kryvenka
 
Тестирование тестировщиков. Нейрофидбэк в QA
Тестирование тестировщиков. Нейрофидбэк в QAТестирование тестировщиков. Нейрофидбэк в QA
Тестирование тестировщиков. Нейрофидбэк в QASQALab
 
Innovatón: User experience UX - Storytelling
Innovatón: User experience UX - StorytellingInnovatón: User experience UX - Storytelling
Innovatón: User experience UX - StorytellingInnovación Educativa
 
Mobile game testing report
Mobile game testing reportMobile game testing report
Mobile game testing reportQA Madness
 
собеседование тестировщиков что спросить и как ответить
собеседование тестировщиков   что спросить и как ответитьсобеседование тестировщиков   что спросить и как ответить
собеседование тестировщиков что спросить и как ответитьAlex Baranouski
 
Storytelling and the Art of Getting the Design Job
Storytelling and the Art of Getting the Design JobStorytelling and the Art of Getting the Design Job
Storytelling and the Art of Getting the Design JobUXPA International
 
Секреты становления тестировщика
Секреты становления тестировщикаСекреты становления тестировщика
Секреты становления тестировщикаSQALab
 
Agile & ALM tools
Agile & ALM toolsAgile & ALM tools
Agile & ALM toolsLarry Cai
 
Test strategy &-testplanning
Test strategy &-testplanningTest strategy &-testplanning
Test strategy &-testplanningsrivinayak
 
Mobile application testing
Mobile application testingMobile application testing
Mobile application testingSoftheme
 
Software Testing Process, Testing Automation and Software Testing Trends
Software Testing Process, Testing Automation and Software Testing TrendsSoftware Testing Process, Testing Automation and Software Testing Trends
Software Testing Process, Testing Automation and Software Testing TrendsKMS Technology
 
Testing Checklist for Mobile Applications-By Anurag Khode
Testing Checklist for Mobile Applications-By Anurag KhodeTesting Checklist for Mobile Applications-By Anurag Khode
Testing Checklist for Mobile Applications-By Anurag KhodeAnurag Khode
 
Software Testing - Defect/Bug Life Cycle - Complete Flow Chart of Defect States
Software Testing - Defect/Bug Life Cycle - Complete Flow Chart of Defect StatesSoftware Testing - Defect/Bug Life Cycle - Complete Flow Chart of Defect States
Software Testing - Defect/Bug Life Cycle - Complete Flow Chart of Defect StateseVideoTuition
 
Mobile Application Testing
Mobile Application TestingMobile Application Testing
Mobile Application TestingSWAAM Tech
 

Viewers also liked (20)

Finding bugs, categorizing bugs and writing good bug reports
Finding bugs, categorizing bugs and writing good bug reportsFinding bugs, categorizing bugs and writing good bug reports
Finding bugs, categorizing bugs and writing good bug reports
 
Exploratory testing
Exploratory testingExploratory testing
Exploratory testing
 
Structured Functional Automated Web Service Testing
Structured Functional Automated Web Service TestingStructured Functional Automated Web Service Testing
Structured Functional Automated Web Service Testing
 
Software bug prediction
Software bug prediction Software bug prediction
Software bug prediction
 
Web Services Testing
Web Services TestingWeb Services Testing
Web Services Testing
 
Викторина для тестировщиков
Викторина для тестировщиковВикторина для тестировщиков
Викторина для тестировщиков
 
Тестирование тестировщиков. Нейрофидбэк в QA
Тестирование тестировщиков. Нейрофидбэк в QAТестирование тестировщиков. Нейрофидбэк в QA
Тестирование тестировщиков. Нейрофидбэк в QA
 
Innovatón: User experience UX - Storytelling
Innovatón: User experience UX - StorytellingInnovatón: User experience UX - Storytelling
Innovatón: User experience UX - Storytelling
 
Mobile game testing report
Mobile game testing reportMobile game testing report
Mobile game testing report
 
собеседование тестировщиков что спросить и как ответить
собеседование тестировщиков   что спросить и как ответитьсобеседование тестировщиков   что спросить и как ответить
собеседование тестировщиков что спросить и как ответить
 
Storytelling and the Art of Getting the Design Job
Storytelling and the Art of Getting the Design JobStorytelling and the Art of Getting the Design Job
Storytelling and the Art of Getting the Design Job
 
Секреты становления тестировщика
Секреты становления тестировщикаСекреты становления тестировщика
Секреты становления тестировщика
 
Agile & ALM tools
Agile & ALM toolsAgile & ALM tools
Agile & ALM tools
 
Test strategy &-testplanning
Test strategy &-testplanningTest strategy &-testplanning
Test strategy &-testplanning
 
Test Reports
Test ReportsTest Reports
Test Reports
 
Mobile application testing
Mobile application testingMobile application testing
Mobile application testing
 
Software Testing Process, Testing Automation and Software Testing Trends
Software Testing Process, Testing Automation and Software Testing TrendsSoftware Testing Process, Testing Automation and Software Testing Trends
Software Testing Process, Testing Automation and Software Testing Trends
 
Testing Checklist for Mobile Applications-By Anurag Khode
Testing Checklist for Mobile Applications-By Anurag KhodeTesting Checklist for Mobile Applications-By Anurag Khode
Testing Checklist for Mobile Applications-By Anurag Khode
 
Software Testing - Defect/Bug Life Cycle - Complete Flow Chart of Defect States
Software Testing - Defect/Bug Life Cycle - Complete Flow Chart of Defect StatesSoftware Testing - Defect/Bug Life Cycle - Complete Flow Chart of Defect States
Software Testing - Defect/Bug Life Cycle - Complete Flow Chart of Defect States
 
Mobile Application Testing
Mobile Application TestingMobile Application Testing
Mobile Application Testing
 

Similar to Test cases and bug report v3.2

Software testing introduction
Software testing introductionSoftware testing introduction
Software testing introductionSriman Eshwar
 
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
 
Software Testing Future and Challenges
Software Testing Future and ChallengesSoftware Testing Future and Challenges
Software Testing Future and ChallengesBakr Salim
 
Software testing for biginners
Software testing for biginnersSoftware testing for biginners
Software testing for biginnersSriman Eshwar
 
1779905011SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS.pptx
1779905011SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS.pptx1779905011SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS.pptx
1779905011SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS.pptxabhivastrad007
 
Sqa, test scenarios and test cases
Sqa, test scenarios and test casesSqa, test scenarios and test cases
Sqa, test scenarios and test casesConfiz
 
HP Quality Center
HP Quality CenterHP Quality Center
HP Quality CenterANKUR-BA
 
Test Management Tool HP ALM- Quality Center Part 2
Test Management Tool  HP ALM- Quality Center Part 2Test Management Tool  HP ALM- Quality Center Part 2
Test Management Tool HP ALM- Quality Center Part 2Murageppa-QA
 
Quality Center
Quality CenterQuality Center
Quality CenterSachin-QA
 
Test Management Tool HP ALM- Quality Center Part 1
Test Management Tool  HP ALM- Quality Center Part 1Test Management Tool  HP ALM- Quality Center Part 1
Test Management Tool HP ALM- Quality Center Part 1Murageppa-QA
 
Manual Testing Interview Questions & Answers.docx
Manual Testing Interview Questions & Answers.docxManual Testing Interview Questions & Answers.docx
Manual Testing Interview Questions & Answers.docxssuser305f65
 
201008 Software Testing Notes (part 1/2)
201008 Software Testing Notes (part 1/2)201008 Software Testing Notes (part 1/2)
201008 Software Testing Notes (part 1/2)Javier Gonzalez-Sanchez
 
Testing - How Vital and How Easy to use
Testing - How Vital and How Easy to useTesting - How Vital and How Easy to use
Testing - How Vital and How Easy to useUma Ghotikar
 
Software testing interview Q&A – Part 2
Software testing interview Q&A – Part 2Software testing interview Q&A – Part 2
Software testing interview Q&A – Part 2Khoa Bui
 

Similar to Test cases and bug report v3.2 (20)

Software testing introduction
Software testing introductionSoftware testing introduction
Software testing introduction
 
L software testing
L   software testingL   software testing
L software testing
 
Testing Plan
Testing PlanTesting Plan
Testing Plan
 
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
 
Test Driven Development
Test Driven DevelopmentTest Driven Development
Test Driven Development
 
Software Testing Future and Challenges
Software Testing Future and ChallengesSoftware Testing Future and Challenges
Software Testing Future and Challenges
 
Ch11lect1 ud
Ch11lect1 udCh11lect1 ud
Ch11lect1 ud
 
Software testing for biginners
Software testing for biginnersSoftware testing for biginners
Software testing for biginners
 
1779905011SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS.pptx
1779905011SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS.pptx1779905011SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS.pptx
1779905011SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS.pptx
 
Sqa, test scenarios and test cases
Sqa, test scenarios and test casesSqa, test scenarios and test cases
Sqa, test scenarios and test cases
 
Gcs day1
Gcs day1Gcs day1
Gcs day1
 
HP Quality Center
HP Quality CenterHP Quality Center
HP Quality Center
 
Test Management Tool HP ALM- Quality Center Part 2
Test Management Tool  HP ALM- Quality Center Part 2Test Management Tool  HP ALM- Quality Center Part 2
Test Management Tool HP ALM- Quality Center Part 2
 
Quality Center
Quality CenterQuality Center
Quality Center
 
Test Management Tool HP ALM- Quality Center Part 1
Test Management Tool  HP ALM- Quality Center Part 1Test Management Tool  HP ALM- Quality Center Part 1
Test Management Tool HP ALM- Quality Center Part 1
 
HP ALM QC
HP ALM QCHP ALM QC
HP ALM QC
 
Manual Testing Interview Questions & Answers.docx
Manual Testing Interview Questions & Answers.docxManual Testing Interview Questions & Answers.docx
Manual Testing Interview Questions & Answers.docx
 
201008 Software Testing Notes (part 1/2)
201008 Software Testing Notes (part 1/2)201008 Software Testing Notes (part 1/2)
201008 Software Testing Notes (part 1/2)
 
Testing - How Vital and How Easy to use
Testing - How Vital and How Easy to useTesting - How Vital and How Easy to use
Testing - How Vital and How Easy to use
 
Software testing interview Q&A – Part 2
Software testing interview Q&A – Part 2Software testing interview Q&A – Part 2
Software testing interview Q&A – Part 2
 

More from Andrey Oleynik

IT Talk TestNG 6 vs JUnit 4
IT Talk TestNG 6 vs JUnit 4IT Talk TestNG 6 vs JUnit 4
IT Talk TestNG 6 vs JUnit 4Andrey Oleynik
 
API Testing. Streamline your testing process.
API Testing. Streamline your testing process.API Testing. Streamline your testing process.
API Testing. Streamline your testing process.Andrey Oleynik
 
Lecture #6. automation testing (andrey oleynik)
Lecture #6. automation testing (andrey oleynik)Lecture #6. automation testing (andrey oleynik)
Lecture #6. automation testing (andrey oleynik)Andrey Oleynik
 
Lecture #4. Requirements & tasks (Andrey Oleynik)
Lecture #4. Requirements & tasks (Andrey Oleynik)Lecture #4. Requirements & tasks (Andrey Oleynik)
Lecture #4. Requirements & tasks (Andrey Oleynik)Andrey Oleynik
 
Nature of thermodynamic and kinetic properties of water on the liquid-vapour ...
Nature of thermodynamic and kinetic properties of water on the liquid-vapour ...Nature of thermodynamic and kinetic properties of water on the liquid-vapour ...
Nature of thermodynamic and kinetic properties of water on the liquid-vapour ...Andrey Oleynik
 

More from Andrey Oleynik (7)

IT Talk TestNG 6 vs JUnit 4
IT Talk TestNG 6 vs JUnit 4IT Talk TestNG 6 vs JUnit 4
IT Talk TestNG 6 vs JUnit 4
 
API Testing. Streamline your testing process.
API Testing. Streamline your testing process.API Testing. Streamline your testing process.
API Testing. Streamline your testing process.
 
Deep dive into SoapUI
Deep dive into SoapUIDeep dive into SoapUI
Deep dive into SoapUI
 
TestNG vs. JUnit4
TestNG vs. JUnit4TestNG vs. JUnit4
TestNG vs. JUnit4
 
Lecture #6. automation testing (andrey oleynik)
Lecture #6. automation testing (andrey oleynik)Lecture #6. automation testing (andrey oleynik)
Lecture #6. automation testing (andrey oleynik)
 
Lecture #4. Requirements & tasks (Andrey Oleynik)
Lecture #4. Requirements & tasks (Andrey Oleynik)Lecture #4. Requirements & tasks (Andrey Oleynik)
Lecture #4. Requirements & tasks (Andrey Oleynik)
 
Nature of thermodynamic and kinetic properties of water on the liquid-vapour ...
Nature of thermodynamic and kinetic properties of water on the liquid-vapour ...Nature of thermodynamic and kinetic properties of water on the liquid-vapour ...
Nature of thermodynamic and kinetic properties of water on the liquid-vapour ...
 

Recently uploaded

Balasore Best It Company|| Top 10 IT Company || Balasore Software company Odisha
Balasore Best It Company|| Top 10 IT Company || Balasore Software company OdishaBalasore Best It Company|| Top 10 IT Company || Balasore Software company Odisha
Balasore Best It Company|| Top 10 IT Company || Balasore Software company Odishasmiwainfosol
 
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfGOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfAlina Yurenko
 
A healthy diet for your Java application Devoxx France.pdf
A healthy diet for your Java application Devoxx France.pdfA healthy diet for your Java application Devoxx France.pdf
A healthy diet for your Java application Devoxx France.pdfMarharyta Nedzelska
 
What is Advanced Excel and what are some best practices for designing and cre...
What is Advanced Excel and what are some best practices for designing and cre...What is Advanced Excel and what are some best practices for designing and cre...
What is Advanced Excel and what are some best practices for designing and cre...Technogeeks
 
MYjobs Presentation Django-based project
MYjobs Presentation Django-based projectMYjobs Presentation Django-based project
MYjobs Presentation Django-based projectAnoyGreter
 
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio, Inc.
 
What are the key points to focus on before starting to learn ETL Development....
What are the key points to focus on before starting to learn ETL Development....What are the key points to focus on before starting to learn ETL Development....
What are the key points to focus on before starting to learn ETL Development....kzayra69
 
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...Matt Ray
 
Best Web Development Agency- Idiosys USA.pdf
Best Web Development Agency- Idiosys USA.pdfBest Web Development Agency- Idiosys USA.pdf
Best Web Development Agency- Idiosys USA.pdfIdiosysTechnologies1
 
Intelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmIntelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmSujith Sukumaran
 
Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)
Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)
Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)jennyeacort
 
Unveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsUnveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsAhmed Mohamed
 
What is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWhat is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWave PLM
 
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte GermanySuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte GermanyChristoph Pohl
 
Ahmed Motair CV April 2024 (Senior SW Developer)
Ahmed Motair CV April 2024 (Senior SW Developer)Ahmed Motair CV April 2024 (Senior SW Developer)
Ahmed Motair CV April 2024 (Senior SW Developer)Ahmed Mater
 
How to Track Employee Performance A Comprehensive Guide.pdf
How to Track Employee Performance A Comprehensive Guide.pdfHow to Track Employee Performance A Comprehensive Guide.pdf
How to Track Employee Performance A Comprehensive Guide.pdfLivetecs LLC
 
Software Project Health Check: Best Practices and Techniques for Your Product...
Software Project Health Check: Best Practices and Techniques for Your Product...Software Project Health Check: Best Practices and Techniques for Your Product...
Software Project Health Check: Best Practices and Techniques for Your Product...Velvetech LLC
 
Recruitment Management Software Benefits (Infographic)
Recruitment Management Software Benefits (Infographic)Recruitment Management Software Benefits (Infographic)
Recruitment Management Software Benefits (Infographic)Hr365.us smith
 
Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...
Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...
Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...Cizo Technology Services
 

Recently uploaded (20)

Balasore Best It Company|| Top 10 IT Company || Balasore Software company Odisha
Balasore Best It Company|| Top 10 IT Company || Balasore Software company OdishaBalasore Best It Company|| Top 10 IT Company || Balasore Software company Odisha
Balasore Best It Company|| Top 10 IT Company || Balasore Software company Odisha
 
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfGOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
 
A healthy diet for your Java application Devoxx France.pdf
A healthy diet for your Java application Devoxx France.pdfA healthy diet for your Java application Devoxx France.pdf
A healthy diet for your Java application Devoxx France.pdf
 
What is Advanced Excel and what are some best practices for designing and cre...
What is Advanced Excel and what are some best practices for designing and cre...What is Advanced Excel and what are some best practices for designing and cre...
What is Advanced Excel and what are some best practices for designing and cre...
 
MYjobs Presentation Django-based project
MYjobs Presentation Django-based projectMYjobs Presentation Django-based project
MYjobs Presentation Django-based project
 
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
 
What are the key points to focus on before starting to learn ETL Development....
What are the key points to focus on before starting to learn ETL Development....What are the key points to focus on before starting to learn ETL Development....
What are the key points to focus on before starting to learn ETL Development....
 
2.pdf Ejercicios de programación competitiva
2.pdf Ejercicios de programación competitiva2.pdf Ejercicios de programación competitiva
2.pdf Ejercicios de programación competitiva
 
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...
 
Best Web Development Agency- Idiosys USA.pdf
Best Web Development Agency- Idiosys USA.pdfBest Web Development Agency- Idiosys USA.pdf
Best Web Development Agency- Idiosys USA.pdf
 
Intelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmIntelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalm
 
Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)
Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)
Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)
 
Unveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsUnveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML Diagrams
 
What is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWhat is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need It
 
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte GermanySuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
 
Ahmed Motair CV April 2024 (Senior SW Developer)
Ahmed Motair CV April 2024 (Senior SW Developer)Ahmed Motair CV April 2024 (Senior SW Developer)
Ahmed Motair CV April 2024 (Senior SW Developer)
 
How to Track Employee Performance A Comprehensive Guide.pdf
How to Track Employee Performance A Comprehensive Guide.pdfHow to Track Employee Performance A Comprehensive Guide.pdf
How to Track Employee Performance A Comprehensive Guide.pdf
 
Software Project Health Check: Best Practices and Techniques for Your Product...
Software Project Health Check: Best Practices and Techniques for Your Product...Software Project Health Check: Best Practices and Techniques for Your Product...
Software Project Health Check: Best Practices and Techniques for Your Product...
 
Recruitment Management Software Benefits (Infographic)
Recruitment Management Software Benefits (Infographic)Recruitment Management Software Benefits (Infographic)
Recruitment Management Software Benefits (Infographic)
 
Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...
Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...
Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...
 

Test cases and bug report v3.2

  • 1. Test case and BUG report Andrey Oleynik 2014
  • 2. Agenda 1. Test Case. 2. Examples. 3. BDD. 4. Examples. 5. Defects 6. BUG Report 7. Examples 8. Good BUG 9. Additional links 2
  • 3. About myself Andrey Oleynik • About 7 years of work in Quality Assurance area • QA Automation Engineer • PhD, Theoretical physics 3
  • 4. What is a Test Case? • A set of input values, execution preconditions, expected results and execution postconditions, developed for a particular objective or test condition, such as to exercise a particular program path or to verify compliance with a specific requirement. [IEEE] • Documentation specifying inputs, predicted results, and a set of execution conditions for a test item. [ANSI] • A test case is a bunch of steps that lead to consider one "item" as successfully working. 4
  • 5. Why do we write test cases? • The basic objective of writing test cases is to validate the testing coverage of the application • Usually QA engineers follow the test cases standards • So writing test cases brings some sort of standardization and minimizes the ad-hoc approach in testing 5
  • 6. What information would the test manager want out of test case document/s? • Which features have been tested/ will be tested eventually? • How many user scenarios/ use cases have been executed? • How many features are stable? • Which features need more work? • Are sufficient input combinations exercised? • Is software ready to ship? Is testing enough? • What is the quality of the application? 6
  • 7. Test Case design • Specification based testing; • Input Domain testing; • Risk based testing; • Scenario testing. 7
  • 8. Test Case Fields (the most important) • Test Case id • Title • Priority • Description • Steps • Expected result • Feature/Area 8
  • 9. Test Case fields • Test case status (Idea/Design/Ready/Update/etc.) • Product version • Responsible person • Preparation notes • Notes to clean the system • Attachments • Examples • Linked feature/requirement/bug • ... 9
  • 13. Example Title: Open file. Description: a file can be opened in the Application. 1. Launch the Application. 2. Select "File" menu. File menu pulls down. 3. Choose "Open“. "Open" dialog box appears. 4. Select a file to open. 5. Click OK. Expected result: File should be opened. 13
  • 14. Important: 1. Template 2. Descriptive and specific 3. Reusable 4. Atomic 5. Positive and negative 6. Refactor 7. Test data 8. Setup and tear down 9. Test Case review 10. Screenshots 14
  • 15. Test Suite • A test suite is a set of related tests, usually pertaining to a group of features or software component and usually defined over the same database. Suites are combined into groups. [Beizer] 15
  • 16. Test management tools • Gemini • HP ALM (QC) • IBM Rational Quality Manager • Meliora Testlab • Seapine TestTrack • TestLink • Google Docs ! • … 16
  • 19. TDD Test-driven development is a software development methodology which essentially states that for each unit of software, a software developer must: • define a test set for the unit first; • then implement the unit; • finally verify that the implementation of the unit makes the tests succeed. 19
  • 20. TDD • Java (Junit, TestNG); • C (Check, CUnit); • C++ (Boost, CppUnit, CppUnitLite, Google Test); • C# (xUnit, NUnit, MSTest); • Ruby (Test::Unit, Shoulda, RSpec); • Python (pyUnit, py.test, doctest); • … 20
  • 21. BDD • Behavior-driven development is a specialized version of test-driven development which focuses on behavioral specification of software units. • Behavior-driven development specifies that tests of any unit of software should be specified in terms of the desired behavior of the unit. 21
  • 22. BDD 22 Title The story should have a clear, explicit title. Narrative A short, introductory section that specifies •who •which effect the stakeholder wants the story to have •what business value the stakeholder will derive from this effect Acceptance criteria or scenarios a description of each specific case of the narrative. •It starts by specifying the initial condition •It then states which event triggers the start of the scenario. •Finally, it states the expected outcome, in one or more clauses.
  • 23. BDD example 23 Feature: New account In order to have new ready to use account As a user I want to get an account with balance $0 Scenario: Create new account Given I have no account When I create an account Then I should have an account with balance $0
  • 24. BDD • Jbehave (Java) • Thucidydes • Rspec (Ruby) • Cucumber • SpecFlow (C#) • … 24
  • 26. What is a BUG (defect)? • A flaw in a component or system that can cause the component or system to fail to perform its required function, e.g. an incorrect statement or data definition. A defect, if encountered during execution, may cause a failure of the component or system. 26
  • 28. Another BUG definition • A software bug is an error, flaw, failure, or fault in a computer program or system that produces an incorrect or unexpected result, or causes it to behave in unintended ways.[Wikipedia] 28
  • 29. BUG names • Mistake • Anomaly • Fault • Failure • Error • Exception • Crash • Bug • Defect • Incident • Side Effect • Change request 29
  • 30. Types of BUGs • UI • Functional issues • Programming logic • Installation • Memory allocation • System resources • Documentation • Requirements • Localization (L10N) • Internalization (I18N) • Performance • Security • … 30
  • 31. How to find a bug? • Understand the whole application in depth • Prepare good test cases and test data before testing • Execute tests with different test environment • Compare actual and expected results 31
  • 32. What to do next? • Do monkey testing • Use test data pattern from previous versions/projects • Check standard scenarios from other products • Try to break the application! 32
  • 33. BUG report Defect/BUG report: A document reporting on any flaw in a component or system that can cause the component or system to fail to perform its required function. [IEEE] 33 “The point of writing problem report(bug report) is to get bugs fixed” [Cem Kaner].
  • 34. Defect Fields (the most important) • Bug ID • Summary • Description/Steps to Reproduce • Expected/Actual result • Status • Severity • Priority • Detected by • Assigned to • Module/Area 34
  • 35. Defect Fields • Environment • Reproducible • Fixed in Version • Detected Date • Modified/Last Updated • Detected in Version/Build Version • Comments • Attachments • Linked testcases/requirements/defects 35
  • 38. Defect Resolution • Fixed • Won't Fix • Not Reproducible • Duplicate • By Design • External / 3d party 38
  • 39. Defect Severity 1 - Urgent • (Critical) • Data loss or corruption. Product is down. Customer operations are impacted very seriously. There is no any workaround. • For documentation: copyright or offensive content issues, documentation steps lead to data loss or corruption. 2- High • (Serious) • System / feature is still usable to a high degree but has a serious issue. Defect has serious customer business impact. • Some data is at risk. No obvious workaround. • For documentation: core functionality is not described. 39
  • 40. Defect Severity 3 - Medium • Product operational • Application customer data is not at risk. • Obvious/easy workaround available. • Non informative error reporting. • For documentation: Conceptual information is incorrect or incomplete. 4 - Low • It is more of a cosmetic issue. No serious impedance to system functionality is noted. Annoyances. • For documentation: typography, formatting. 40
  • 41. Priority 0. Show-stopper - this needs to be fixed right now, everything else can wait, the build cannot be released with this defect 1. Urgent - needs to be fixed before any other high, medium or low defect should be fixed 2. High - should be fixed as early as possible 3. Medium - should take precedence over low priority defects 4. Low - fixing can be deferred until all other priority defects are fixed 41
  • 44. BUG example Title/Summary: Application crash on clicking the Browse button while file open. Area: File operations Build Number: x.x.x Severity: HIGH Priority: HIGH Status: New/Open/Active Environment: Windows 2008 Steps To Reproduce: 1) Launch the application 2) Open menu File -> Open. 3) Click on ‘Browse’ button Actual result: Application crash. Expected result: On clicking Browse button file browse dialogue should be opened. Notes: the screenshot and the logs are attached. 44
  • 45. Good BUG 1. Short and precise title 2. Concise but complete description: Steps to reproduce, consequences of the bug, and suggested behavior 3. Good attachments 4. Complete definition of the categorizing fields 5. Correct Severity & Priority 6. Follow-up and comment 45
  • 46. Good BUG 7. Include the Results you Expected 8. Include the Results you Actually Observed 9. Explain the Impact on the Customer 10. Avoid speculation 11. Be careful of the tone of your report 12. Avoid duplication - search first (!) 46
  • 47. Collaboration • QA engineers and developers are not in fight but are partners • The main thing is product and its quality 47
  • 48. BUG Tracking Systems • Gemini • HP ALM (QC) • IBM Rational Quality Manager • JIRA • Seapine TestTrack • Bugzilla • Google Docs ! • … 48
  • 49. More details 49 • Software testing Help: http://www.softwaretestinghelp.com/ • Про Тестинг: http://www.protesting.ru/ • http://software-testing.ru • What is severity and priority in software testing? http://istqbexamcertification.com/what-is-severity- and-priority-in-software-testing/ • IEEE Std 1044-1993 IEEE Standard Classification for Software Anomalies http://standards.ieee.org/findstds/standard/1044- 1993.html • ISTQB® Glossary http://www.istqb.org/downloads/viewcategory/20 .html
  • 50. More details 50 • Сэм Канер, Джек Фолк Тестирование программного обеспечения • Роман Савин Тестирование Дот Ком, или Пособие по жестокому обращению с багами в интернет-стартапах • Луиза Тамре Введение в тестирование программного обеспечения
  • 51. More details 51 • Introducing BDD by Dan North http://dannorth.net/introducing-bdd/ • Портал об автоматизации тестирования ПО: http://automated-testing.info/ • Конференции sqadays: http://www.sqadays.com • Software testing Help: http://www.softwaretestinghelp.com/ • Про Тестинг: http://www.protesting.ru/ • http://software-testing.ru
  • 52. More details 52 • Э.Дастин, Дж. Рэшка, Дж.Пол Автоматизированное тестирование программного обеспечения. Внедрение, управление и эксплуатация • Matt Wynne and Aslak Hellesoy The Cucumber Book: Behaviour-Driven Development for Testers and Developers • Криспин, Грегори Гибкое тестирование
  • 54. The End • Thank you! 54