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 50 | Next

Jonathan Jacky, Margus Veanes, Colin Campbell, Wolfram Schulte

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

We call the methods in a single
thread, taking care to interleave the method calls in an order that conforms to the
protocol (Figure 2.2). This test exercises most of the methods in the Client and
Server classes. However, it omits the Temperature class and assigns a temperature
value in the test code instead. The assertions check that the command sent by the
client is received by the server, and the temperature sent by the server is received by
the client. The test also writes a progress message to the console, which is displayed
by the test runner.
Here is a test run.
nunit-console /include=ClientServer Tests.dll
...
Included categories: ClientServer
.Server sent 212.0, client received 212.0
Tests run: 1, Failures: 0, Not run: 0, Time: 0.230 seconds
The test succeeds and the expected progress message appears. Can we conclude
from this that the applications will work?
2.9 Failures in the field
One day we connect up our measurement system (as in Figure 2.1), start the server
and the client, and leave them running. All goes well until the temperature reaches
100?—¦. At the client, we see:
2006-11-07 16:07:01Z Temperature server at port 8023 reports 99.8 F
2006-11-07 16:07:11Z Temperature server at port 8023 reports 99.9 F
2006-11-07 16:07:21Z Temperature server at port 8023 reports 100.0 F
2006-11-07 16:07:31Z Temperature server at port 8023 reports 0.


Pages:
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6