SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 105 | Next

Jonathan Jacky, Margus Veanes, Colin Campbell, Wolfram Schulte

"Model-Based Software Testing and Analysis with C#"

080 seconds
We also code a run that the model program should not be able to execute:
ShowTitles(); SortByFirst(); SortByFirst(); ShowText();
The model program should not be able to execute this run because there are two
SortByFirst actions in succession. The second of these is not enabled (in the
implementation, this option is not available in this state). The run fails, confirming
that the model program cannot execute this run:
Included categories: ForbiddenRun
.Topics, WithText, ByMostRecent: ShowTitles
Topics, TitlesOnly, ByMostRecent: SortByFirst
F
Tests run: 1, Failures: 1, Not run: 0, Time: 0.080 seconds
Failures:
1) NewsReader.Tests.ForbiddenRun :
at NewsReader.Tests.ForbiddenRun()
This test failure does not indicate that the model program is incorrect. We are
not testing the model program here; we are executing the model program in order
to simulate the implemention. We are only using the test tool because it is more
convenient to write two tests than to write two applications. The failure here indicates
72 Model Programs
that the sequence of actions coded in this method is not allowed by the model
program. This means that the implementation is not able to execute this sequence.
Simulation is the most limited and labor-intensive model-based analysis technique
because it only considers one run at a time. To perform more thorough
analyses ??“ to detect the design errors discussed in Chapter 3, for example ??“ we need
to consider many different runs.


Pages:
93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6