#if($test) #if(!$test.isComplete() || $test.testmode == "survey") #set($node = $test.getCurrentNode()) #set($question = $test.getCurrentQuestion()) #set($questionno = $test.getNodes().indexOf($node) + 1) #set($qtype = $mediaarchive.getData("questiontype", $question.questiontype)) #set($questiontype = $node.question.questiontype) #set($responseinfo = $testbench.getSearcher("responsetracker").query().match("user", $user.id).match("questionid", $question.id).match("planid", $testplan.id).searchOne()) $context.putPageValue("node", $node) $context.putPageValue("question", $question) $context.putPageValue("responseinfo", $responseinfo)
Question $questionno of $test.getNodes().size()
$!qtype #set($current = $test.getCurrentCategory()) $!current
#if($test.getTestPlan().get("testmedia")) #set($image = $mediaarchive.getAsset($test.getTestPlan().get("testmedia"))) #set($imagesrc = $mediaarchive.asLinkToPreview($image, "image1024x768.jpg"))
Test Media
#end
$pages.include("$apphome/test/questiontypes/${questiontype}.html", $context)
#else

$pages.include("$apphome/test/results/results.html")

#end #else

No test is loaded.

#end #set($channel = $testbench.getBenchServer().getPrivateQuestionChannel($catalogid, $user.getId(), $question.getId()))