Feature #1648

Allow to concatenate different tests in the same xml

Added by Giulio Moro over 8 years ago. Updated over 8 years ago.

Status:NewStart date:2016-03-06
Priority:UrgentDue date:
Assignee:-% Done:

0%

Category:-
Target version:-

Description

For instance, you may want to run a bunch of AB and then do a likert test as the last one.

Also, you may want to randomize some of the sections.

Pratical example:
say I have 2 AB sections: AB1 AB2 and one LIKERT
I want the AB sections to come first and the LIKERT to always come last, but I want the order of the AB sections to be randomized.
I expect the xml to look something like this:

<waet>
  <testgroup randomise="true">
    <test name="AB1">
       <setup interface="AB" ...>...</setup>
       <page .... >
    </test>
    <test name="AB2">
       <setup interface="AB" ...>...</setup>
       <page .... >
    </test>
</testgroup>
<testgroup>
    <test name="likert">
       <setup interface="likert" ...>...</setup>
       <page .... >
    </test>
<testgroup>
</waet>

Saving should be done in the background, maybe at the end of each separate <test> , which would also address #1231

History

#1 Updated by Giulio Moro over 8 years ago

So I hacked together a workaround to this and pushed to a new branch (which is also a bit behind dev https://code.soundsoftware.ac.uk/projects/webaudioevaluationtool/repository/revisions/328f247984621122aa39dfd5c549ad70dd17a0b4 )

Workaround consist of a php page test_base.php which wraps the multiple tests together and passes some additional parameters to index.html including a prefix to be added to the saved xml file.
As a bonus: cool graphics

Live demo:
http://php-giulio.apps.devcloud.eecs.qmul.ac.uk/waet/test_base.php

First time you visit the page you are assigned an id. There is some shuffling enabled (I want the AB sections to be shuffled, but not the rest). This shuffling is bound to the user id.
Once the user ends a test they are teleported back to this page with an updated "next=" GET variable. At the moment this is the only variable that keeps track of tests that have been already performed. I should also check if a file has been created that corresponds to it.
save.xml files are saved every time the user finishes one of the subtests.
User can suspend the test and come back just by using the URL.

Tests and shuffling is set in the test_list.php page. No xml atm, sorry.

It also shows why I want tests with zero pages ( #1658 ) : so I can use pre- and post- surveys. The reason why I do not use external survey sites is because using the waet one I can return back to this page automatically.

It's hacked together, but works enough for me.
Let me know your thoughts.

Also available in: Atom PDF