Professional Documents
Culture Documents
life cycle, what major benefits they can have for future testing?
Ans:
Defect Analysis
Defect? Any test case that is failed, will be a defect.
Defect Analysis?.... There are several parameters to analyze defects.
Need for Defect Analysis....... Able to measure the quality of the application. Able
to measure work(team) quality.
Defect Analysis.....Preparation
Defect analysis krny k liye humaray pass kya chezein honi chahiye....
1. Pareto Chart: It indicates the frequency of defects and their cumulative impact.
Pareto chart used to prioritize defects to observe the improvement
Pareto chart use 80-20 rule (Pareto Principle) 20% inputs dy k 80% output hasil kr
skty hain , In contrast to this, 20% problems create 80% issues.
(According to Defects: 80% issues are present just because of 20% minor causes)
OR ( Only 20% defects/causes can create 80% problems)
If we solve those 20% root causes/defects, then we can overcome our 80% of
problems
In Diagram of Fish [ Most right Head, we put Defect, other body (Bones) will show
reasons and causes]
[Advantage of Fish Bone Analysis before Pareto chart is, we can get Root Causes, it
will be helpful]
### Explore more analysis techniques at least 2 per student (Assignment given as
Self Study)
Test Driven Development - Refactoring
Refactor krny ka mtlb ap ny apny code ke quality ko improve kia hai design ko
improve kr k.....lkn apko Frontend mein koi khas change ni ati...
For example; Cohesion, coupling kamm ke hai...inheritence kr di hai...function ko
split kr dia etc,.....(Internal code/design ko improve kia ) outer koi change ni ati
Jo test case fail hoty...phir hum refactoring krty hain...dubara sy use cases likhty
hain...
Test Driven Development (TTD) is a programming practice that starts with the design
and development of tests for every function of a program.
This way you are forced to think about the specifications, requirements, or design
before you start writing code.
In other words, you write code to test your code before you write any code.
Jo test case fail huwe ..os code ko refactor kr lia...when you have done with
refactoring...and completed your code..then included in Final Build.
Differences
Normal testing Phase mein hum aisy test case likhty jo functionality pr zyda focus kr
rhy hoty hain...Validity or invalidity
Interface pr focus krty hain...
Jab k TTD mein Developer unit test case bna rha for particular piece of code...
2) Developer TDD
Developer writes a unit test first of all. Then writes the code or program to fulfill the
requirement of that unit test.