| Tracking Quality with AdaTEST |
| British Aerospace Systems and Equipment (BASE) is a subsidiary of British Aerospace plc located at Plymouth, Stevenage and York. The company specialises in the development and manufacture of high-tech engineering products. BASE has achieved particular excellence in the fields of motion sensing, navigation, tracking and communications for aircraft, ships and other platforms in both the civil and military sectors. |
| A variety of systems are constantly in development, many of which contain a high proportion of software. All of these systems can be described as being of a 'high-reliability' nature, while some qualify as 'safety-related'. Customers for BASE products include the UK MoD and CAA, the US DoD, and other government organisations such as police forces. These clients demand demonstrable quality and conformance to recognised standards; these are paramount considerations when making a decision to purchase. For example, the latest flight data recorders from BASE are being developed to gain software certification to the DO-178B standard. This standard requires a rigorous software verification process including documented, and auditable testing. |
| In charge of software engineering standards at Plymouth is Jo Smart. For her, the move into the Ada language which occurred around three years ago was an opportunity to raise standards to a level in line with the demands of customers. Jo took the view that testing was an integral part of the development process and she was prepared to invest time and resource in investigating the 'best' way of testing Ada software. For her, the main problem with previous approaches was that too little attention had been paid to the question of "when to stop testing". There was no clear criterion, based on an engineering justification, of what constituted an acceptable level of confidence for a given unit of code. |
| Investigation |
| An opportunity to carry out the investigation arose in 1993 with the approval by the company of a project to develop a new tracking system, called VITS, suitable for deployment in aircraft for both military and civil applications. VITS is a Video Image Tracking System which performs detection and tracking of multiple targets from conventional or infra-red moving images. |
| Senior Engineer Ian Loughrey was put in charge of assembling a suitable tool kit for the project. In addition to Jo Smart's concerns of proof of the extent of testing, Ian was further interested in improving the maintainability of the code and associated test scripts. In his experience, test scripts went through many cycles of modification and re-execution just to get the code through initial integration, with more to follow during the later life of the product. For Ian the key to maintainability is 'conformance to a project-wide testing style', giving one engineer the ability to understand what another has written. |
| During his initial search for suitable Ada testing tools, Ian came across a report written by another division of British Aerospace describing their experiences with AdaTEST. Encouraged by this, a copy of AdaTEST was purchased and put to use. |
| The VITS project totalled approximately 5000 lines of Ada code, all of which has been thoroughly tested, mostly at the procedure level. The immediate gain was the visibility of testing achieved - "Measurement and use of test coverage gave us, for the first time, an objective go/nogo criterion for the acceptance of a unit of code." |
| Extension to other projects |
| BASE was keen to capitalise on the benefits of AdaTEST which had been demonstrated on the VITS project. The product's application has now spread to all new Ada systems development at BASE. The two most prominent of these are the cockpit voice and flight data recorder system (SCR500), and a naval gun fire-control system. |
| For Jo Smart the SCR500 project represented an opportunity to apply the DO-178B standard to set a testing goal up-front rather than justifying a coverage level 'after the event'. AdaTEST's ability to generate hard-copy evidence has become a key mechanism in satisfying an external certification body, the CAA, and is also a means to resist internal pressure to release code prematurely, before it has been completely tested. |
| On the maintainability issue, project engineer Mark Milton estimates that units go through between three and seven iterations of modification and re-test before being accepted. This would not have been easily possible without automation of the testing process using AdaTEST, with its clarity of style and automatic data checking facilities. According to Mark, one of the single most troublesome aspects of previous approaches to testing was the difficulty of detecting unwanted side effects as well as the required aspects of software change. Now that tests can be rerun automatically, these effects can be seen and addressed. |
| A final benefit of AdaTEST has came out of use of complexity measurement, where AdaTEST is being used to highlight potentially problematic units to undergo additional testing. After some investigation it was decided that code units with a McCabe Cyclomatic complexity value greater than 12 should undergo more intensive verification than other units. This takes the form of extra testing, or in more extreme cases, redesign of the unit. |
| Conclusion |
| AdaTEST has now been in use at BASE for approximately 18 months and has contributed to achieving the high standard of software engineering to which the company engineers aspire. Certification evidence is being generated which will allow the company to take its products into a wider range of markets than would be possible without AdaTEST. In dealing with internal issues of quality and risk, Jo Smart is adamant on one fact, "We have gained through AdaTEST a common vocabulary which allows engineers and project management to communicate with each other. We can now talk about quality and risk in objective terms where previously subjectivity had prevailed." |
| IPL wishes to thank BASE for permission to report their experiences with AdaTEST and wishes them every success with their projects. |