Agile Testing Strategy
Agile Testing Strategy
Lecture 25
Definition: TDD is a process where tests are written before writing the actual
code.
● Steps:
- Write a test for a small function.
- Run the test (it fails).
- Write code to pass the test.
- Refactor the code.
- Repeat.
Example: If you need to write a login feature, first write a test case checking if valid
credentials allow access—then build the logic to pass the test.
Benefits:
Ensures quality from the beginning.
Reduces debugging time.
Definition: BDD is an extension of TDD where tests are written in natural,
human-readable language, involving all stakeholders.
● Syntax: Given ➜ When ➜ Then
Example:
- Given the user is on the login page
- When they enter valid credentials
- Then they should be redirected to the dashboard
● Tools: Cucumber, JBehave
● Benefits:
○ Improves collaboration between developers, testers, and business
teams.
○ Easy to understand test scenarios.
Definition: In ATDD, acceptance tests are created based on user stories
and requirements before development starts.
● Participants: Developers, Testers, Product Owners
● Benefits:
● Benefits:
● Benefits:
● Benefits:
● Types:
○ Developer + Tester
○ Tester + Tester
● Benefits:
○ Knowledge sharing.
○ Faster identification of issues.
9. Agile Testing Quadrants
This model helps classify different types of tests based on their purpose: