Search Blog

Loading
Showing posts with label bug. Show all posts
Showing posts with label bug. Show all posts

Wednesday, 21 November 2012

The costly bug.




What is the cost of a software bug? According to this article, for Knight Capital, an American global financial services firm, it was at least $440 million due to a glitch in their legacy software. The loss was caused by a failure in an update meant to accommodate a new New York Stock Exchange (NYSE) system that went live on August 1. $440 million was lost in only 30 minutes, before it was manually shut down. That is not counting the additional damage caused to their reputation and stock valuation. This is not insignificant – Knight Capital is not some fly-by-night startup in a garage but rather the largest trader in American equities.

Knight’s glitch wasn’t the only technology failure we recently saw in the financial sector. NASDAQ OMX was forced to pay $62 million in a settlement compensating investors for the delay in trading Facebook shares during its IPO, caused by a “technical glitch.” BATS Global Markets was forced to cancel their IPO due to a “software bug” in their trading platform.

There is no dearth of examples of the mounting cost of software failures; you can catch a news article almost every day about some consumer product or the other, being recalled due to software issues, all top brands. As we begin to depend more and more on software, how do we ensure that these losses are kept to a bare minimum if not avoided totally?

Does the answer lie in more rigorous unit testing as one expert seems to suggest or in using better and safer programming standards as some others may say?  Unfortunately, there is no one magic pill , there are just many small steps that will ensure that you have adopted a “Zero Tolerance” approach to software failure, and you need to decide the "what-how-when" that will  best work for your company and your team culture.

It’s easy to blame the quality team or the developers for glitches but often the person accepting the poor quality software in a bid to push faster for more business, plays an equal if not greater part in creating a cycle of poor quality, and as a consequence, in the blind rush to release new software not only quality but innovation suffers too.

The shift towards better quality is a cultural shift that needs as many champions as you can muster; it will pay off slowly but surely. But as a Business Leader you will have to convince everyone involved in your organization that testing is not an option and not an extra cost, the ROI on testing more than justifies the need for it.




To know more about TCL's  Independent Software Testing Services, contact
Arun Kumar, 
arun.Kumar@tcl-asia.com

.....................................................................
TCL is a specialist consultancy in software testing.  As a company, our core purpose is to Develop and Deliver World Class Solutions in Software Testing that are Innovative, Structured and Professional.
The company exists to meet the needs of our clients who strive to ensure that their IT projects create value and demonstrate return for their investment.  We are geared to deliver services in all areas of software testing including functional, non functional and process improvement.
The first TCL company was based in the UK (Transition Consulting Limited) and the group has now expanded to include enterprises in the US and India.  A further expansion into Australia or New Zealand is expected within the next five years.
For more details visit: 
http://www.tcl-global.com/



Wednesday, 13 August 2008

The Very First Bug

I saw this a while ago on Wikipedia and included it in our company journal. I was amazed at how many people had not heard the story. I am posting it here now in recognition of a similar article on "help i found a bug in mycode" where he draws comparison to a more modern day version.

The similarity is strange, because only recently I had been recounting to colleagues an experience with my son (10 years old). A storm fly, one of those tiny little things about 1mm by 2mm had some how crept into my LCD screen on my monitor and to all appearances, was crawling all over my document. I called my son over remarking, “Come take a look at this bug in my screen”. His response was naïve but endearing as he responded, “Wow, Dad is that a virus?” much to my delight.
The picture above relates to the following text. “While Grace Hopper was working on the Harvard Mark II Computer at Harvard University, her associates discovered a moth stuck in a relay and thereby impeding operation, whereupon she remarked that they were "debugging" the system. Though the term computer bug cannot be definitively attributed to Admiral Hopper, she did bring the term into popularity. The remains of the moth can be found in the group's log book at the Smithsonian Institution's National Museum of American History in Washington, D.C.”

Saturday, 31 May 2008

Components of a Bug

Legs, body, head, eyes, mouth; or are we talking about software bugs? The bug, error, defect; it little matters what it is called, but some are more touchy about the subject than others and like to use more politically correct statements, like issue or observation. The reality is that during the testing of an application or piece of software, something is identified as not performing in the expected manner, as driven by experience or indeed by the requirement specification, functional specification or design documents.

Call it what you will, we will use the term defect. Ensuring that you capture the right information at this point is critical. From a testing and development perspective, it is essential to be able to reproduce the defect at a later date, either as part of the remedial process or proving that a remedy has worked. TCL India would recommend that the following points are recorded for each defect:

· Unique defect identifier – a unique reference by which the defect can be identified.
· The application name or identifier and version – the software in which the defect was located.
· Environment specifics – the environment that was being used to test the application.
· Test script identifier (if applicable) – A unique reference from the test script, enabling each defect to be identified by script.
· Defect synopsis – A brief description of the defect that has been encountered.
· Detailed description of Defect – Full definition of the defect, enabling it to be reproduced by developers or those trying to resolve it.
· Test Steps Executed – from the test script, details of the steps executed and the detail of the step that has failed
· Expected Result for Test Step – The expected results for the step, e.g. the displayed logo should have been blue and white
· Actual Result for Test Step – The actual results encountered, e.g. the displayed logo was red and white
· Evidence of defect – Additional information showing the defect, such as screen shots
· Severity estimate – The impact of the defect on the ability of the tester to complete testing
· Priority – The importance of resolving the defect to the organisation
· Tester name – The name of the tester who has reported the defect
· Test date – The date that the tester located the defect
· Defect reporting date – The date that the defect is located. This should be immediate
· Defect assigned to – Who is being asked to resolve the defect

Each time responsibility for a defect is passed to another party, that fact should be recorded to form a history. The value becomes obvious when investigating why certain defects may not have been resolved in a timely manner. Investigation may be required as to why defects are bouncing backwards and forwards between different people, or those which are with an individual or team for a long period of time, impacting on the defect fix turn around time, potentially breaking SLAs.

In some more advanced tools used for defect management you will be able to prescribe the life-cycle of a defect. Such as:
-Raised by the tester
-Passed to the business analyst to prioritise
-Passed to the environment manager for specification of the environment and ensuring the defect was not caused by environmental issues
-Then onto development to fix code
-Back to the tester for re-testing
-Then onto the test manager or defect manager for closure.

The key then is to report on the defects on a daily basis during test execution, keeping the project informed of the number of defects raised and closed that day and the resulting cumulative totals. This enables the Project Manager to make decisions on the project's likelihood to go live on time, whether to apply more resources to certain aspects of the projects, whether overtime is required etc.

Care should be taken not to raise the same defect over and over again. When volumes of defects are high it is worth employing a defect manager to ensure that defects are not being repeatedly raised, wasting the time of resources. The defect manager should also ensure that all defects are being progressed. Sometimes defects that have been remedied are re-introduced erroneously: this is usually symptomatic of poor configuration management.