Agile Testing - Overview

Agile is an iterative development methodology, where both development and testing activities are concurrent. Testing is not a separate phase; Coding and Testing are done interactively and incrementally, resulting in quality end product, which the meets customer requirements. Further, continuous integration results in early defect removal and hence time, effort and cost savings.

Agile Manifesto

The Agile Manifesto was published by a team of software developers in 2001, highlighting the importance of the development team, accommodating changing requirements and customer involvement.

The Agile Manifesto is −

We are uncovering better ways of developing software by doing it and helping others do it. Through this work, we have come to value −

  1. Individuals and interactions over processes and tools.
  2. Working software over comprehensive documentation.
  3. Customer collaboration over contract negotiation.
  4. Responding to change over following a plan.

That is, while there is value in the items on the right, we value the items on the left more.

What is Agile Testing?

Agile Testing is a software testing practice that follows the principles of agile software development.

Agile Testing involves all members of the project team, with special expertise contributed by testers. Testing is not a separate phase and is interwoven with all the development phases such as requirements, design and coding and test case generation. Testing takes place simultaneously through the Development Life Cycle.

Furthermore, with testers participating in the entire Development Lifecycle in conjunction with cross-functional team members, the contribution of testers towards building the software as per the customer requirements, with better design and code would become possible.

Agile Testing covers all the levels of testing and all types of testing.

Agile Testing Vs. Waterfall Testing

In a Waterfall Development methodology, the Development Life Cycle activities happen in phases that are sequential. Thus, testing is a separate phase and gets initiated only after the completion of the development phase.

Following are the highlights of differences between Agile Testing and Waterfall Testing −

Agile Testing Waterfall Testing
Testing is not a separate phase and occurs concurrently with development. Testing is a separate phase. All levels and types of testing can begin only after the completion of development.
Testers and developers work together. Testers work separately from developers.
Testers are involved in coming up with requirements. This helps in requirements mapping to the behaviors in the real world scenario and also framing the acceptance criteria. Also, logical Acceptance Test Cases would be ready along with the requirements. Testers may not be involved in the requirements phase.
Acceptance Testing is done after every iteration and customer feedback is sought. Acceptance Testing is done only at the end of the project.
Every iteration completes its own testing thus allowing regression testing to be implemented every time new functions or logic are released. Regression Testing can be implemented only after the completion of development.
No time delays between coding and testing. Usual time delays between coding and testing.
Continuous testing with overlapping test levels. Testing is a timed activity and test levels cannot overlap.
Testing is a best practice. Testing is often overlooked.

Agile Testing Principles

The principles of Agile testing are −

  1. Testing moves the project forward − Continuous testing is the only way to ensure continuous progress. Agile Testing provides feedback on an ongoing basis and the final product meets the business demands.
  2. Testing is not a phase − Agile team tests alongside the development team to ensure that the features implemented during a given iteration are actually done. Testing is not kept for a later phase.
  3. Everyone tests − In agile testing, the entire team including analysts, developers, and testers test the application. After every iteration, even the customer performs the User Acceptance Testing.
  4. Shortening Feedback Loops − In Agile Testing, the business team get to know the product development for each and every iteration. They are involved in every iteration. Continuous feedback shortens the feedback response time and thus the cost involved in fixing it is less.
  5. Keep the Code Clean − The defects are fixed as they are raised within the same iteration. This ensures clean code at any milestone of development.
  6. Lightweight Documentation − Instead of comprehensive test documentation, Agile testers −
  7. Leveraging one test artifact for manual and automated tests − Same test script artifact can be utilized for manual testing and as an input for automated tests. This eliminates the requirement of Manual Test Documentation and then an equivalent Automation Test Script.
  8. “Done Done,” not just done − In Agile, a feature is said to be done not after development but after development and testing.
  9. Test-Last vs. Test Driven − Test Cases are written along with the requirements. Hence, development can be driven by testing. This approach is called Test Driven Development (TDD) and Acceptance Test Driven Development (ATDD). This is in contrast to testing as a last phase in Waterfall Testing.

Agile Testing Activities

The Agile Testing Activities at Project Level are:

  1. Release Planning (Test Plan)
    1. For every Iteration,
    2. Agile Testing Activities during an Iteration
  2. Regression Testing
  3. Release Activities (Test Related)

The Agile Testing Activities during an iteration include −

  1. Participating in iteration planning
  2. Estimating tasks from the view of testing
  3. Writing test cases using the feature descriptions
  4. Unit Testing
  5. Integration Testing
  6. Feature Testing
  7. Defect Fixing
  8. Integration Testing
  9. Acceptance Testing
  10. Status Reporting on Progress of Testing
  11. Defect Tracking

Agile Testing - Methodologies

Agile is an iterative development methodology, where the entire project team participates in all the activities. The requirements evolve as the iterations progress, through collaboration between the customer and the self-organizing teams. As Coding and Testing are done interactively and incrementally, during the course of development, the end-product would be of quality and ensures customer requirements.

Every iteration results in an integrated working product increment and is delivered for User Acceptance Testing. The customer feedback thus obtained would be an input to the next / subsequent Iterations.

Project Team

Continuous Integration, Continuous Quality

Continuous Integration is the key for Agile Development success. Integrate frequently, at least daily such that you are ready for a release as and when required. Testing in Agile becomes an essential component of all the phases of the development, ensuring continuous quality of the product. Constant feedback from everyone involved in the project adds to the quality of the product.

In Agile, communication is given utmost importance and the customer requests are received as and when necessary. This gives the satisfaction to the customer that all the inputs are considered and working quality product is available throughout the development.

Agile Methodologies

There are several Agile Methodologies that support Agile Development. The Agile Methodologies include −

Scrum

Scrum is an Agile development method that emphasizes on team-centric approach. It advocates participation of the entire team in all the project development activities.

XP

eXtreme Programming is customer-centric and focuses on constantly changing requirements. With frequent releases and customer feedback, the end-product will be of quality meeting customer requirements that are made clearer during the process.

Crystal

Crystal is based on chartering, cyclic delivery and wrap up.

  1. Chartering involves forming a development team, carrying out a preliminary feasibility analysis, arriving at an initial plan and the development methodology.
  2. Cyclic Delivery with two or more delivery cycles focuses on the development phase and final integrated product delivery.
  3. During Wrap up, deployment into the user environment, post-deployment reviews and reflections are performed.

FDD

Feature Driven Development (FDD) involves designing and building features. The difference between FDD and other Agile Development Methodologies is that the features are developed in specific and short phases separately.

DSDM

Dynamic Software Development Method (DSDM) is based on Rapid Application Development (RAD) and is aligned to the Agile Framework. DSDM focuses on frequent delivery of the product, involving users actively and empowering the teams to make quick decisions.

Lean Software Development

In Lean Software Development, focus is on eliminating waste and giving value to the customer. This results in rapid development and product of value.

Waste includes partially done work, irrelevant work, features that are not used by the customer, defects, etc. that add to delays in delivery.

The Lean Principles are −

  1. Eliminate Waste
  2. Amplify Learning
  3. Delay Commitment
  4. Empower the Team
  5. Deliver Fast
  6. Build Integrity in
  7. See the Whole

Kanban

Kanban focuses on managing work with an emphasis on just-in-time (JIT) delivery, while not overloading the team members. The tasks are displayed for all the participants to see and for the Team Members to pull work from a queue.

Kanban is based on −

  1. Kanban Board (Visual and Persistent across the Development)
  2. Work-in-progress (WIP) Limit
  3. Lead Time

Agile Testing Methodologies

The testing practices are well defined for every project, whether Agile or not, to deliver quality products. Traditional Testing principles are quite often used in Agile Testing. One of them is Early Testing that focuses on −

  1. Writing Test Cases to express the behavior of the system.
  2. Early Defect Prevention, detection and removal.
  3. Ensuring that the right test types are run at the right time and as part of the right test level.

In all the Agile Methodologies we discussed, Agile Testing in itself is a Methodology. In all the approaches, Test Cases are written before Coding.

In this tutorial, we will focus on Scrum as the Agile Testing Methodology.

The other commonly used Agile Testing Methodologies are −

  1. Test-Driven Development (TDD) − Test-Driven Development (TDD) is based on coding guided by tests.
  2. Acceptance Test-Driven Development (ATDD) − Acceptance Test-Driven Development (ATDD) is based on communication between the customers, developers and testers and driven by pre-defined Acceptance Criteria and Acceptance Test Cases.
  3. Behavior-Driven Development (BDD) − In Behavior-Driven Development (BDD) testing is based on the expected behavior of the software being developed.

Agile Testing Lifecycle

In Scrum, the Testing activities include −

  1. Contributing to User Stories based on the expected behavior of the System depicted as Test Cases
  2. Release Planning based on Test Effort and Defects
  3. Sprint Planning based on User Stories and Defects
  4. Sprint Execution with Continuous Testing
  5. Regression Testing after the completion of Sprint
  6. Reporting Test Results
  7. Automation Testing

Testing is iterative and sprints based as depicted in the diagram given below −

Lifecycle

Agile Testing - Tester in Team

Agile Development is team-centric and developers and testers take part in all the project and development activities. The Teamwork maximizes success of testing in Agile projects.

A Tester in Agile team has to participate and contribute to all the project activities and at the same time has to leverage the expertise in testing.

An Agile tester should have traditional testing skills. In addition, Agile tester needs −

  1. Good interpersonal skills.
  2. Ability to act positive and solution-oriented with team members and stakeholders.
  3. Ability to display critical, quality-oriented, skeptical thinking about the product.
  4. Aptitude to be pro-active to actively acquire information from the stakeholders.
  5. Skills to work effectively with customers and stakeholders in defining testable User Stories, the Acceptance Criteria.
  6. Talent to be a good team member working with developers in producing quality code.
  7. Usability of testing skills to have the right test cases at the right time and at the right level and executing them well within the duration of the sprint.
  8. Ability to evaluate and report test results, test progress and the product quality.
  9. Openness to respond to changes quickly, including changing, adding or improving test cases.
  10. Potential to self-organize work.
  11. Enthusiasm to continuous skill growth.
  12. Competency in Test Automation, Test-driven Development (TDD), Acceptance Test-driven Development (ATDD), Behavior Driven Development (BDD) and experience based Testing.

Role of Tester in Agile Team

Tester in Agile Team participates in all the project and development activities to contribute the best of the testing expertise.

Agile Tester Activities include −

  1. Ensuring proper use of testing tools.

  2. Configuring, using and managing the test environments and the test data.

  3. Mentoring other team members in relevant aspects of testing.

  4. Ensuring that appropriate testing tasks are scheduled during the release and sprint planning.

  5. Understanding, implementing and updating test strategy.

  6. Collaborating with developers, customer and stakeholders in clarifying requirements, in terms of testability, consistency and completeness.

  7. Performing the right tests at the right time and at right test levels.

  8. Reporting defects and working with the team in resolving them.

  9. Measuring and reporting test coverage across all applicable coverage dimensions.

  10. Participating in sprint retrospectives, proactively suggesting and implementing improvements.

In the Agile Lifecycle, a tester plays a significant Role in −

  1. Teamwork
  2. Test Planning
  3. Sprint Zero
  4. Integration
  5. Agile Testing Practices

Teamwork

In Agile Development, teamwork is fundamental and hence requires the following −

  1. Collaborative Approach − Working with cross-functional team members on Test Strategy, Test Planning, Test Specification, Test Execution, Test Evaluation, and Test Results Reporting. Contributing the testing expertise in conjunction with other team activities.

  2. Self-organizing − Planning and organizing well within the sprints to achieve the targets of testing by amalgamating expertise from other team members as well.

  3. Empowerment − Making appropriate technical decisions in achieving the team’s goals.

  4. Commitment − Committing to understanding and evaluating the product’s behavior and characteristics as required by the customers and stakeholders.

  5. Transparent − Open, Communicating and Accountable.

  6. Credibility − Ensuring the credibility of the test strategy, its implementation, and execution. Keeping the customers and stakeholders informed on the test strategy.

  7. Open to Feedback − Participating in sprint retrospectives to learn from both successes and failures. Seeking customer feedback and acting quickly and appropriately to ensure quality deliverables.

  8. Resilient − Responding to changes.

Test Planning

Test Planning should start during the release planning and update during each sprint. Test planning should cover the following tasks −

  1. Defining test scope, extent of testing, test and sprint goals.

  2. Deciding on the test environment, test tools, test data and configurations.

  3. Assigning testing of features and characteristics.

  4. Scheduling test tasks and defining frequency of tests.

  5. Identifying test methods, techniques, tools and test data.

  6. Ascertaining prerequisites such as predecessor tasks, expertise and training.

  7. Identifying dependencies such as functions, code, system components, vendor, technology, tools, activities, tasks, teams, test types, test levels and constraints.

  8. Setting priorities considering the customer/user importance and dependencies.

  9. Arriving at the time duration and effort required to test.

  10. Identifying tasks at each sprint planning.

Sprint Zero

Sprint Zero involves preparation activities before the first sprint. A tester needs to collaborate with the team on the following activities −

  1. Identifying scope
  2. Dividing user stories into sprints
  3. Creating system architecture
  4. Planning, acquiring and installing tools (including testing tools)
  5. Creating the initial test strategy for all the test levels
  6. Defining test metrics
  7. Specifying the acceptance criteria, also called the definition of “Done”
  8. Defining exit criteria
  9. Creating Scrum board
  10. Setting the direction for testing throughout the sprints

Integration

In Agile, a quality working product should be ready for release at any point of time in the development lifecycle. This implies continuous integration as a part of development. An Agile tester needs to support continuous integration with continuous testing.

To accomplish this, a tester needs to −

  1. Understand the integration strategy.
  2. Identify all dependencies between functions and features.

Agile Testing Practices

An Agile tester needs to adapt Agile practices for testing in an agile project.

  1. Pairing − Two team members work together at the same keyboard. As one of them tests, the other reviews/analyzes testing. The two team members can be

    1. One tester and one developer

    2. One tester and one business analyst

    3. Two testers

  2. Incremental Test Design − Test cases are built from user stories, starting with simple tests and moving to more complex tests.

  3. Mind Mapping − A mind map is a diagram to organize the information visually. Mind mapping can be used as an effective tool in Agile testing, using which information regarding the necessary test sessions, test strategies and test data can be organized.

Agile Testing - Tracking Activities

Test Status can be communicated −

  1. During daily stand-up meetings
  2. Using standard test management tools
  3. Via messengers

Test status determined by test passing status is crucial in deciding the whether the task is “Done”. Done means all the tests for the task pass.

Test Progress

Test Progress can be tracked using −

  1. Scrum Boards (Agile Task Boards)
  2. Burndown Charts
  3. Automated Test Results

Test Progress also has a direct impact on development progress. This is because a User Story can be moved to Done status only after the Acceptance Criteria is reached. This, in turn, is decided by Test Status as the Acceptance Criteria is judged by a Test Status.

If there are any delays or blockages in test progress, the entire team discusses and works collaboratively to resolve the same.

In Agile Projects, changes take place quite often. When many changes take place, we can expect that the Test Status, Test Progress and Product Quality to evolve constantly. The Agile testers need to get that information to the team so that the appropriate decisions can be made at the right time to stay on track for successful completion of each iteration.

When changes happen, they can affect existing features from previous iterations. In such cases, manual and automated tests must be updated to deal effectively with regression risk. Regression testing is also needed.

Product Quality

Product Quality Metrics include −

  1. Tests Pass / Fail
  2. Defects Found / Fixed
  3. Test Coverage
  4. Test Pass/Fail Rates
  5. Defect Discovery Rates
  6. Defect Density

Automating the gathering and reporting of product quality metrics helps in −

  1. Maintaining transparency.
  2. Gathering all the relevant and required metrics at the right time.
  3. Immediate reporting without communication delays.
  4. Allowing testers to focus on testing.
  5. Filtering misuse of metrics.

To secure overall product quality, the Agile team needs to obtain customer feedback on whether the product meets customer expectations. This needs to be carried out at the end of each iteration, and the feedback will be an input for subsequent iterations.

Key Success Factors

In Agile projects, quality products can be delivered if Agile testing is successful.

The following points need to be considered for the success of Agile testing −

  1. Agile testing is based on test first and continuous testing approaches. Hence, the traditional testing tools, which are built on test-last approach, may not be suitable. Hence, while choosing the Testing Tools in Agile projects, the alignment to Agile testing needs to be verified.

  2. Reduce total testing time by automating tests earlier in the development lifecycle.

  3. Agile testers need to maintain their pace to align to the development release schedule. Hence, proper planning, tracking, and re-planning of the testing activities need to be done on the fly with product quality as the goal.

  4. Manual testing accounts to 80% of the testing in the projects. Hence, testers with expertise are need to be part of the Agile team.

  5. Participation of these testers with expertise throughout the development lifecycle makes the entire team focus on quality product meeting customer expectations.

    1. Defining user stories emphasizing product behavior expected by the end users.

    2. Identifying Acceptance Criteria at user story level / task level as per customer expectations.

    3. Effort and duration estimation for testing activities.

    4. Planning testing activities.

    5. Aligning with the development team to ensure production of code that meets the requirements with an upfront test design.

    6. Test first and continuous testing to ensure that done status is reached meeting the acceptance criteria at the expected time.

    7. Ensuring testing at all levels within the sprint.

    8. Regression testing at the end of each sprint.

    9. Collecting and analyzing product metrics that are useful for the success of the project.

    10. Analyzing defects to identify which need to be fixed in the current Sprint and which can be delayed to subsequent Sprints.

    11. Focusing on what is important from the Customer’s point of view.

Lisa Crispin has defined seven key Factors for Agile Testing Success −

  1. Whole Team approach − In this kind of approach, the developers train the testers and the testers train other team members. This helps everyone to understand every task in the project, thereby collaboration and contribution will have maximum benefit. Collaboration of testers with customers is also an important factor to set their expectations right at the beginning and translating the acceptance criteria to the required to pass the test.

  2. Agile Testing Mindset − The testers are proactive in continually improving the quality and collaborating constantly with the rest of the team.

  3. Automate Regression Testing − Design for testability and drive development with tests. Start simple and allow the team to choose the tools. Be ready to provide advice.

  4. Provide and Obtain Feedback − As this is a core Agile value, the entire team should be open for feedback. As the testers are expert feedback providers, need to focus on relevant and necessary information. In return, on obtaining feedback should accommodate test case changes and testing.

  5. Build a Foundation of Core Agile Practices − Focus on testing alongside coding, continuous integration, collaborative test environments, working incrementally, acceptance for changes, maintaining synergy.

  6. Collaborate with Customers − Elicit examples, understanding, and checking the requirements mapping to the product behavior, setting up Acceptance Criteria, obtaining feedback.

  7. Look at the Big Picture − Drive development with business-facing tests and examples using real world test data and thinking about impacts on other areas.

Agile Testing - Significant Attributes

 

Agile Testing Benefits

The benefits of Agile testing are −

  1. Customer satisfaction by quick, continuous completely tested product and seeking customer feedback.

  2. Customers, developers, and testers continuously interact with one another, thereby reducing the cycle time.

  3. Agile testers participate in defining requirements contributing their testing expertise to focus on what is workable.

  4. Agile testers participate in estimation assessing testing effort and time.

  5. Early test design reflecting Acceptance Criteria.

  6. Testing requirements consolidated by the whole team, avoiding drawbacks.

  7. Constant focus on quality of the product by the entire team.

  8. Definition of Done status reflecting tests pass ensures that the requirement is met.

  9. Continuous feedback on delays or blockages so that resolution can be made immediately with effort from the whole team.

  10. Quick responses to changing requirements and accommodating them soon.

  11. Continuous integration driven regression testing.

  12. No time delays between development and testing. test first, continuous testing approaches are followed.

  13. Automation testing implemented early in the development lifecycle, thereby reducing total testing time and effort.

Best Practices in Agile Testing

Follow the best practices given below −

  1. Inclusion of testers with expertise in all types of testing at all levels.

  2. Testers participating in the definition of requirements, collaborating with customers on the expected behavior of the product.

  3. Testers sharing feedback continuously with the developers and customer.

  4. Test first and continuous testing approaches to align to the development work.

  5. Tracking test status and test progress promptly and constantly with focus on delivering quality product.

  6. Automation testing early in the development lifecycle to reduce cycle time.

  7. To perform Regression Testing leverage Automation Testing as an effective way.

Challenges in Agile Testing

The following challenges exist in Agile testing −

  1. Failure to understand the Agile approach and its limitations by the Business and Management can lead to unachievable expectations.

  2. Agile follows whole-Team approach, but not everyone knows the essentials of Testing Practices. Testers are advised to coach the others, but in real scenario can be impracticable with time-boxed Sprints (Iterations).

  3. Test First Approach requires Developers to base the coding on Tester Feedback, but in real scenarios Developers are more accustomed to base the coding on the Requirements coming from Customer or Business.

  4. Accountability for the Quality Product is with the entire Agile Team, but in initial stages the Developers may not Focus on Quality as they are more into the implementation mode.

  5. Continuous Integration calls for Regression Testing that requires considerable effort, even if it has to be automated.

  6. Testers can be adaptable to changes with the Agile mind-set, but accommodating the resulting Test Changes and Testing can be impracticable to target to finish during the Sprint.

  7. Early Automation is advised so that Manual Testing Effort and Time can be reduced. But, in the real scenario, arriving at the Tests that can be automated and automating them require Time and Effort.

Agile Testing Guidelines

Use the following guidelines while performing Agile Testing.

  1. Participate in Release Planning to identify the required Testing activities and come up with the initial version of test plan.

  2. Participate in estimation session to arrive at testing effort and duration so that testing activities are accommodated in the iterations.

  3. Participate in User Story Definition to arrive at Acceptance Test Cases.

  4. Participate in every Sprint Planning Meeting to understand the scope and update Test Plan.

  5. Continuously collaborate with the Development Team during the Sprint to make Testing and Coding a success well within the Sprint.

  6. Participate in Daily Stand-up Meetings and convey Test Delays or Blockages if any, to receive immediate resolution.

  7. Track and Report Test Status, Test Progress and Product Quality regularly.

  8. Be ready to accommodate changes, responding with modifications to Test Cases, Test Data.

  9. Participate in Sprint Retrospectives to understand and contribute the Best Practices and Lessons Learned.

  10. Collaborate in obtaining Customer Feedback at each Sprint.

Agile Testing - Quadrants

As in the case of Traditional Testing, Agile Testing also need to cover all the Test Levels.

  1. Unit Testing
  2. Integration Testing
  3. System Testing
  4. User Acceptance Testing

Unit Testing

  1. Done along with Coding, by Developer
  2. Supported by Tester who writes Test Cases ensuring 100% Design Coverage
  3. Unit Test Cases and Unit Testing results need to be reviewed
  4. Unresolved major defects (as per priority and severity) are not left
  5. All Unit Tests are automated

Integration Testing

  1. Done along with Continuous Integration as the Sprints progress
  2. Done at the end after all the Sprints are completed
  3. All Functional Requirements are tested
  4. All Interfaces between Units are tested
  5. All the Defects are Reported
  6. Tests are automated where possible

System Testing

  1. Done as the Development progresses
  2. Users Stories, Features and Functions are Tested
  3. Testing done in Production Environment
  4. Quality Tests are executed (Performance, Reliability, etc.)
  5. Defects are reported
  6. Tests are automated where possible

User Acceptance Testing

  1. Done at the end of each Sprint and at the end of the project

  2. Done by the Customer. Feedback is taken by the Team

  3. Feedback will be an input to subsequent Sprints

  4. User Stories in a Sprint are pre-verified to be testable and are with defined Acceptance Criteria

Test Types

  1. Component Tests (Unit Tests)
  2. Functional Tests (User Stories Tests)
  3. Non-functional Tests (Performance, Load, Stress, etc.)
  4. Acceptance Tests

Tests can be fully Manual, fully Automated, Combination of Manual and Automated or Manual supported by Tools.

Support Programming and Critique Product Tests

Tests can be for −

  1. Supporting Development (Support Programming) − Support Programming Tests are used by the Programmers.

    1. To decide on what code they need to write to accomplish a certain behavior of a System

    2. What Tests need to be run after Coding to ensure the new Code does not hamper the rest of the behaviors of the System

  2. Verification only (Critique Product) − Critique Product Tests are used for discovering inadequacies in the finished Product

Business Facing and Technology Facing Tests

To decide on what tests to be performed when, you need to determine whether a test is −

  1. Business Facing, or
  2. Technology Facing

Business Facing Tests

A Test is a business-facing test if it answers the questions framed with words from business domain. These are understood by the business experts and would interest them so that behavior of the system can be explained in the real time scenario.

Technology Facing Tests

A Test is a technology-facing test if it answers the questions framed with words from technology domain. The programmers understand what needs to be implemented based on the clarifications on technology.

These two aspects of test types can be viewed using the Agile Testing Quadrants defined by Brian Marick.

Agile Testing Quadrants

Combining the two aspects of Testing Types, the following Agile Testing Quadrants are derived by Brian Marick −

Quadrants

The Agile Testing Quadrants provide a helpful taxonomy to help teams identify, plan and execute the testing needed.

  1. Quadrant Q1 − Unit Level, Technology Facing, and supports the developers. Unit tests belong to this Quadrant. These tests can be Automated tests.

  2. Quadrant Q2 − System level, business facing, and conform product behavior. Functional tests belong to this quadrant. These tests are either manual or automated.

  3. Quadrant Q3 − System or User Acceptance Level, Business Facing and focus on real time scenarios. User Acceptance Tests belong to this quadrant. These tests are manual.

  4. Quadrant Q4 − System or Operational Acceptance Level, Technology Facing and Focus on Performance, Load, Stress, Maintainability, Scalability Tests. Special tools can be used for these tests along with automation testing.

Combining these, the Agile Testing Quadrants that reflect What-Testing-When can be visualized as follows −

Testing Quadrants



Agile Testing - Scrum

Scrum advocates Whole Team Approach, in the sense that every team member has to take part in every project activity. Scrum team is self-organizing with accountability to the project deliverables. Decision-making is left to the team that results in appropriate actions being taken at the right time without any time delays. This approach also encourages proper use of the team talent instead of restricting to one activity. Testers also participate in all the project and development activities contributing their expertise in testing.

The whole team works together on Test Strategy, Test Planning, Test Specification, Test Execution, Test Evaluation, and Test Results Reporting.

Collaborative User Story Creation

Testers participate in User Story Creation. Testers contribute their ideas on possible behavior of the system. This helps in the customer and/or end user understanding the system in the real environment and thus getting clarity on what actually they want as the outcome. This results in faster freezing of requirements and also reduces the probability of changes in the requirements later on.

Testers also come up with the Acceptance Criteria for every scenario agreed by the customer.

Testers contribute to the creation of testable user stories.

Release Planning

Release Planning is done for the entire project. However, Scrum framework involves iterative decision making as more information is obtained in the due course of executing sprints. Hence, Release Planning session at the beginning of the project need not produce a detailed release plan for the entire project. It can be updated continually, as relevant information is available.

Every sprint-end need not have a release. A release can be after a group of sprints. The main criteria of a release is to deliver business value to the customer. The team decides on the sprint length with release planning as an input.

Release Planning is the basis of test approach and test plan for release. Testers estimate Test Effort and plan Testing for the release. When release plans change, testers must handle changes, obtain an adequate test basis considering larger context of release. Testers also provide testing effort that is required at the end of all the sprints.

Sprint Planning

Sprint planning is done at the beginning of each sprint. The sprint backlog is created with the user stories picked up from the product backlog for implementation in that particular sprint.

The testers should −

  1. Determine the testability of the user stories selected for the sprint
  2. Create acceptance tests
  3. Define test levels
  4. Identify test automation

Testers update the test plan with the estimates for testing effort and durations in the sprint. This ensures provision of time for required testing during the time-boxed sprints and also accountability of the testing effort.

Test Analysis

When a sprint begins, as the developers carry on story analysis for design and implementation, testers perform test analysis for the stories in the sprint backlog. Tester create the required test cases – both manual and automated tests.

Testing

All the members of the Scrum team should participate in testing.

  1. The developers execute the unit tests as they develop code for the user stories. Unit Tests are created in every sprint, before the code is written. The unit test cases are derived from low level design specifications.

  2. The testers perform functional and non-functional features of the user stories.

  3. The testers mentor the other members in the scrum team with their expertise in testing so that the entire team will have a collective accountability for the quality of the product.

  4. At the end of the sprint, customer and/or end users carry out User Acceptance Testing and provide feedback to the scrum team. This forms as an input to the next sprint.

  5. Test results are collected and maintained.

Automation Testing

Automation testing is given high importance in Scrum teams. The testers devote time in creating, executing, monitoring and maintaining of automated tests and results. As changes can occur any time in scrum projects, testers need to accommodate testing of changed features and also the regression testing involved. Automation testing facilitates managing of test effort associated with the changes. Automated tests at all levels facilitate achieving continuous integration. Automated tests run much faster than manual tests at no additional effort.

The manual testing focuses more on exploratory testing, product vulnerability, predicting defects.

Automation of Testing Activities

Automation of testing activities reduces the burden of repeated work and result in cost savings. Automate

  1. Test Data Generation
  2. Test Data Loading
  3. Build Deployment into Test Environment
  4. Test Environment Management
  5. Data Output Comparison

Regression Testing

In a sprint, testers test the code that is new / modified in that sprint. However, testers also need to ensure that the code developed and tested in the earlier sprints also is working along with the new code. Hence Regression testing is given importance in scrum. Automated regression tests are run in continuous integration.

Configuration Management

A Configuration management system that uses automated build and test frameworks is used in Scrum projects. This allows to run static analysis and unit tests repeatedly as new code is checked into the Configuration Management System. It also manages continuous integration of the new code with the system. Automated Regression Tests are run during Continuous Integration.

Manual Test Cases, Automated Tests, Test Data, Test Plans, Test Strategy and other Testing Artifacts need to be Version Controlled and require relevant Access Permissions to be ensured. This can be accomplished by maintaining the Testing Artifacts in the Configuration Management System.

Agile Testing Practices

Testers in a Scrum Team can follow the following Agile Practices −

  1. Pairing − Two Team Members sit together and work collaboratively. The two people can be two Testers or one Tester and one Developer.

  2. Incremental Test Design − Test Cases are developed as the Sprints progress incrementally and User Stories are added up.

Agile Metrics

During software development, collection and analysis of metrics help in improving the process and thereby achieving better productivity, quality deliverables and customer satisfaction. In Scrum based development, this is possible and the testers have to pay attention to the metrics that they need to.

Several metrics are suggested for Scrum development. The significant metrics are −

  1. Ratio of Successful Sprints(Number of successful Sprints / Total number of Sprints) * 100. A Successful Sprint is one in which the Team could meet its commitment.

  2. Velocity − A team’s Velocity is based on the amount of Story Points a team earned during a sprint. Story Points are the measure of the User Stories counted during estimation.

  3. Focus Factor(Velocity / Team’s Work Capacity) / 100. Focus Factor is the percentage of the team’s effort that results in finished stories.

  4. Estimation Accuracy(Estimated effort / Actual effort) / 100. Estimation Accuracy is the Team’s ability in estimating the effort accurately.

  5. Sprint Burndown − Work (in Story Points or in hours) that is Remaining Vs. Work that needs to be Remaining ideally (as per the Estimation).

    1. If it is more, then it means that the Team has taken up more Work than they can do.

    2. If it is less, then it means the Team did not Estimate accurately.

  6. Defect Count − Number of defects in a Sprint. Defect count is the amount of defects in the software as against the backlog.

  7. Severity of Defects − Defects can be categorized as minor, major and critical as per their severity. Testers can define the categorization.

Sprint Retrospectives

In Sprint Retrospectives, all the team members will participate. They share −

  1. The things that went well
  2. Metrics
  3. The scope for improvements
  4. Action items to apply

Agile Testing - Methods

In Agile Testing, the commonly used Testing methods are from the traditional practices and are aligned to the principle – Test Early. The Test Cases are written before the code is written. The emphasis is on defect prevention, detection, and removal running the right test types at the right time and at right level.

In this chapter, you will get an understanding of the methods −

  1. Test Driven Development (TDD)
  2. Acceptance Test Driven Development (ATDD)
  3. Behavior Driven Development (BDD)

Test Driven Development

In the Test Driven Development (TDD) method, the code is developed based on the Testfirst approach directed by Automated Test Cases. A test case is written first to fail, code is developed based on that to ensure that the test passes. Method is repeated, refactoring is done through the development of code.

TDD can be understood with the help of the following steps −

  1. Step 1 − Write a Test case to reflect the expected behavior of the functionality of the code that needs to be written.

  2. Step 2 − Run the test. The test fails as the code is still not developed.

  3. Step 3 − Develop code based on the test case.

  4. Step 4 − Run the test again. This time, the test has to pass as the functionality is coded. Repeat Step (3) and Step (4) till the test passes.

  5. Step 5 − Refactor the code.

  6. Step 6 − Run the test again to ensure it passes.

Repeat Step 1 – Step 6 adding test cases to add functionality. The added tests and the earlier tests are run every time to ensure the code is running as expected. To make this process fast, tests are automated.

The tests can be at unit, integration or system level. Constant communication between testers and developers needs to be ensured.

Acceptance Test Driven Development

In the Acceptance Test Driven Development (ATDD) method, the code is developed based on the test-first approach directed by Acceptance Test Cases. The focus is on the acceptance criteria and the Acceptance Test Cases written by the testers during User Story Creation in collaboration with the customer, end users and relevant stakeholders.

  1. Step 1 − Write Acceptance Test Cases along with user stories in collaboration with the customer and users.

  2. Step 2 − Define the associated acceptance criteria.

  3. Step 3 − Develop code based on the acceptance tests and acceptance criteria.

  4. Step 4 − Run the acceptance tests to ensure that the code is running as expected.

  5. Step 5 − Automate the acceptance tests. Repeat Step 3 – Step 5 until all the user stories in the iteration are implemented.

  6. Step 6 − Automate the regression tests.

  7. Step 7 − Run the automated Regression Tests to ensure Continuous Regression.

Behavior Driven Development (BDD)

Behavior Driven Development (BDD) is similar to the Test Driven Development (TDD), and the focus is on testing the code to ensure the expected behavior of the system.

In BDD, language like English is used so that it makes sense to the users, testers and developers. It ensures −

  1. Continuous communication among the users, testers and developers.
  2. Transparency on what is being developed and tested.

Agile Testing - Techniques

Testing Techniques from traditional testing can also be used in Agile testing. In addition to these, Agile specific testing techniques and terminologies are used in the Agile projects.

Test Basis

In agile projects, the product backlog replaces the requirements specification documents. The contents of product backlog are normally user stories. The non-functional requirements also are taken care in the user stories. Thus, the test basis in Agile projects is the user story.

To ensure quality testing, the following can also be considered additionally as test basis −

  1. Experience from previous iterations of the same project or past projects.
  2. Existing functions, architecture, design, code, and quality characteristics of the system.
  3. Defect data from the current and past projects.
  4. Customer feedback.
  5. User documentation.

Definition of Done

The Definition of Done (DoD) is the criteria that is used in Agile projects to ensure completion of an activity in the Sprint backlog. DoD can vary from one Scrum team to another, but it should be consistent within one team.

DoD is a checklist of necessary activities that ensure implementation of functions and features in a user story along with the non-functional requirements that are part of the user story. A user story reaches the Done stage after all the items in the DoD checklist are accomplished. A DoD is shared across team.

A typical DoD for a user story can contain −

  1. Detailed Testable Acceptance Criteria
  2. Criteria to ensure consistency of the User Story with the others in the Iteration
  3. Specific Criteria related to the Product
  4. Functional Behavior Aspects
  5. Non-functional characteristics
  6. Interfaces
  7. Test Data Requirements
  8. Test Coverage
  9. Refactoring
  10. Review and Approval Requirements

In addition to the DoD for User Stories, DoD is also required −

  1. at every Level of Testing
  2. for each Feature
  3. for each Iteration
  4. for Release

Test Information

A tester needs to have the following Test information −

  1. User Stories that need to be tested
  2. Associated Acceptance Criteria
  3. System Interfaces
  4. Environment where the System is expected to Work
  5. Tools availability
  6. Test Coverage
  7. DoD

In Agile projects, as testing is not a sequential activity and testers are supposed to work in a collaborative mode, it is the tester’s responsibility to −

  1. Obtain necessary test information on an ongoing basis.
  2. Identify the information gaps that affect testing.
  3. Resolve the gaps collaboratively with other team members.
  4. Decide when a test level is reached.
  5. Ensure appropriate tests executed at relevant times.

Functional and Non-Functional Test Design

In Agile projects, the traditional testing techniques can be used, but the focus is on early testing. Test cases need to be in place before the implementation starts.

For Functional test design, the testers and developers can use the traditional Black Box test design techniques such as −

  1. Equivalence Partitioning
  2. Boundary Value Analysis
  3. Decision Tables
  4. State Transition
  5. Class Tree

For non-functional test design, as the non-functional requirements are also a part of each user story, the black box test design techniques only can be used to design the relevant test cases.

Exploratory Testing

In Agile projects, time is often the limitation factor for Test Analysis and Test Design. In such cases, Exploratory testing techniques can be combined with the traditional testing techniques.

Exploratory Testing (ET) is defined as simultaneous learning, test design and test execution. In Exploratory Testing, the tester actively controls the design of the tests as they are performed and uses the information gained while testing to design new and better tests.

Exploratory Testing comes handy to accommodate changes in Agile projects.

Risk-Based Testing

Risk-based testing is testing based on the risk of failure and mitigates the risks using test design techniques.

A Product quality risk can be defined as a potential problem with product quality. Product quality risks include −

  1. Functional risks
  2. Non-functional performance risks
  3. Non-functional usability risks

Risk analysis is to be done to evaluate the probability (likelihood) and impact of each risk. Then, the risks are prioritized −

  1. High Risks require Extensive Testing
  2. Low Risks require only Cursory Testing

Tests are designed using appropriate Test Techniques based on the Risk Level and Risk Characteristic of each Risk. Tests are then executed to mitigate the Risks.

Fit Tests

Fit Tests are automated Acceptance Tests. The Tools Fit and FitNesse can be used for automating acceptance tests.

FIT uses JUnit, but extends the testing functionality. HTML tables are used to display the Test cases. Fixture is a Java class behind the HTML table. The fixture takes the contents of the HTML table and runs the test cases on the project being tested.

Agile Testing - Workproducts

Test Plan is prepared at the time of Release Planning and is revised at every Sprint Planning. Test Plan acts as a guide to the testing process in order to have the complete test coverage.

Typical Contents of a Test Plan are −

  1. Test Strategy
  2. Test Environment
  3. Test Coverage
  4. Scope of Testing
  5. Test Effort and Schedule
  6. Testing Tools

In Agile Projects, all the Team Members are accountable for the quality of the product. Hence, everyone participates in test planning as well.

A testers’ responsibility is to provide necessary direction and mentor the rest of the team with their testing expertise.

User Stories

User Stories are not testing work products in principle. However, in Agile Projects, the testers participate in the User Stories Creation. Testers write User Stories that bring value to the customer and cover different possible behaviors of the system.

Testers also ensure that all the User Stories are testable and ensure the Acceptance Criteria.

Manual and Automated Tests

During the first run of Testing, Manual Tests are used. They include −

  1. Unit Tests
  2. Integration Tests
  3. Functional Tests
  4. Non-Functional Tests
  5. Acceptance Tests

The Tests are then automated for subsequent runs.

In Test Driven Development, Unit Tests are written first to fail, Code is developed and tested to ensure the Tests pass.

In Acceptance Test Driven Development, Acceptance Tests are written first to fail, Code is developed and tested to ensure the Tests pass.

In other Development methods, the Testers collaborate with the rest of the Team to ensure Test Coverage.

In all the types of methods, Continuous integration takes place, which includes continuous integration testing.

The team can decide when and what tests are to be automated. Even if automation of the tests requires effort and time, the resulting automated tests significantly reduce the repetitive testing effort and time during the iterations of the Agile Project. This in turn facilitates the team to pay more attention to the other required activities, such as new User Stories, Changes, etc.

In Scrum, the iterations are time-boxed. Hence, if a User Story testing cannot be completed in a particular Sprint, the tester can report in the daily standup meeting that the user story cannot reach the Done Status within that Sprint and hence needs to be kept pending to the next Sprint.

Test Results

As most of the Testing in Agile Projects is automated, the Tools generate the necessary Test Results Logs. Testers review the Test Results Logs. The test results need to be maintained for each sprint / release.

A Test Summary can also be prepared that contains −

  1. Testing Scope (What was tested and what was not tested)
  2. Defect Analysis along with Root Cause Analysis if possible
  3. Regression Testing Status after Defect Fixes
  4. Issues and the corresponding Resolution
  5. Pending Issues, if any
  6. Any modifications required in Test Strategy
  7. Test Metrics

Test Metrics Reports

In Agile Projects, the Test Metrics include the following for each Sprint −

  1. Test Effort
  2. Test Estimation Accuracy
  3. Test Coverage
  4. Automated Test Coverage
  5. No. of Defects
  6. Defect Rate (No. of Defects per User Story Point)
  7. Defect Severity
  8. Time to Fix a Defect in the same Sprint (It costs 24x as much to fix a bug that escapes the current sprint)
  9. No. of Defects fixed in the same Sprint
  10. Completion of Acceptance Testing by Customer within the Sprint

Sprint Review and Retrospective Reports

Testers also contribute to the Sprint Review and Retrospective Reports. The typical contents are −

  1. Test Metrics
  2. Test Result Logs review results
  3. What went right and what can be improved from Testing Point of View
  4. Best Practices
  5. Lessons Learned
  6. Issues
  7. Customer Feedback

Agile Testing - Kanban

Agile Testing activities can be managed effectively using Kanban concepts. The following ensure testing to be completed in time within an iteration / sprint and thus focus on the delivery of quality product.

  1. User Stories that are testable and effectively sized result in development and testing within the specified time limits.

  2. WIP (Work-In-Progress) limit allows to focus on a limited number of user stories at a time.

  3. Kanban board that represents the workflow visually, helps to track the testing activities and bottlenecks, if any.

  4. Kanban team collaboration concept lets resolution of bottlenecks as they are identified, without wait time.

  5. Preparation of Test Cases upfront, maintaining the test suite as the development progresses and obtaining Customer Feedback helps in eliminating Defects within the iteration / sprint.

  6. Definition of Done (DoD) is said to be Done-Done in the sense that a Story reaches a completion state only after the testing is also complete.

Testing Activities in Product Development

In Product development, the releases can be tracked with feature Kanban board. Features for a particular release are assigned to the Feature Kanban board that tracks the feature development status visually.

The Features in a release are broken into stories and developed within the release using agile approach.

The following Agile Testing activities ensure quality delivery in every release and at the end of all releases as well −

  1. Testers participate in User Story Creation and thus ensure −

    1. All the possible Behaviors of the System are captured by means of User Stories and the Non-functional Requirements that are part of the User Stories.

    2. User Stories are Testable.

    3. Size of the User Stories allow Development and Testing to be complete (DoneDone) within the Iteration.

  2. Visual Task Kanban Board −

    1. Depicts the status and progress of the Tasks

    2. Bottlenecks are identified immediately as they occur

    3. Facilitates to measure the cycle time which can then be optimized

  3. Team Collaboration helps in −

    1. Accountability of the entire Team for Quality product

    2. Resolution of bottlenecks as and when they occur, saving on wait time

    3. Contribution of every expertise in all the activities

  4. Continuous Integration that focuses on Continuous Integration Testing

  5. Automation of Tests to save on Testing Effort and Time

  6. Defect Prevention with Test Cases written earlier to Development and mentoring the Developers on what is anticipated by different behaviors of the System −

    1. WIP Limit to focus on a limited number of User Stories at a Time

  7. Continuous Testing as the Development progresses, to ensure Defect Fixes within the Iteration −

    1. Ensure Test Coverage

    2. Keep the Open Defects Count Low

Story Exploration

Story Exploration is the communication within an Agile team to explore Story understanding when the product owner passes a story for acceptance for development.

The product owner comes up with the story based on the functionality expected by the system. The developers do more exploring on each story before they mark it ready for acceptance. Testers also participate in the communication from testing perspective to make it as testable as possible.

Finalization of the Story is based on constant and continuous communication among the Product Owner, Developers and Testers.

Estimation

Estimation happens in Release Planning and each Iteration Planning.

In Release Planning, the testers provide −

  1. Information on what testing activities are required
  2. Effort Estimation for the same

In Iteration planning, the testers contribute to deciding on what and how many stories can be included in an iteration. The decision depends on the Test Effort and Test Schedule Estimation. The Story Estimation reflects the test estimation as well.

In Kanban, Done-Done is accomplished only when a story is developed and tested and marked as complete without defects.

Hence, Test Estimation plays a major Role in story estimation.

Story Planning

Story Planning begins after a Story has been estimated and assigned to current Iteration.

Story Planning includes the following test tasks −

  1. Prepare Test Data
  2. Extend Acceptance Tests
  3. Execute Manual Tests
  4. Conduct Exploratory Testing sessions
  5. Automate Continuous Integration Tests

In addition to these Testing Tasks, other tasks also may be required, such as −

  1. Performance Testing
  2. Regression Testing
  3. Updates of related Continuous Integration Tests

Story Progression

Story Progression uncovers additional tests that are required resulted by continuous communication between the developers and testers. In situations where the developers need more clarity on implementation, testers perform exploratory testing.

Continuous Testing is performed during Story Progression and includes Continuous Integration Testing. The entire team participates in the testing activities.

Story Acceptance

Story Acceptance occurs when the story reaches the Done-Done state. i.e., the story is developed and tested and signaled as complete.

Story testing is said to be completed when all the tests relevant to the story pass or level of test automation is met.

Agile Testing - Tools

In Agile Projects, Testers are responsible for the following daily tasks −

  1. Support the developers in coding, with clarifications on the expected behavior of the system.

  2. Help developers in creating effective and efficient unit tests.

  3. Develop automation scripts.

  4. Integrate automation testing tools / scripts with continuous integration for regression testing.

For an effective and fast implementation of these tasks, a Continuous Integration (CI) system that supports CI of Code and test components is used in most of the Agile projects.

The testers and the developers in agile projects can benefit from various tools to manage testing sessions and to create and submit Defect reports. In addition to specialized tools for agile testing, agile teams can also benefit from test automation and test management tools.

Note − Record-and-Playback, Test-Last, Heavyweight, and Test Automation Solutions are not Agile as −

  1. The test-last workflow encouraged by such tools does not work for Agile teams.

  2. The unmaintainable scripts created with such tools become an impediment to change

  3. Such specialized tools create a need for Test automation specialists and thus foster silos

The Tools that are widely used are −

S.No. Tool & Purpose
1

Hudson

CI Framework

2

Selenium

Functional Testing – Integrated with Hudson

3

CruiseControl

CI Framework

4

Junit

Java Unit Test

5

Nunit

.Net Unit Test

6

Cobertura / JavaCodeCoverage / JFeature / JCover /

Java Test Coverage

7

Jester

Java - Mutation Testing/ Automated Error Seeding

8

Gretel

Java Test Coverage Monitoring Tool

9

TestCocoon

C/C++ or C# - reduces the amount of Tests by finding redundant Tests and finds Dead Code

10

JAZZ

Java - Branch, Node, and Defuse Coverage and implements a GUI, Test Planners, Dynamic Instrumentation, and a Test Analyzer

11

Ant

Java – Automation Build

12

Nant

.Net - Automation Build

13

Bonfire

Agile Testing add-on for JIRA

Agile Test Automation Tools

Effective Agile test automation tools support −

  1. Early test automation using a test-first approach.

  2. Writing test automation code using real languages, domain specific languages.

  3. Focusing on the expected behavior of the system.

  4. Separating the essence of the Test from the implementation details, thus making it Technology independent.

  5. Fostering Collaboration.

Automated Unit Tests (using Junit or NUnit) support test-first approach for coding. These are white-box tests and ensure that the design is sound, and that there are no defects. Such tests are built by developers with support from testers, and can be independent of the functionality that is required. This results in delivering a product that may not meet customer requirements and hence with no business value.

This concern is addressed by automating Acceptance Tests that are written with collaboration of customer, other stakeholders, testers and developers. The automated Acceptance Tests are written by the customers or product owners/business analysts reflecting the expected behavior of the product. The developers’ involvement ensures the production of code as per the requirements. However, if the testing is focused only on acceptance, the resulting code may remain non-extensible.

Thus, Automated Unit Tests and Automated Acceptance Tests are complimentary and both are needed in Agile Development.

Agile Tools and Frameworks that support Automated Acceptance Testing are −

  1. Fit
  2. Fitnesse
  3. Concordion
  4. Ruby
  5. Cucumber

Fit

Ward Cunningham developed the tool Fit that can be used for Acceptance Test Automation. Fit allows −

  1. Customers or Product Owners to give examples of product behavior using Microsoft Word and Microsoft Excel

  2. Programmers to easily turn those examples into automated tests.

Fit 1.1 supports both Java and .NET.

FitNesse

FitNesse is a wiki, which is a style of web server that allows any visitor to make any edits, including changing existing pages and creating new pages. A simple markup language lets you easily create headings, make text bold, underline, and italic, create bulleted lists, and do other kinds of simple formatting.

In FitNesse, Acceptance Test Automation is as follows −

  1. Express tests as tables of input data and expected output data.

  2. Use FitNesse to put the test table on the page that you can edit.

    1. Alternatively, put the test table in Microsoft Excel, copy to clipboard and then use the Spreadsheet to FitNesse command to have FitNesse format your table properly

  3. Run the test

  4. You get the test results by color coding of the cells in the test table

    1. green cells represent that the expected values are obtained

    2. red cells represent that a different value than what you expected is obtained

    3. yellow cells represent that an exception was thrown

Cucumber

Cucumber is a tool based on Behavior Driven Development (BDD) framework. The key features are −

  1. Is used to write acceptance tests for web applications.

  2. Allows automation of functional validation in easily readable and understandable format like plain English.

  3. Was implemented in Ruby and then extended to Java framework. Both support Junit.

  4. Supports other languages like Perl, PHP, Python, .Net etc.

  5. Can be used along with Selenium, Watir, Capybara, etc.