Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Specification by Example by Gojko Adzic.pdf
Скачиваний:
198
Добавлен:
12.03.2016
Размер:
13.4 Mб
Скачать

222 Speciication by Example

Introducing the business framework and making sure that the executable speciications actually get validated frequently and stay relevant enabled them to create a useful living documentation system. They had a relevant source of information on what the system does, which anyone could access.

Living documentation as competitive advantage

With such a good living documentation system, they were able to handle very big changes eficiently. Three months before the end of the project, the business model of the company suddenly had to change. They normally fund loans through a bond sale. Because of the credit crisis in 2008, the bond sale failed. The business is technology driven, so this business model change had to be relected in their software. Andersen says that the living documentation system helped them understand what was required to support this business change:

Typically, we use bond proceeds to fund private student loans. However, we changed our business model and made all of the funding portion of the system conigurable so that we could use lenders to provide funds and continue to provide loans to the students. It was a dramatic overhaul of a core piece of the system. Before this new funding requirement, our system didn’t even have the concept of a lender because we were able to assume Iowa Student Loan was the lender.

We were able to use our existing acceptance tests and repurpose them to say, “OK, here’s our funding requirement.” For all of the tests we had, we discussed the impact and provided funding so they would still work. We had some interesting discussions based on scenarios where there is no more funding available, or funding is available but not for this school or this lender, so we had some edge cases for these requirements, but it was really making the new funding model more lexible and conigurable.

Once they understood the impacts of this new business model on the software, they were able to implement the solution eficiently. According to Andersen, such change would be impossible to implement quickly without a living documentation:

Because we had good acceptance tests, we were able to implement a solution within a month. Any other system that didn’t have the tests would halt the development and it would have been a rewrite.

Chapter 14 Iowa Student Loan

223

This is when the investment in the living documentation system paid off. It supported them in analysis, implementation, and testing of the impact of a business model change, at the same time enabling them to quickly verify that the rest of the system is unaffected.

Key lessons

They started out by focusing on a tool and quickly realized that it doesn’t help them achieve the goal of bringing business users into the process. So they started approaching the speciications from the perspective of a user. This enabled them to communicate with their business users better and reduce the costs of maintenance for tests. When the tool prevented them from collaborating effectively, they modiied it. This is another argument for using open source tools.

Implementing Speciication by Example at Iowa Student Loan was driven not by the need to improve quality or automate tests but by the need to build a relevant documentation system in order to be more effective and engage business users better. They invested heavily into building a good living documentation system, which paid off well. It helped them implement a business model change, which was very powerful.

15

Sabre Airline Solutions

Sabre Airline Solutions offers software and services to help airlines plan, operate, and sell their products. They are an early adopter of Extreme Programming and Speciication by Example and an interesting case study because they applied

SBE on a massive project, with a relatively large distributed team.

The project was Sabre AirCentre Movement Manager, a software system that monitors airline operations and alerts the relevant teams when it inds issues, allowing them to adjust schedules to minimize the impact to customers and the airline. According to Wes Williams, an agile coach at Sabre, two previous projects to build similar systems failed because of the domain complexity and quality issues. Speciication by Example enabled them to complete this project successfully.

Changing the process

Because of the complexity of the domain, the teams at Sabre were looking for a collaborative way to specify and automate acceptance testing soon after implementing Extreme Programming. Williams said that they initially tried to do it with a technical unit-testing tool. That approach didn’t help with collaboration and it wasn’t reusable, so they abandoned it.

They started looking for a tool to drive collaboration. In 2003, Williams found FIT, the irst widely available tool for automating executable speciications. His team started implementing acceptance testing with FIT, but they focused on the tool, not the practices. Williams says that it didn’t give them the improvement in collaboration they expected:

224

Chapter 15 Sabre Airline Solutions

225

We liked the idea that a customer could deine the test and drive the value you deliver in an application. In reality, we never got a client to write FIT tests in HTML. The tests got written most of the time by a developer. We had a hard time getting the customers to do it. Testers were using QTP. That never drove collaboration, and developers never ran QTP tests or got involved in writing them.

The developers were the only ones who wrote executable speciications, and they understood that didn’t give them the beneits they expected. To improve the communication and collaboration, everyone had to be involved. A single group of people was unable to do that on their own.

A senior vice president of product development, inluenced by the development team, brought in consultants from ObjectMentor to train everyone. They made the wider group aware of the goals of Speciication by Example and the beneits they could get out of it. Although they didn’t get everyone on board immediately, the training helped them get more people enthusiastic about the practices. Williams says:

Not everyone adopted it. Still, there was a core group of people who believed in it, and they learned a lot. Those who didn’t continued to ight against it.

That core group of people started with a relatively simple web project—an internal system for aggregating software build information. They wanted to try out the practices and get their heads around the tools, which were a lot worse in 2004 than they are now. The team selected FitNesse to manage executable speciications collaboratively. They wrote executable speciications either just before the development or roughly at the same time. The business stakeholder for the project was an internal manager, who got involved in reviewing the tests. The team initially looked at the automation layer as second-grade test code and cared little about making it clean, which caused numerous maintenance problems. They also ended up with a lot of duplication in test speciications. Williams says:

We learned that we should try to keep ixtures as simple as possible and that duplication is bad. It [automation layer] is code, like any other code.

Developers didn’t care much about making the automation layer or executable speciications maintainable because they just associated them with testing. By the end of the project, they realized that this approach led to huge maintenance problems. Similar to

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]