comparison docs/ProjectSpecificationDocument.tex @ 1663:e51d1aa4e7e5

Updated documentation to reflect minor syntax changes
author Nicholas Jillings <nickjillings@users.noreply.github.com>
date Mon, 13 Apr 2015 11:46:21 +0100
parents 274014f482f3
children ab56aa2fe064
comparison
equal deleted inserted replaced
1662:4310efd6e631 1663:e51d1aa4e7e5
20 The root will also contain the following tags: setup and tracks. 20 The root will also contain the following tags: setup and tracks.
21 21
22 \section{Setup tag} 22 \section{Setup tag}
23 23
24 The setup tag specifies certain global test settings including: the interface type to use, the project return location and any other setup instructions. 24 The setup tag specifies certain global test settings including: the interface type to use, the project return location and any other setup instructions.
25 25 Any general pre/post test questions must be specified in the relevant children tag. Any enabled metrics must also be specified in the metric child node.
26 An example of this tag could be:
27
28 \texttt{<setup interface="APE" projectReturn="http://project.return.url/goes/here" />}
29
30 The setup should not have any element or any children.
31 26
32 \subsection{Attributes} 27 \subsection{Attributes}
33 \begin{itemize} 28 \begin{itemize}
34 \item \texttt{interface} - Mandatory, String. Defaults to APE, otherwise use to load any of the available interfaces. Currently only valid string is APE. 29 \item \texttt{interface} - Mandatory, String. Defaults to APE, otherwise use to load any of the available interfaces. Currently only valid string is APE.
35 \item \texttt{projectReturn} - Mandatory, String. Specify the URL to return the test results. If null client will generate XML locally and prompt user to return the file. 30 \item \texttt{projectReturn} - Mandatory, String. Specify the URL to return the test results. If null client will generate XML locally and prompt user to return the file.
60 55
61 This must reside as children in the audioHolder tag. There must be one audioElement tag per sound sample to load into the test. 56 This must reside as children in the audioHolder tag. There must be one audioElement tag per sound sample to load into the test.
62 57
63 \subsection{Attributes} 58 \subsection{Attributes}
64 \begin{itemize} 59 \begin{itemize}
60 \item \texttt{id} - Mandatory, String. Must give a string or number to identify each audio element. This id is used in the output to identify each track once randomised.
65 \item \texttt{url} - Mandatory, String. Contain the full URL to the track. If the Tracks tag hostURL is set, concatenate this tag with the hostURL attribute to obtain the full URL. 61 \item \texttt{url} - Mandatory, String. Contain the full URL to the track. If the Tracks tag hostURL is set, concatenate this tag with the hostURL attribute to obtain the full URL.
66 \item \texttt{ID} - Optional, Number. Give the track a specific ID for the return. This will help if using multiple projects to spread a test across multiple sessions and/or locations, where each test will not use all the samples. If one audioElement is given the ID 3, the next audioElement (assuming it does not have an ID set itself) will have the ID of 4. This continues until the next audioElement with the ID attribute set is reached.
67 \end{itemize} 62 \end{itemize}
68 63
69 \section{interface tag} 64 \section{interface tag}
70 65
71 This is contained within the audioHolder tag and outlines test instance specific requirements. These include the following children tags: 66 This is contained within the audioHolder tag and outlines test instance specific requirements. These include the following children tags:
72 \begin{itemize} 67 \begin{itemize}
73 \item 'title' - Contains the test title to be shown at the top of the page 68 \item 'title' - Contains the test title to be shown at the top of the page. Can only be one title node per interface.
74 \item 'scale' - Takes the attribute position to be a value between 0 and 100 indicating where on the scale to place the text contained inside. 69 \item 'scale' - Takes the attribute position to be a value between 0 and 100 indicating where on the scale to place the text contained inside. Can be multiple scale tags per interface.
75 \end{itemize} 70 \end{itemize}
76 71
77 \section {CommentQuestion tag} 72 \section {CommentQuestion tag}
78 73
79 This is a 1st level tag (same level as AudioHolder and setup). This allows another question and comment box to be presented on the page. The results of these are passed back in the results XML with both the comment and the question. 74 This is a 1st level tag (same level as AudioHolder and setup). This allows another question and comment box to be presented on the page. The results of these are passed back in the results XML with both the comment and the question. The id attribute is set to keep track at the results XML.
80
81 \subsection{Attributes}
82 None.
83
84 \subsection{Elements}
85 The question to be presented.
86 75
87 \section {PreTest tag and PostTest tag} 76 \section {PreTest tag and PostTest tag}
88 77
89 These are 1st level tags. The PreTest tag allows for the specifying of pre test instructions and questions. These appear as a pop-up style window with next buttons and other automatic GUI. The postTest tag allows for specifying post test instructions, questions and resources. These appear as a pop-up style window after the submit button is pressed. 78 These are 1st level tags. The PreTest tag allows for the specifying of pre test instructions and questions. These appear as a pop-up style window with next buttons and other automatic GUI. The postTest tag allows for specifying post test instructions, questions and resources. These appear as a pop-up style window after the submit button is pressed.
90 79