view example_eval/AB_example.xml @ 1295:ba8c8c7f1de5

Bug #1652 and Feature #1650 fixes. You can specify the track labels through page attribute 'label' ('default', 'none', 'number', 'letter', 'capital'). Updated examples to match schema
author Nicholas Jillings <nickjillings@users.noreply.github.com>
date Thu, 10 Mar 2016 16:16:16 +0000
parents 175cf75946f7
children ba6b9e1aaef5
line wrap: on
line source
<?xml version="1.0" encoding="utf-8"?>
<waet xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="test-schema.xsd">
	<setup interface="AB" projectReturn="save.php" randomiseOrder='true' testPages="2" loudness="-23" sampleRate="44100">
		<survey location="before">
			<surveyentry type="question" id="sessionId" mandatory="true">
				<statement>Please enter your name.</statement>
			</surveyentry>
			<surveyentry type="checkbox" id="checkboxtest" mandatory="true">
				<statement>Please select with which activities you have any experience (example checkbox question)</statement>
				<option name="musician">Playing a musical instrument</option>
				<option name="soundengineer">Recording or mixing audio</option>
				<option name="developer">Developing audio software</option>
				<option name="hwdesigner">Designing or building audio hardware</option>
				<option name="researcher">Research in the field of audio</option>
			</surveyentry>
			<surveyentry type="statement" id="test-intro">
				<statement>This is an example of an 'AB'-style test, with two pages, using the test stimuli in 'example_eval/'.</statement>
			</surveyentry>
		</survey>
		<survey location="after">
			<surveyentry type="question" id="location" mandatory="true" boxsize="large">
				<statement>Please enter your location. (example mandatory text question)</statement>
			</surveyentry>
			<surveyentry type="number" id="age" min="0">
				<statement>Please enter your age (example non-mandatory number question)</statement>
			</surveyentry>
			<surveyentry type="radio" id="rating">
				<statement>Please rate this interface (example radio button question)</statement>
				<option name="bad">Bad</option>
				<option name="poor">Poor</option>
				<option name="good">Good</option>
				<option name="great">Great</option>
			</surveyentry>
			<surveyentry type="statement" id="test-thank-you">
				<statement>Thank you for taking this listening test. Please click 'submit' and your results will appear in the 'saves/' folder.</statement>
			</surveyentry>
		</survey>
		<metric>
			<metricenable>testTimer</metricenable>
			<metricenable>elementTimer</metricenable>
			<metricenable>elementInitialPosition</metricenable>
			<metricenable>elementTracker</metricenable>
			<metricenable>elementFlagListenedTo</metricenable>
			<metricenable>elementFlagMoved</metricenable>
			<metricenable>elementListenTracker</metricenable>
		</metric>
		<interface>
			<interfaceoption type="check" name="fragmentMoved"/>
			<interfaceoption type="check" name="scalerange" min="25" max="75"/>
			<interfaceoption type="show" name='playhead'/>
			<interfaceoption type="show" name="page-count"/>
            <interfaceoption type="show" name='volume'/>
		</interface>
	</setup>
	<page id='test-0' hostURL="example_eval/" randomiseOrder='true' repeatCount='0' loop='true' showElementComments='true' loudness="-12">
		<commentboxprefix>Comment on fragment</commentboxprefix>
		<interface>
			<title>Depth</title>
		</interface>
		<audioelement url="0.wav" id="track-0"/>
		<audioelement url="1.wav" id="track-1"/>
		<survey location="before">
			<surveyentry type="statement" id="test-0-intro">
				<statement>A two way comparison using randomised element order, automatic loudness and synchronised looping.</statement>
			</surveyentry>
		</survey>
		<survey location="after">
			<surveyentry type="question" id="genre-0" mandatory="true">
				<statement>Please enter the genre.</statement>
			</surveyentry>
		</survey>
	</page>
	<page id='test-1' hostURL="example_eval/" randomiseOrder='true' repeatCount='0' loop='false' showElementComments='true' loudness="-12">
		<commentboxprefix>Comment on fragment</commentboxprefix>
		<interface>
			<title>Depth</title>
		</interface>
		<audioelement url="0.wav" id="track-2"/>
		<audioelement url="1.wav" id="track-3"/>
		<audioelement url="2.wav" id="track-4"/>
		<audioelement url="3.wav" id="track-5"/>
		<audioelement url="4.wav" id="track-6"/>
		<audioelement url="5.wav" id="track-7"/>
		<audioelement url="6.wav" id="track-8"/>
		<survey location="before">
			<surveyentry type="statement" id="test-1-intro">
				<statement>A 7 way comparison using randomised element order and synchronised looping.</statement>
			</surveyentry>
		</survey>
		<survey location="after">
			<surveyentry type="question" id="genre-1" mandatory="true">
				<statement>Please enter the genre.</statement>
			</surveyentry>
		</survey>
	</page>
</waet>