Showing posts with label Agile. Show all posts
Showing posts with label Agile. Show all posts

Saturday, February 15, 2014

Is Acceptance Criteria Written for User Stories the list of Test Cases in Agile/Scrum methodology?

In Agile/Scrum methodology, the customer requirements are written as several user stories which are small enough to complete in a sprint. To claim a particular user story is completed, all the criteria listed in acceptance criteria must have been passed. Acceptance criteria may also be referred as verification criteria for the user story. The question that the developers have is; is it that the acceptance criteria all about writing down the test cases to test the user story? What should acceptance criteria focus on? Lets analyse this with an example user story. 

Example user story:
"As a bank account holder, I want to add my friend as payee, so that I can transfer money to him at any time online".

Acceptance Criteria for above story:(Not recommended way)
  • Login into bank website and navigate to 'Add new payee' button and fill the payee details such as payee name and bank details.
  • Click on 'Cancel' button to see if new payee addition is cancelled.
  • Click on 'Confirm' button and see the addition of payee is successful
  • Check that a new database entry in the 'payee' table has been added.
  • Run the unit test automation scripts for adding new payee and verify the test reports.
  • Check that the SMS is sent using SMS web service to the customer.
  • Click on delete button to see if the new payee entry gets deleted.
  • Once payee is deleted, click 'payee list' link and verify that newly added payee name does not appear.
Above acceptance criteria details out too much implementation specific details which is not really required to be written as acceptance criteria. The developer carries out many more tests during implementation such as unit testing, the developer tests other impacted/affected modules which need not go as acceptance criteria. Such criteria does not talk about the overall goal of the user story. They does not even make sense for our stake holders to go through. Some of above criteria can only be understood by the developers. 

Let's do another attempt to write acceptance criteria that all stake holders can understand and criteria focus on the goal of the user story.

Revised Acceptance Criteria:(Recommended way)
  • Verify that there is an option which is clearly visible to the account holder to add new payee.
  • Verify that the software has option to confirm or cancel the addition of new payee during the payee addition process.
  • Verify that account holder can select the new payee added and there is an option displayed called 'transfer money'
  • Verify that account holder can transfer the money to to newly added payee a limited amount for the first time.
  • Verify that an SMS is delivered when a new payee is added to the account holder.
The bottom line is that it is essential to understand the difference between test cases and acceptance/verification criteria. The acceptance criteria should elicit the customer requirements than detailed test cases. Certainly the user story needs to be tested at minute level by the developers before the story is claimed to be done and also developer checks if everything defined in 'Definition of done' check-list is met or not. The definition of done can have things like testing non-functional requirements, code reviews, impacts tested etc.

Also it is to be noted that 'definition of done' is not to be confused with acceptance criteria. The definition of done relates to when can the software be shippable and may not apply for individual stories. 

Friday, January 24, 2014

Role of Scrum Tester in Scrum/Agile Software Development Methodology

Let us have a bird's eye view of about how software testing is carried out in traditional methods of software development, a well known waterfall methodology.In a typical waterfall method of software development methodology, there is thick line between developers and testers. Once the developers are done with coding and optionally developer integration testing, the build is formally handed over to testers. Test team develops the test cases by studying the software requirements to test. Once done with test, the test team expects another build with bugs fixed. This process usually leads to multiple test cycles before a stable build can come out. If you are still following this approach, there ways to reduce software test cycles.

Scrum test is no different from what we do in different types of software testing. The major difference is that there is thin or no line between development and testing team. This means that testing is part of the development. Since scrum does not address all the software requirements at a go, so there is no need to write large documents of test cases by a dedicated test team. Usually one or two testers will be merged with development teams and they do involve in all the discussions, meeting, planning along with developers and product owners. There are no definite rules here as to how exactly the scrum testing needs to be performed. Different teams follow different ways for this. I've written down what role can a scrum tester play.
  •  When the software is still being coded (there is really nothing to test), the scrum tester spends time understanding the software requirements and deriving the test cases. Again this is only for that junk of software being developed that was planned in a PSI (Potentially Shippable Increment).
  • If the scrum tester has competency of writing the automated unit test cases, they can participate in unit testing the software. This role is what scrum demands from a tester. Usually the code is unit tested by the developer who creates that code.
  • Scrum tester plays an important role in continuous integration(testing). For this minimal functionality of the software should have been built. Here the code changes made by different developers are tested by the scrum tester to see if the software works when different code changes are integrated. This more required for maintenance projects where impacts can hit the software quality.
  • Scrum tester can discuss the use case scenarios with the developer during coding itself. This scrum test helps developer anticipate different user scenarios that the developer himself may not have thought of and leads not passing any bugs to the next person.
  • Scrum tester reads the code check-in comments to understand the nature of the changes made and think about the test scenarios such as issues fixed and impacts that may the fix can have.
  • Scrum tester involves in the PSI grooming sessions to know what new software is being planned in the coming days and think about how those new stories can be tested.

The agile development methodology does not differentiate between testers and developers. All are just the 'scrum team members'. However, in certain teams there may be a dedicated team for System Testing. This team tests if the software works with other subsystems or other products in the company's product portfolio. This will be beyond scrum testing.

Wednesday, June 20, 2012

How To Deploy Agile Framework Effectively

The software development trend is changing these days adopting different approach/methodologies over traditional methods like Waterfall model. Agile Framework has been an very effective methodology and has given proven results by various software organizations and several organizations are switching to an agile way of executing the software programs. In this post I want to talk about how to deploy the agile method of software development in a team that is following waterfall model for several years. In fact agile has several advantages in terms of organizational benefits and employee benefits. The challenge is in effectively deploying the framework. There are certain obstacles in changing the way that people do things on a day to day basis.

Study the current situation

Analyze the current situation in the sense that what's going wrong. Study the customer opinions about the software services that are being served to them. Study the stories of how the software programs are being executed. Interview as many people as possible including the management and asses the situation. This is required because any change must happen for a reason and the reason must be carefully understood. It may so happen that after assessing the current situation, we may conclude that the current methodology is doing well and there is no need for change. Find out if there is any support from the management for deploying the change. Everyone's support is a must and if not, better do not take the risk.

Train the people

There is learning curve involved. Everyone should be trained to learn the agile framework as to what is involved and how the new changes will actually work. Its very obvious that people must be trained on agile framework. People need to understand each every aspect of agile methodology. Training should be comprised of team exercises to better understand how agile is going work.

Change people mindset

This is the prerequisite for any change that an organizations wants to have and is a toughest challenge. Remember that "There is no process that can change people". Attempt to have a process to change people will fail for sure. Its all about people themselves who can change. It is just that there has to be a platform and a motivation for the people to change. Everything happens for a reason and the reasons must be very well explained to the people and convinced to the people. If people do not change their mindsets, nothing is going to change. The true fact.

Change the team structure

This is very essential. In a typical agile methodology, the team is small usually 8 to 9 members. Need to reorganize the team in such a way that the people are comfortable with one another. This can be found by observing the day to day activities of people, who is comfortable with whom. Basically the frequencies must be matched. And the team structure should not be changed. Over the long term the team adjusts itself to understand and help one another to accomplishing the tasks, sprints if I want to say in agile way. There should not be any concept of "reporting managers". Its all just developers and no managers delegating work and tracking instead its the individuals who are responsible for a given task to complete and deliver.

Explain motivational factors often

Once all set to deploy the new methodology, the people may start feeling not comfortable at the initial stage and may tend to go back to the old method of doing things (Scrum bugs). Well, this may happen because people have settled with one method over many years and are already comfortable and to get away with this obstacle, motivate people by repeating the benefits/results that people will be getting over the long term.

Answer people questions

Yes, there will be lots of questions that each one will be asking and they must be answered satisfactorily. Give real time examples for each question.  Tell people that we are not alone. If there are proven results adopting agile framework, then why can't we get benefited out of it. This can happen with an agile expert who has actually gone through all the obstacles that were arisen and successfully resolved them.

Conclusion

As I highlighted its the matter of changing the people mindset, a toughest challenge that we have in deploying any new methodology. People must be coached(by scrum masters), motivated often and regular rhythm has to be maintained. There is no any official methodology to adopt a new methodology. So it depends on the current situations and the reasons for change. A change can best happen by an external person in my opinion, So hiring an agile expert and having him/her in the organization is good idea.  
Related Posts Plugin for WordPress, Blogger...