Thursday, August 2, 2012

New School of thought for QA


The end of the road for the test phase?

There is much debate about how testing will be organised in the near future. The testing profession has evolved from the very first time developers started testing through to separate test phases and independence and then to collaborative testing.

The waterfall method, which is still being used by many organisations, prescribes an extensive final test phase. Another significant feature of waterfall is that the software development process is organised with several sequential periods, or test phases, in which a dedicated group performs specialised tests. In this context, the term ‘test phase’ can be defined as a group of jointly executed and controlled test activities. The testing within each phase may be more or less structured and formal, but the test activities within a test phase are bound by common objectives and the same focus or system boundaries.

Afterthoughts

There is little value in a quality assessment that is too late. Within the waterfall method the testing is often tested until just before the deadline. Due to high workload the test report is written afterwards when the system is already in production. What is the value of remarks and comments at this stage? What should the project do with bugs that cannot be restored, since the deployment is already a fact?

Even when testing is done at early stages, such as with the system test, results are coming in too late. The fair is already over. The programmers have done their work and want to start something new, but must wait until the testers make their statement about the quality, often accompanied by a litany of bugs.

Customer experience is a key performance indicator (KPI) that is gaining popularity with our stakeholders. Organisations put the customer rating at the centre of their dashboard. Although bugs are a threat to customer experience, the perceived value of a full bug tracking system depreciates quickly.

The aim is not to demonstrate the differences with the specification, it is to have a satisfied customer. Agile development aims for ‘right first time’ and has therefore a large focus on early detection and quick resolution of errors. The user is involved in the development and cooperation is more important than following a formal specification. This reduces the need for an independent quality judgment at a later stage.

The development cycle is shortening

The life of software is becoming shorter due to rapid innovation. Consequently, we should develop our software faster also. Kent Beck provides a clear prognosis at the USENIX Technical Conference.

In the coming years the deployment cycle will decrease from an average of once a quarter to releases on a daily or hourly basis. For testing this has two direct consequences. First, test must be performed quickly. You cannot test for one month when the software is due to be released next week. Secondly, the phasing of activities gets blurred. Testing is done continuously and by everyone. There is no longer room for a separate testing phase.

A shift to operational assurance

For many organisations the test phase is still important but in Agile organisations there is a shift in emphasis. We see that testing is an activity that is conducted by many parties: developers within the sprint, business architects during design and real users that perform beta tests. Quality attributes like usability, durability and security are increasingly important and get attention throughout the project. This is in contrast to the traditional test phase in which a group of independent testers, urged to speed by a fast approaching deadline, execute their functional tests.

The above description shows a clear shift of formal testing phase (especially at the end of the development process) to a continuous process involving many disciplines. Linda Hayes indicates that there is a shift from quality assurance to operational assurance. In this the quality assessment no longer has central place, but the support of the operational process has. On the basis of the above arguments, it is clear that one of the ‘victims’, of this shift is the separate testing phase.

Note that the above arguments question the health of the separate test phase, and argue it to be dying dinosaur. Between the lines you can read that testing as discipline is far from dead. It will be organised differently and other disciplines are getting involved. Although things are changing for sure, the above arguments are only one side of the coin. Are there arguments that plead for a separate test phase and the end of the cycle? Yes, there are!

Arguments for a test phase at the end of cycle

In the following paragraph I will share some arguments that plead for a separate test phase.

Although it is desirable to maximise early testing as much as possible, not all tests can be done upfront. Often it is just not possible. Unit and system tests only check the quality up to a certain level. Due to appification and an increase in system couplings, the system chains get longer.

Using adequate simulations and by working with trusted components a lot of errors can be solved before integration, but these measures will never replace a true integration test. Experience teaches us that when two systems interact for the first time, often unforeseen problems arise. A testing phase at the end prevents these problems from occurring while being in operation.

The supplier has other interests

Wherever development work is being outsourced, organisational boundaries arise. On either side of this boundary parties have their own interests. And they might be different and exclusive. For political reasons or due geographic spread it is difficult for the accepting party to have real insight in the activities of the supplier, therefore control and checking by the acceptor is a necessity.

Preferably this are done during the project and in cooperation with the supplier, but formal acceptance means that there is should be a critical examination once the goods are delivered. Although the weight of this activity may vary based upon the trust one has in the supplier and the risk involved, it pleads for a small testing phase at least.

Politics rule

Apart from the question of acceptance, when organising testing one has to have an eye for the role that politics has in the organisation. Increasingly, organisations are expected to meet compliance standards like Basel, SOx, SEPA (just to name a few). This forces compliance testing, and makes demands on the formality of the testing activities. Besides it is often desirable to have a shared responsibility and create a wide commitment. Both can be achieved by involving stakeholders and management in testing. Such a test phase therefore has a political purpose.

As mentioned, quality attributes such as security, performance, durability and user friendliness become increasingly important. Experience shows that these specialised tests are often best organised separately. Usability, Performance testing, and especially reliability testing seldom fit within a two week sprint. If you organise Beta Testing, a longer run will lead to greater coverage, reasons for these tests to be organised in a – you guessed it – separate test phase.

Legacy

Almost all organisations have to deal with legacy. Agile development, continuous integration and testing are all right, but bear in mind, that not all of the software is suitable for this mode of development. In particular, legacy systems can best be adapted in a traditional development way.

According to Ken Beck various types of systems require different testing approaches. It may therefore be effective to choose for different test approaches. These coexist within the same organisation. Besides legacy systems, there are also legacy organisations. In these organisations, the technique does not determine what is possible, but the culture and available knowledge does. Agile development requires the right expertise and mindset. Not every organisation is ready for this.

In life-critical systems the above arguments apply even stronger. If lives depend on it, the organisation is bound to tackle as many problems as possible by fully integrating testing into the development, and to have the necessary objective test moments. Thus, the two opinions merge into one other and coexist side by side.

Best of both worlds

We have seen that there are arguments for and against separate test phases within software development. I do not think there is value in forced decisions for or against. We should not cling to the known test phases just because we are familiar with them. Neither is it desirable to throw away the old approaches. Current developments will lead to many changes. It is important for testers to track these developments and to consider what its consequences are for the testing profession and the way we do our work.

In my view, the job gets more colourful, versatile and challenging. We get new tools and options. Test strategists will have to think about the contribution they want to make to the organisation and what objectives we pursue with our activities. On this basis we can make choices.

Let old and new ideas come together. This will result in testers that sit beside developers to reduce and rapidly detect errors. This will also lead to testers that are working in separately organised test phases, whenever this is more efficient.

I can think of situations where, for example, all activities related to a certain risk group are combined in a dedicated test phase. Proper business alignment dictates that the output of our test activities are closely related to the information needs of the business. Regardless of the moment in time that particular test activities are being performed, it can be rewarding to organise them separately. This holds for all testing activities that contribute to the same insights and information. By doing so, the test coordinator becomes the responsible person that, on behalf of the business, ensures intelligence and comfort for one or more key focus areas.

The test phase is far from dead, but it will increasingly be defined and organised in a different manner. I think that’s just fine, as long as we keep aligned with the needs of the organisation, we continually challenge ourselves to deliver maximum added value and contribute to operational excellence.

 Happy testing

Prasad

Thursday, February 23, 2012

3 things you should mind for Agile project



I am going to share 3 key aspects which made a huge turnaround in transforming a typical waterfall to agile project.
Brief about the project

Building a cutting edge analytics engine for one of top 10 analytics company

Never outsourced before

Struggling with time to market

Need to incorporate frequent feedback from end user

New team, from different back ground

2 weeks sprint
Customer wanted ‘agile’
We had ‘great’ agile immersion program, team energized, ‘great’ agile tools ..
but after 3 sprints
Customer is unhappy, many escalations, strained relationship
Management ‘doubtful’ of the outcomes and output
Lack of confidence and backbiting in the team

As a program manager, after spending a week with each team
members, stakeholder and customer touch points … did go with 3 item agenda to change the mindset ..
Be truthful to yourself – be declarative , awareness of a safety net for being
truthful [ this helped in understanding learning curve, dependencies etc.]
Mind set for looking and being ‘detailed oriented’
[ this helped in doing a effective release and sprint planning]
How to have unconditional ‘collaboration’
– moving away from cooperative mindset, demolished nonsense of ‘daily standup’ established ever flowing communication mindset. Set up a collaborative Performance Appraisal system
These 3 practices embedded in every aspect of work and activates, customer was also communicated same..
After 2 sprints ..
Customer understood – what can be done and what cannot be done
Team knows what it takes complete user stories – better estimation
Effective communication started flowing- silent folks started communicate

Crux of the story - happy team, happy customer and happy management...

Regards

Prasad

Wednesday, November 25, 2009

Agile Community of Passion at Symphony

Community of Passion are Self organizing and self governing groups of people who share passion for the common domain of what they do and strive to become better practitioners. They create value for their members and stakeholders through developing and spreading new knowledge, capabilities and fostering innovation
George Por

Agile CoP is a special kind of ‘social network’ that comes together because of a passion about Agile and its practices.
Objectives :
a)Peer- to peer help in problem solving
b) Developing and validating best practices
c) Upgrading and distributing knowledge in daily use
d) Fostering unexpected ideas and innovation
e)Connecting to external Agile world

Sunday, August 23, 2009

My Kanban Notes, the key takeaways

Kanban in nut shell Visualize the workflow: Split the work into pieces, write each item on a card and put on the wall Use named columns to illustrate where each item is in the workflow
Limit WIP (work in progress) – assign explicit limits to how many items may be in progress at each workflow state.
Measure the lead time (average time to complete one item, sometimes called “cycle time”), optimize the process to make lead time as small and predictable as possible.
Queue limits are designed to avoid premature work. The limit should be large enough to keep the team busy (i.e. there is always something in it for the team to start work on), but small enough to avoid premature prioritisation (i.e. having things sitting in the queue for too long before they are begun).Ideally the queue should be FIFOWIPlimits are designed to reduce multi-tasking, maximise throughput, and enhance teamwork.Reducing multitasking is beneficial for two primary reasons. 1) 20% time is lost to context switching per ‘task’, so fewer tasks means less time lost (from Gerald Weinberg, Quality Software Management: Systems Thinking) 2) Performing tasks sequentially yields results sooner. ...........................................................................................Throughput is also maximised by decreasing WIPSimple examples of this effect are traffic jams, where traffic speed reduces as more traffic builds up, and CPU load, where application performance goes down as CPU load increases. Little’s Law for Queuing Theory:Total Cycle Time = Number of Things in Progress / Average Completion RateTherefore, to improve cycle time there are two options; reduce the number of things in process or improve the average completion rate. Of the two, reducing the number of things in progress is the easier, and once that is under control, then the more challenging changes to improve completion rate can be applied...........................................................................................WIP limit sizes can depend on type of work and size of team and should be adjusted to achieve maximum flow. One approach is to start small (e.g. a limit of 1) and increase as necessary. Another is to start larger (e.g. a limit of half the team size) and reduce until the sweetspot is achieved.
The consequences of using a kanban system are that the Product Backlog can be eliminated, because the immediate queue is the only work of interest, timeboxed iterations (i.e.Sprints) can be eliminated, because work is pulled as necessary, and estimation can be eliminated, because work is not planned into iterations.
.................................................................................................
. ...............................................................................................Flow & Cadence
Flow describes how the work in the system can delivery maximum valueIn lean enterprises, traditional organizational structures give way to new team-oriented organizations which are centred on the flow of value, not on functional expertise.Lean emphasises ‘One Piece Flow’ (means moving one piece at a time between stages in a workflow as opposed to moving batches of work between stages in a workflow)The ‘One Piece’ in a Kanban system for software development can be thought as the Minimal Marketable Feature (M Denne & H Cleland-Huang in Software by Numbers).A minimal marketable feature is a chunk of functionality that delivers a subset of the customer’s requirements, and that is capable of returning value to the customer when released as an independent entity.The consequence of applying the concept of Flow is that emphasis is placed on using larger, value-focussed MMFs, rather than smaller, more incremental Stories.
...........................Cadence is the approach to achieving commitment and reliability with a kanban systemA regular cadence, or ‘heartbeat,’ establishes the capability of a team to reliably deliver working software at a dependable velocity. An organization that delivers at a regular cadence has established its process capability and can easily measure its capacity.Throughput = WIP / Cycle TimeThroughput allows forecasting of future capability, without needing to specify what might be delivered. Cycle Time allows commitment by becoming an SLA with the business
...........................................................
Summary : They key points of Kanban, Flow and Cadence are:A Kanban System manages the workflow in a way which allows the Product Backlog, Timeboxed Iterations and Estimations to be eliminated. Flow is about effectively delivering maximum value by focussing on optimising the value stream of larger MMFs Cadence allows iteration input and output to be de-coupled and achieves commitment and reliability via measurement rather than planning

Thursday, July 23, 2009

Agile beyond Software products! Survival of 'Agile'

than building agile frameworks aournd IT services, we need to be agile in our supporting functions like HR,Marketing, pre-sales, CS, N&S etc.. It will be excecllent to have product back logs, time boxes, right prioritized buisness values for our support functions! your thoughts! how product back log of HR/ marketing look like?
Indeed we need agile beyond software products. I'm not sure exatly what it should look like. First of all maybe we should stop speaking about 'supporting functions' and not look upon IT- and business functions as two separate things. Although businesses can evolve without IT and could benefit from using agile/lean principles. While businesses is developed using IT, we need to assure IT is aligned with the business to achieve true 'business agility'.
We need better transparency between enterprise architecture and software product development. Enterprise architects and business analysts need to understand that the BIG design up-front and the huge requirement specification covering all details is not the solution. And 'agilistas' need to understand that there is more to achieve than the one and only product and that processes, tools and documentation are needed to some extent.
Communication rather than EA frameworks, processes and tools, so to speak, as stated in the manifesto. Although the latter is also important.