annotate README @ 19:952eed8b6880

doc
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 19 Jun 2015 11:46:31 +0200
parents
children 8f4b70c89467
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
19
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1 Orthanc - A Lightweight, RESTful DICOM Server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
2 =============================================
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
3
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
4
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
5 General Information
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
6 ===================
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
8 This repository contains the integration tests that are used to
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
9 validate Orthanc before each official release, in complement to the
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
10 unit tests that are part of the Orthanc repository. These integrations
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
11 tests should be run by the package maintainers of the various
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
12 platforms supported by Orthanc.
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
13
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
14 General information about Orthanc can be found on its official
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
15 Website: http://www.orthanc-server.com/
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
16
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
17
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
18 Running the tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
19 =================
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
20
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
21 The integration tests are written in Python and are started by the
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
22 "./Tests/Run.py" script. The tests will validate a "remote" instance
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
23 of Orthanc (whose AET is "ORTHANC") that is assumed to be running
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
24 before the tests are started. To test the DICOM protocol, a second,
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
25 "local" instance of Orthanc is automatically started by the
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
26 integration tests (its AET is "ORTHANCTEST"). This situation is
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
27 depicted on the following illustration:
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
28
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
29 +--------------------------+ +-----------------------+
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
30 | Local computer | | Remote computer |
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
31 +--------------------------+ HTTP +-----------------------+
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
32 | | 5000 : 8042 | |
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
33 | Run.py <---> ORTHANCTEST <=============> ORTHANC |
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
34 | | 5001 : 4242 | |
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
35 +--------------------------+ DICOM +-----------------------+
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
36
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
37
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
38 1. Configure the remote Orthanc
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
39 -------------------------------
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
40
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
41 To run the integration tests, you first have to create a configuration
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
42 file for the remote instance of Orthanc. This is done by running the
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
43 "./GenerateConfigurationForTests.py" script on the *local*
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
44 computer. This script will autodetect the proper network parameters.
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
45 For instance (a help is available):
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
46
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
47 # ./GenerateConfigurationForTests.py --force
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
48
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
49 This will create the "./IntegrationTestsConfiguration.json"
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
50 configuration file that must be copied to the remote computer. Then,
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
51 start Orthanc on the remote computer with this configuration file.
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
52
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
53 By default, the configuration file will use "ORTHANC" as the AET, 8042
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
54 as the HTTP port, and 4242 as the DICOM port. You can of course
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
55 adapt these parameters by editing the generated configuration file,
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
56 if you have special constraints or if the autodetection fails.
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
57
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
58
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
59
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
60 Licensing
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
61 =========
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
62
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
63 The integration tests are licensed under the GPLv3 license. The sample
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
64 DICOM images contained in the "Database" folder are the property of
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
65 their respective owners, as listed in the "Database/README.txt" file.
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
66
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
67 We also kindly ask scientific works and clinical studies that make
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
68 use of Orthanc to cite Orthanc in their associated publications.
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
69 Similarly, we ask open-source and closed-source products that make
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
70 use of Orthanc to warn us about this use. You can cite our work
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
71 using the following BibTeX entry:
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
72
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
73 @inproceedings{Jodogne:ISBI2013,
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
74 author = {Jodogne, S. and Bernard, C. and Devillers, M. and Lenaerts, E. and Coucke, P.},
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
75 title = {Orthanc -- {A} Lightweight, {REST}ful {DICOM} Server for Healthcare and Medical Research},
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
76 booktitle={Biomedical Imaging ({ISBI}), {IEEE} 10th International Symposium on},
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
77 year={2013},
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
78 pages={190-193},
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
79 ISSN={1945-7928},
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
80 month=apr,
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
81 url={http://ieeexplore.ieee.org/xpl/articleDetails.jsp?tp=&arnumber=6556444},
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
82 address={San Francisco, {CA}, {USA}}
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
83 }