#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))

$!qtype # $questionno

#if($test.getTestPlan().get("testmedia") ) #set($image = $mediaarchive.getAsset($test.getTestPlan().get("testmedia"))) #set($imagesrc = $mediaarchive.asLinkToPreview($image, "image1024x768.jpg")) #end #set($questiontype = $node.question.questiontype) $context.putPageValue("node", $node) $context.putPageValue("question", $question) #set($responseinfo = $testbench.getSearcher("responsetracker").query().match("user", $user.id).match("questionid", $question.id).match("planid", $testplan.id).searchOne()) $context.putPageValue("responseinfo", $responseinfo) $pages.include("$apphome/test/questiontypes/${questiontype}.html", $context)
#else

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

#end #else

No test is loaded.

#end