Download Pilot Project for Model Based Testing using Conformiq Qtronic

Transcript
Model independence
A system can be modelled based on different specifications (see section 3.3.1). The
strategy for creating a model is to model as independent as possible from the actual
implementation. This will assure that no errors in the SUT implementation code are
reproduced in the test model as this might lead to incorrect test cases.
Step-by-step modelling
Table 5 shows a step-by-step description for model creation. This was created by
reading documentation and looking at example models available with the Qtronic
suite.
Table 5. Step-by-step structure for model creation
Step #
Description
1
Analyse the functionality of the SUT to get an understanding of it.
2
List hierarchy of scenarios that should be tested.
3
List relevant ports and signals of the scenarios.
4
Choose a single scenario.
5
Remove signal data irrelevant in this scenario.
6
Model the scenario.
7
Repeat 4-7, starting with closely related scenarios, until all scenarios have
been integrated into the model.
Analyse the model
All iterations of the model creation process can introduce several errors into a model.
A good way to make sure that the model correctly describes the expected behaviour,
the model along with the most recently generated test cases should be analysed.
Finding faults is not an easy process at any state, but it is easier to find them early on,
than when the model is large and complex.
5.3 Backend structuring
When a model has been used to create abstract test cases they need to be transformed
into executable Goat script. The best way to assure a smooth creation process is to
structure the work before starting.
5.3.1 Scripting to Goat
If the scripting backend is only meant for a pilot project, it will not need to work for
more than the pilot model. Creating a functional scripter is not as hard as one might
40 (67)