Marconi Communications
About IPL
Market sectors
Software development
Systems integration
Consultancy
Case studies
Testing tools
Overview
News
Cantata++
Cantata
AdaTEST
Library
Support
Training
Partners
Information
Career opportunities
Contact us
Search
Help
Home page
Testing C++ with Cantata++ - the inside story from Marconi Communications
Marconi Communications - Delivering Innovative Telecommunications Products
Marconi Communications - Delivering Innovative Telecommunications Products
We have been advertising our progress with the Cantata++ product, specifically designed for the testing of C++, since early 1997. As our regular readers will be aware the product was officially made available in May of this year (1998), but a lot of work has been taking place behind the scenes and with beta trials. In this case study we take the lid off one of those trials to reveal what a significant customer has made of Cantata++ so far.
Marconi Communications, (formally GPT), a division of the UK's GEC company, is one of the world's major suppliers of telecommunications equipment to telecomms network service providers. Its Data IP & Voice Networks Business is very active in the provision of Intelligent Network (IN) products which enable customers, such as British Telecom (BT), to operate, maintain and extend services to millions of domestic and commercial subscribers. Marconi Communications operates several UK development sites including a large site at Poole on the South coast.
The IN products of which Marconi Communications are particularly proud are GAIN INventor and GAIN INjector. The INventor is a Service Creation Environment (SCE) which allows telecomms providers to prototype new service ideas such as Personal or Freephone numbers. The INjector is a Service Control Point (SCP) which enables those services to be implemented in the telecomms network*. These products are very software intensive, so a constant theme of Marconi Communications' software process improvement strategy, is the search for 'better' ways of producing large volumes of reliable C++ code, in a cost-effective way.
Two Schools Of Testing
Marconi Communications have been long-standing owners of Cantata licences but have acknowledged that use of the product, pre-1997, was patchy. This was largely due to some misplaced expectations about what a test tool could achieve. There were also two contrasting schools of thought on how to go about testing with Cantata. One school was in favour of writing code, debugging it informally and then writing a test harness to show that it worked. The other preferred to create and maintain tests in parallel with code production so that software was tested as it was developed.
Motivation for a fresh look at the coding process came in early 1997 when new releases of INventor and INjector were planned to provide new IN functionality. A continuous improvement strategy is part of Marconi Communications' business process and here it was specifically targeted at identifying faults earlier - so reducing the time and cost of the work.
The contrasting approaches were studied, and it was concluded that the second approach leads to better results and provides for better long-term maintainability of the product. This conclusion was based on the analysis of previous projects and the observation that testing needs to serve twin purposes: one purpose is to ensure that code does what it is required to do, and the other is to ensure that changes made to previously working code do not introduce errors. To ensure that both these objectives are met, tests need to be designed and be in place at the start of coding, and to allow for frequent re-running. Cantata met this general aim well due its scripted approach with stubbing, but had difficulties with some aspects of C++.
Cantata++ Beta Trial Participants
IPL had been developing Cantata++ during 96/97, and the beta trials which started in Summer 1997, came at exactly the right time for the IN project. Two engineers, Dave Parker and James Legg attended the beta trial training held in July and conducted an initial evaluation of the product. This lasted until October. Dave says that he found that "Cantata++ worked well, and any problems found were quickly dealt with by IPL".
In October the software team made the decision to stay with the new product. Until then Cantata++ had been using coverage analysis 'grafted on' from Cantata, but by January 1998 this had been remedied and the tool was running with its own coverage facilities. At this point another Marconi Communications team producing further INventor facilities came on board with Cantata++.
So What Has Cantata++ Done For Them?
By the end of August 1998, the volume of new code created and tested with Cantata++ had reached approximately 10,000 LOC. At the peak, ten developers were using Cantata++. The project is now in the last stages of delivery, so it is appropriate to draw some conclusions. On the main aim, which was to reduce development time by finding faults earlier, there is no doubt that Cantata++ has been very useful. "We found errors using Cantata++ that we know we would otherwise have missed until later," says Dave. He also adds the useful observation that the very process of devising the tests revealed errors without even using the tool! This confirms a claim often made by IPL, that the sheer discipline of test planning is enough to find a large number of errors before the tests are run. This occurs because the test planners are obliged to run the test scenarios 'mentally' which often picks up design errors before the code is even written. On the secondary objective, to check the continued correctness of pre-existing code, Cantata++ provides for test automation, and so regression testing at unit level (class and/or domain) is much simplified.
In terms of specific Cantata++ functionality, Dave has mentioned two areas. One was the Cantata++ 'White Box' testing feature. This opens up the private components of a class and enabled the IN team to carry out useful checks on the internal states of the code. Such checks would otherwise have been very difficult or even impossible. The other feature to have found favour is 'Wrapping', which Dave describes as: "Very useful, especially for checking the messages sent from one process to another, and also for simulating responses from external processes to the process under test." At times the effort of setting these up could seem an overhead (mainly because of the structure of the Marconi Communications software build environment) but once implemented, the repeatability has proved a significant bonus.
The test coverage side of things was less used, mainly because it was available rather late. Dave says that he found: "Statement coverage (at 100%) good as a general measure of confidence but that decision coverage was better at spotting unexpected scenarios." The more advanced OO-coverage features of Cantata++ have not yet been fully tried and evaluated. Another untried feature of testing with Cantata++ was re-use of base class tests when creating derived classes. Dave explains that this is because the base classes had already been verified without Cantata++ and the effort of redoing it was not deemed cost effective.
Dave says that Cantata++ was a bit of struggle to learn for new team members inexperienced in C++, and that having to cope with frequent successive beta releases of the tool did slow them down at times. However, as team members are now familiar with the tool, and Cantata++ itself has reached a higher level of stability, it is anticipated that productivity will take a further step forward. The project is now moving to a new phase, and the team intend to maintain the momentum already achieved with Cantata++.
* Further information on the GAIN INventor and GAIN INjector products can be found on Marconi Communications' Web site, www.marconicomms.com.
IPL wish to thank the Marconi Communications Poole IN team for both their participation in the Cantata++ beta trial program and also for sharing their experiences in this Case Study. We wish them well with their ongoing work.