-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomplicated-standard-annost.html
89 lines (84 loc) · 2.74 KB
/
complicated-standard-annost.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<html>
<head>
<title>Complicated Standard, latest version</title>
<style>
body {
font-family: Arial, sans;
max-width: 980px;
margin: 20px auto;
counter-reset: h2;
background: #f0f0f0;
}
h2:before {
counter-increment: h2;
content: counter(h2) '. ';
counter-reset: h3;
}
h3:before {
counter-increment: h3;
content: counter(h2) '.' counter(h3) '. ';
}
table {
border-collapse: collapse;
}
td, th {
border: 1px solid black;
padding: 1ex;
}
</style>
<script src='annost.js'></script>
</head>
<body>
<h1>Complicated Standard, latest version</h1>
<h2>Intro</h2>
<p>There are clients, and there are servers. They shall communicate with each other
and understand each other really well.</p>
<annost-note>
Nothing to test in this section.
</annost-note>
<h2>Behaviors</h2>
<h3>Ahem</h3>
<p>Every night when midnight strikes in UTC, the client shall send an "Ahem"
request to the server. The server, open receipt, shall respond, within 5sec, with
"One of these nights again".
</p>
<annost-test testid='2.1/1' name='Server receives Ahem request at approx UTC midnight' role='Server' level='MUST'>
<p>Set up 8 clients for the server-under-test. Check that the server receives an the Ahem
request for each client within 10sec before or after UTC midnight.</p>
</annost-test>
<annost-test testid='2.1/2' name='Client receives timely Ahem response' role='Client' level='MUST'>
<p>Start a timer every time the client issues the Ahem request. Check that within 5sec,
is has received the response "One of these nights again".</p>
</annost-test>
<h3>Nudge Nudge</h3>
<p>The client may send the "Nudge Nudge" message to the server. The server then responds
with "I beg your pardon".</p>
<annost-test testid='2.2/1' name='Server processes Nudge Nudge' role='Client' level='MUST'>
<p>Set up a client and server. Make client send Nudge Nudge. Check that server responds
to each Nudge Nudge with "I beg your pardon".</p>
</annost-test>
<p>If the server receives an unknown message from the client, it must respond with an
error code.</p>
<annost-test testid='2.2/2' name='Server rejects unknown messages' role='Server' level='MUST'>
<p>Set up a client and server. Make client send the following messages, expecting the
corresponding responses.</p>
<table>
<tr>
<th>Client sends</th>
<th>Expected response</th>
</tr>
<tr>
<td>"4711"</td>
<td>Error</td>
</tr>
<tr>
<td>"Nudge Nudge"</td>
<td>"I beg your pardon"</td>
</tr>
<tr>
<td>"Say no more"</td>
<td>Error</td>
</tr>
</annost-test>
</body>
</html>