File: rdmtests.html

package info (click to toggle)
ola 0.9.1-1.1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 21,340 kB
  • ctags: 23,021
  • sloc: cpp: 129,922; python: 12,265; sh: 11,778; makefile: 2,288; ansic: 1,775; java: 518; xml: 214
file content (516 lines) | stat: -rw-r--r-- 15,612 bytes parent folder | download
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
90
91
92
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
<!DOCTYPE html>
<html>
  <head>
    <link type='text/css' rel='stylesheet' href='/static/jquery-ui-1.8.21.custom.css' />
    <link rel='stylesheet' href='/static/ui.multiselect.css' type='text/css'>
    <script src='/static/jquery.min.js'></script>
    <script src='/static/jquery-ui.custom.min.js'></script>
    <script src='/static/ui.multiselect.js'></script>
    <script src='/static/rdm_tests.js'></script>
    <title>RDM Tests &amp; Publisher</title>
    <style type='text/css'>
      body {
        margin: 0px;
        padding: 0px;
        font-family: sans-serif;
        font-size: 13px;
      }

      table {
        font-family: sans-serif;
        font-size: 13px;
        padding: 0px;
        margin: 0px;
        border: 0px;
        border-spacing: 0px;
      }

      input { border: #e4e9fe 1px solid; }

      fieldset {
        border: #67a7e3 1px solid;
        margin: 0px;
        margin-bottom: 5px;
      }

      legend {
        font-weight: bold;
      }

      ul {
        padding-left: 20px;
        margin: 0px;
      }

      #header {
        margin: 0px;
        padding: 0px;
        padding-bottom: 10px;
        left: 0px;
        text-align: left;
      }

      #header img {
        vertical-align: bottom;
      }

      #main-title {
        font-weight: bold;
        font-size: 18px;
      }

      #top-right {
        font-size: 13px;
        position: absolute;
        right: 0px;
        margin-top: 5px;
        margin-right: 10px;
        text-align: right;
      }

      #footer {
        padding-top: 5px;
        text-align: center;
        clear: both;
        font-size: 11px;
      }

      a {
        text-decoration: none;
        color: #0545ff;
      }

      a:visited {
        text-decoration: none;
        color: #0545ff;
      }

      a:hover {
        text-decoration: underline;
      }

      .external {
        background: url(/static/images/external.png) center right no-repeat;
        padding-right: 13px;
      }

      .stats_by_catg {
        float: right;
        text-align: left;
        font-weight: bold;
        font-size: 13px;
      }

      .rdm-tests-selection-multiselect {
          width: 680px;
          height: 200px;
      }

      .test-state-passed {
        color: #0CAB1E;
      }

      .test-state-failed {
        color: #FA021F;
      }

      .test-state-broken {
        color: #707070;
      }

      .test-state-not_run {
        color: #2E2B2B;
      }

      #rdm-tests-dmx_options {
        display: none;
      }

      #rdm-tests-notification {
        text-align: center;
      }

      #rdm-tests-results {
        display: none;
        width: 100%;
        z-index: 1000;
        background-color: #FFF;
      }

      #rdm-tests-results-stats {
        width: 400px;
        text-align: center;
        margin: 0px auto;
      }

      #rdm-tests-results-stats-table {
        border: 1.0px dashed #67a7e3;
        margin: 0px auto;
        margin-top: 10px;
      }

      #rdm-tests-results-stats-table td {
        padding: 5px;
        text-align: center;
        font-weight: bold;
      }

      .rdm-tests-select {
        background-color: #fff;
        border: 1.0px solid #67a7e3;
      }

      .results_container {
        margin: 0px auto;
        width: 80%;
      }

      .results_container_border {
        border: 1.0px solid #67a7e3;
        margin: 0px auto;
        width: 80%;
      }

      .ola-expander legend {
        cursor: pointer;
      }

      .ola-expander div {
        display: none;
      }

      .ola-expander-collapsed {
        display: inline-block;
        background-position: -48px -208px;
        width: 16px;
        height: 16px;
        background-image: url(images/ui-icons_70b2e1_256x240.png);
      }

      .ola-expander-expanded {
        display: inline-block;
        width: 16px;
        height: 16px;
        background-image: url(images/ui-icons_70b2e1_256x240.png);
        background-position: -64px -208px;
      }

      #rdm-tests-results-list {
        margin-left: 20px;
        margin-bottom: 20px;
        border: 0px;
        border-top: 1.0px solid #67a7e3;
        border-bottom: 1.0px solid #67a7e3;
        background-color: #fff;
        width: 100%;
        margin: 0px auto;
        height: 200px;
      }

      #rdm-tests-results-list option {
        margin: 2px;
        font-family: Trebuchet MS, Helvetica, Arial, sans-serif;
        font-size: 14px;
        font-weight: bold;
        background-color: #f8f8f8;
      }

      #rdm-tests-results-info {
        padding-top: 10px;
        height: 250px;
      }

      #rdm-tests-results-info-title {
        text-align: center;
        font-size: 14px;
        font-weight: bold;
      }

      #rdm-tests-results-info-doc {
        text-align: center;
        font-style: italic;
        font-size: 14px;
        padding-bottom: 10px;
      }

      #rdm-tests-results-info-state {
        font-weight: bold;
      }

      #rdm-tests-results-info-catg {
        font-weight: bold;
      }

      #rdm-tests-results-info-debug {
        white-space: pre;
        font-family: monospace;
        height: 150px;
        width: 100%;
        overflow: auto;
      }

      .button-container {
        padding-top: 10px;
        text-align: center;
      }

      #rdm-discovery-button {
        vertical-align: middle;
        padding: 5px;
      }

      #publisher-output {
        border: 1px solid #999999;
        height:400px;
        overflow: auto;
      }

      .ui-progressbar-value {
        background: #67A7E3;
      }

      .ui-tabs {
        background: #ffffff;
        border: 0px;
        padding: 0px;
      }
      .ui-tabs-nav {
        border: 0px;
        border-bottom: 1px solid #67a7e3;
        background: #ffffff;
      }
      .ui-tabs-panel {
        font-family: sans-serif;
        font-size: 13px;
        padding: 10px;
        border-bottom: 1px solid #67a7e3;
      }

      .no-close .ui-dialog-titlebar-close {display: none }
    </style>
  </head>
  <body>
    <div id='header'>
      <div id='title'>
        <img src='/static/images/logo.png' width='111' height='48' alt='Logo'>
        <span id='main-title'>RDM Responder Tests &amp; Publisher</span>
        <span id='top-right'>
          <a href='http://www.opendmx.net/index.php/Using_the_RDM_Test_UI' class='external' target='_blank'>Help</a>
        </span>
      </div>
    </div>
    <div id='tabs'>
     <ul>
      <li><a href='#tabs-1'>RDM Responder Tests</a></li>
      <li><a href='#tabs-2'>RDM Responder Publisher</a></li>
     </ul>
     <div id='tabs-1'>
      <div id='tests_control_frame'>
       <fieldset>
        <legend>Select the RDM device to test</legend>
         Universe: <select id='universe_options'></select>, RDM Responder:
         <select id='devices_list'></select>
          <a href='#'><img id='rdm-discovery-button' alt='Run Discovery' src='/static/images/discovery.png' title='Run Full Discovery' /></a>
       </fieldset>
       <fieldset>
         <legend>RDM Options</legend>
          <div>Delay after sending broadcast SETs
          <input id='write_delay' maxlength='16' size='4' value='0'> milliseconds</div>
          <div>Delay in-between tests
          <input id='inter_test_delay' maxlength='16' size='4' value='0'> milliseconds</div>
       </fieldset>
       <fieldset>
        <legend>DMX512 Options</legend>
         <div>
           <input type='checkbox' id='rdm-tests-send_dmx_in_bg'>
             <label for='rdm-tests-send_dmx_in_bg'>Send DMX in background</label>
         </div>
         <table id='rdm-tests-dmx_options'>
          <tr>
           <td>DMX Frame rate (frames / second)
            <input id='dmx_frame_rate' maxlength='16' size='4' value='20'></td>
          </tr>
          <tr>
           <td>Number of Slots to Send
            <input id='slot_count' maxlength='3' size='4' value='128'></td>
          </tr>
         </table>
       </fieldset>
       <fieldset>
        <legend>Select Tests to Perform</legend>
        <form id='rdm-tests-selection'>
         <table>
          <tr>
           <td>
             <input type='radio' name='rdm-tests-selection' id='rdm-tests-selection-subset' class='rdm-tests-selection' checked='checked' />
             <label for='rdm-tests-selection-subset'>Select Tests</label>
           </td>
           <td>
             <select id='rdm-tests-selection-tests_list' class='rdm-tests-selection-multiselect' multiple='multiple' name='subset_test_defs'>
             </select>
           </td>
          </tr>
          <tr>
           <td>
             <input type='radio' name='rdm-tests-selection' id='rdm-tests-selection-previously_failed' class='rdm-tests-selection'/>
             <label for='rdm-tests-selection-previously_failed'>Failed Tests</label>
           </td>
           <td>
             <select id='rdm-tests-selection-failed_tests' class='rdm-tests-selection-multiselect' multiple='multiple' name='failed_test_defs'>
             </select>
           </td>
          </tr>
         </table>
        </form>
       </fieldset>
       <div class='button-container'>
         Running tests will modify the settings for responders connected to this universe. Think twice about doing this on a production system.
         <br/>
         <button id='rdm-tests-selection-run_tests'>Run Tests</button>
       </div>
      </div>
      <div id='rdm-tests-results'>
       <div id='rdm-tests-results-stats'>
        Test results for: <span style='font-weight: bold' id='rdm-tests-results-uid'></span>,
        generated in <span id='rdm-tests-results-duration'></span>.

        <table id='rdm-tests-results-stats-table'>
         <tr>
          <td class='test-state-broken'>Broken</td>
          <td class='test-state-failed'>Failed</td>
          <td class='test-state-not_run'>Not Run</td>
          <td class='test-state-passed'>Passed</td>
          <td style='color: #000'>Total</td>
         </tr>
         <tr id='rdm-tests-results-stats-figures'></tr>
        </table>
       </div>
       <div id='rdm-tests-results-summary-by_catg' class='results_container'>
        <fieldset class='ola-expander'>
          <legend>
           <span class='ola-expander-collapsed'></span>Results By Category
          </legend>
          <div>
           <ul id='rdm-tests-results-summary-by_catg-content'></ul>
          </div>
        </fieldset>
       </div>
       <div id='rdm-tests-results-warnings' class='results_container'>
        <fieldset class='ola-expander'>
         <legend>
           <span class='ola-expander-collapsed'></span>Warnings (<span id='rdm-tests-results-warning-count'></span>)
         </legend>
         <div>
          <ul id='rdm-tests-results-warnings-content'></ul>
         </div>
        </fieldset>
       </div>
       <div id='rdm-tests-results-advisories' class='results_container'>
        <fieldset class='ola-expander'>
         <legend>
          <span class='ola-expander-collapsed'></span>Advisories (<span id='rdm-tests-results-advisory-count'></span>)
         </legend>
         <div>
          <ul id='rdm-tests-results-advisories-content'></ul>
         </div>
        </fieldset>
       </div>
       <div class='results_container_border'>
         <div style='padding: 5px'>
           Test Category
           <select id='rdm-tests-results-summary-filter-by_catg' class='rdm-tests-select'>
           </select>,
           Result:
           <select id='rdm-tests-results-summary-filter-by_state' class='rdm-tests-select'>
             <option>All</option>
             <option>Passed</option>
             <option>Failed</option>
             <option>Broken</option>
             <option>Not Run</option>
           </select>
         </div>
         <select id='rdm-tests-results-list' size='10'></select>
         <div id='rdm-tests-results-info'>
           <div id='rdm-tests-results-info-title'></div>
           <div id='rdm-tests-results-info-doc'></div>
           <div style='padding-left: 10px'>
             Category: <span id='rdm-tests-results-info-catg'></span><br/>
             Result: <span id='rdm-tests-results-info-state'></span><br/>
             Debug Output:
           </div>
           <div id='rdm-tests-results-info-debug'></div>
         </div>
       </div>
       <div class='results_container button-container'>
        <button id='rdm-tests-results-button-dismiss'>Dismiss</button>
        <button id='rdm-tests-results-button-run_again'>Run Again</button>
        <button id='rdm-tests-results-button-save-options'>Download Results</button>
       </div>
      </div>
     </div>
     <div id='tabs-2'>
       <p>
        The RDM publisher can be used to publish a responder on the
        <a href='http://rdm.openlighting.org/' class='external' target='_blank'>rdm.openlighting.org</a>
        site. After collecting the responder information, you will
        have an opportunity to review the data before publishing.
       </p>

       <fieldset>
        <legend>Collector Options</legend>
         Universe: <select id='publisher-universe-list'></select>
         <p>
          <input type='checkbox' id='publisher-skip-queued-messages'>
          <label for='publisher-skip-queued-messages'>Skip
          Queued Messages. Select this if the responder doesn't support queued
          messages correctly.</label>
          </p>
          <button id='publisher-collect-button'>Collect Responder Information</button>
       </fieldset>

       <fieldset>
        <legend>Output</legend>
        <pre id='publisher-output'></pre>

        <div class='button-container'>
         <button id='publisher-clear-button'>Clear Output</button>
         <button id='publisher-upload-button'>Publish</button>
         <button id='publisher-download-button'>Save Data</button>
         <p>Saved data can be published later by visiting
          <a href="http://rdm.openlighting.org/incoming/model_data">http://rdm.openlighting.org/incoming/model_data</a>
         </p>
        </div>
       </fieldset>
     </div>
    </div>
    <div id='footer'>
      OLA &copy; 2012 Ravindra Nath Kakarla, Simon Newton &amp; the
      <a href='http://www.openlighting.org' class='external' target='_blank'>Open Lighting Project</a><br>
    </div>
    <div id='rdm-tests-notification'></div>
    <div id='rdm-error-notification'>
      An error has occured: '<span id='error-message'></span>'
      <pre id='traceback'></pre>
      <p>Please report this bug so it can be fixed. Clicking 'Report Bug' will
      open a new window and prompt you to sign in with your Google account.
      Only the information you see here will be sent.</p>
    </div>
    <div id='rdm-tests-save-options'>
      Category: <select id='rdm-tests-save-catg' class='rdm-tests-select'></select><br/>
      Result: <select id='rdm-tests-save-state' class='rdm-tests-select'>
        <option>All</option>
        <option>Passed</option>
        <option>Failed</option>
        <option>Broken</option>
        <option>Not Run</option>
      </select><br/>
      <input type='checkbox' id='rdm-tests-include-debug' checked='checked'>Include Debug Output
      <br/>
      <input type='checkbox' id='rdm-tests-include-description' checked='checked'>Include Test Descriptions
    </div>
    <iframe id='rdm-tests-download' style='display: none'></iframe>
    <form id='publisher-upload-form' method='post' target='_blank' action='http://rdm.openlighting.org/incoming/model_data' display='none'>
      <input type='hidden' name='model_data' id='publisher_upload_data'>
    </form>
  </body>
</html>