Capitolo 4 – Agile Testing
Di seguito trovate il libro: Agile Testing – A Practical Guide For Testers and Agile Teams – Lisa Crispin, Janet Gregory. Questo libro esplora la tematica Agile Testing in modo graduale ed efficace. Affronta una tematica importante per l’esame PSD I ma anche per lo sviluppo delle competenze richieste a chi effettua test nei progetti Agile. Di seguito si consigliano delle parti per la lettura ma dovete valutare sulla base della vostra esperienza e conoscenza le parti da approfondire.
In particolare si consiglia di iniziare con la lettura della Parte IV Summary – Chapter 21: Key Success Factors” per avere una veloce sintesi degli argomenti trattati, da cui potete partire per eventuali ulteriori approfondimenti.
- Success Factor 1: Use the Whole-Team Approach
- Success Factor 2: Adopt an Agile Testing Mind-Set
- Success Factor 3: Automate Regression Testing
- Success Factor 4: Provide and Obtain Feedback
- Success Factor 5: Build a Foundation of Core Practices
- Continuous Integration Test Environments
- Working Incrementally
- Coding and Testing Are Part of One Process
- Sinergy between Practices
- Success Factor 6: Collaborate with Customers
- Success Factor 7: Look at the Big Picture
Part III explains how to use the Agile Testing Quadrants:
“Use the Agile Testing Quadrants as a guide to help you plan testing that will cover all the angles. Use the test pyramid idea to ensure good ROI from your test automation. Guiding development with tests helps make sure you don’t miss something big, but it’s not perfect. Use exploratory testing to learn more about how the application should work, and what direction your testing needs to take. Make your test environments as similar as possible to production, using data that reflects the real world. Be diligent about re-creating a production-style situation for activities such as load testing.“
SUMMARY
” Testing and quality are the responsibility of the whole team, but testers bring a special viewpoint and unique skills. As a tester, your passion for delivering a product that delights your customers will carry you through the frustrations you and your team may encounter. Don’t be afraid to be an agent for continual improvement. Let agile principles and values guide you as you work with the customer and development teams, adding value throughout each iteration.”
Durante l’esame ma anche per poter applicare a livello professionale Agile Testing bisogna sempre far riferimento a Agile Value, Principles, Scrum Theory, Scrum Values, The Scrum Team, Scrum Events, Scrum Artifact
“People, not methodologies or tools, make projects successful. We enjoy agile development because its values, principles, and core practices enable people to do their best work, and testing and quality are central to agile development. In this book, we explain how to apply agile values and principles to your unique testing situation and enable your teams to succeed.“
Tratto da: Agile Testing – A Practical Guide For Testers and Agile Teams – Lisa Crispin, Janet Gregory – Preface
Consulta la Part I: Introduction per comprendere le differenze tra i Test nei progetti Agile e i Test nei progetti tradizionali Waterfall. Chapter 1, “What Is Agile Testing, Anyway?” and in Chapter 2, “Ten Principles for Agile Testers.”
La Part II: Organization Challenge considera gli aspetti della transizione e il cambiamento richiesto a livello aziendale: Chapter 3: Cultural Challenges Chapter 4: Team Logistics Chapter 5: Transitioning Typical Processes
Leggi la Part III: The Agile Testing Quadrants se desideri avere maggiori dettagli sui tipi di test eseguiti sui progetti Agile. Ti stai chiedendo chi fa quali test? Come fare a sapere se hai fatto tutti i test necessari? Come si fa a decidere quali pratiche, tecniche e strumenti si adattano alla vostra situazione particolare? Questa parte risponde a queste domande. Di seguito gli argomenti trattati: Chapter 6: The Purpose of Testing Chapter 7: Technology-Facing Tests that Support the Team Chapter 8: Business-Facing Tests that Support the Team Chapter 9: Toolkit for Business-Facing Tests that Support the Team Chapter 10: Business-Facing Tests that Critique the Product Chapter 11: Critiquing the Product Using Technology-Facing Tests Chapter 12: Summary of Testing Quadrants – Questo capitolo fornisce una sintesi efficace per la comprensione del Testing Quadrants.
La Part IV: Automation Test approfondisce l’automazione dei test che è centrale per il successo dei team Agile.
La Part V: An Iteration in the Life of a Tester spiega le attività che i tester fanno all’interno dell’iteration durante il ciclo Agile di sviluppo software. La Part V, spiega anche le attività che fanno i tester giornalmente “on a daily basis“.
Consultate, se avete bisogno di chiarimenti su specifici termini il Glossary – pag 493- 499. Riportiamo alcuni Termini con le definizioni:
- Acceptance Test Acceptance tests are tests that define the business value each story must deliver. They may verify functional requirements or nonfunctional requirements such a s performance or reliability. Although they are used to help guide development, it is at a higher level than the unit-level tests used for code design in test-driven development. Acceptance test is a broad term that may include both business-facing and technology-facing tests.
- Application programming interface (API) APIs enable other software to invoke some piece of functionality. The API may consist of functions, procedures, or classes that support requests made by other programs.
- Build A build is the process of converting source code into a deployable artifact that can be installed to run the application. The term “build” also refers to the deployable artifact.
- Context-Driven Testing Context-driven testing follows seven principles, the first being that the value of any practice depends on its context. Every new project and every new application may require different ways of approaching a project. All seven practices can be found on the website www.context-driven-testing.com/.
- Exploratory Testing Exploratory testing is interactive testing that combines test design with test execution and focuses on learning about the application.
- Functional Test Functional tests verify the system’s expected behavior given a set of inputs and/or actions.
- Greenfield Greenfield projects are new application development projects starting from scratch with no existing code base. There are no constraints, so development teams have many options open to them.
- Integrated Development Environment (IDE) An Integrated Development Environment, or IDE, is a set of tools that support programming and testing. It usually includes an editor, compiler or intepreter debugger, refactoring capabilities, and build automation tools. IDEs usually enable integration with a source code control system and provide language-specific support to help with code design.
- Refactoring Refactoring is changing code, without changing its functionality, to make it more maintainable, easier to read, easier to test, or easier to extend.
- Regression Test A regression test verifies that the behavior of the system under test hasn’t changed. Regression tests are usually written as unit tests to drive coding or acceptance tests to define desired system behavior. Once the tests pass, they become part of a regression test suite, to guard against unintended changes being introduced. Regression tests should be automated to ensure continual feedback.
- Technical Debt Ward Cunningham first introduced this metaphor. When a team produces software without using good practices such as TDD, continuous integration, and refactoring, it may incur technical debt. Like financial debt, technical debt accrues interest that will cost the team more at a later date. Sometimes this debt may be worthwhile, such as to take advantage of a sudden business opportunity. Usually, though, technical debt compounds and slows the team’s velocity. Less and less business value can be produced in each iteration because the code lacks a safety net of automated regression tests or has become difficult to understand and maintain.
- Test Double A test double is any object or component that’s installed in place of the real component for the express purpose of running a test. Test doubles include dummy objects, mock objects, test stubs, and fake objects.
- Test-Driven Development (TDD) In test-driven development, the programmer writes and automates a small unit test before writing the small piece of code that will make the test pass. The production code is made to work one test at a time.
- Test-First Development In test-first development, tests are written in advance of the corresponding production code, but the code is not necessarily made to work one test at a time. Customer or story tests may be used in test first development as well as unit tests.
- Test Stub A test stub is an object that replaces a real component needed by the system under test with a test-specific object that feeds desired indirect inputs into the system under test. This enables the test to verify logic independently of the other components.
- Test Team A test team performs activities that help define and subsequently verify the desired behavior of the system under test. The test team provides information to the stakeholders about the external quality of the system, the risks that may be present, and potential risk mitigation strategies. In agile development, these activities are fully integrated with development activities. Testers are often part of the development team along with everyone else involved in developing the software.
- Tester A tester provides information to stakeholders about the software being developed. A tester helps customers define functional and nonfunctional requirements and quality criteria, and helps turn these into tests that guide development and verify desired behavior. Testers perform a wide variety of activities related to delivering high-quality software, such as test automation and exploratory testing. In agile development, everyone on the development team performs testing activities. Team members who identify themselves as testers work closely with other members of both the developer and customer teams.
- Unit Test A unit test verifies the behavior of a small part of the overall system. It may be as small as a single object or method that is a consequence of one or more design decisions.
- Velocity A development team’s velocity is the amount of value it delivers in each iteration, measured in story points, ideal days, or hours. Generally, only completed stories are included in the velocity. Velocity is helpful to the business in planning for future features and releases. Agile teams use their velocity for the previous iteration to help determine the amount of work they can take on in the next iteration.
