ATutor

Learning Management Tools







Pages:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15


Problem with randomized test


  • 2004-06-14 06:28:55

    Problem with randomized test

    Hello,

    I've installed ATutor v1.4 on a Linux server, with Apache 1.3 and MySQL (I'm not sure wich version, I'm not the server administrator).

    I have no problems creating tests with a fixed number of questions, but when I make a randomized questions test, at the time of taking the test, some questions are from a different randomized test, and some times appear questions about ATutor like "ATutor is a Open Source project; True/False". This behaviour only appears on randomice questions. I've been looking for this problem in the support forum, but I have not find any references on this problem.

    Thank you for ypur time and help.

    Best regards

    Jess

  • 2004-06-14 10:54:56

    Randomized test patch

    There is a bug with randomized tests.

    On line 143 (+/-) of /tools/take_test.php

    replace the following:

    $sql = "SELECT question_id FROM ".TABLE_PREFIX."tests_questions WHERE content_id=$content_id";

    with:

    $sql = "SELECT question_id FROM ".TABLE_PREFIX."tests_questions WHERE test_id=$tid";

  • 2004-06-17 04:59:34

    Thank you

    Thank you for your help.

    [reply][b]In reply to:[/b]
    There is a bug with randomized tests.

    On line 143 (+/-) of /tools/take_test.php

    replace the following:

    $sql = "SELECT question_id FROM ".TABLE_PREFIX."tests_questions WHERE content_id=$co...
    [op]forums/view.php?fid=7;pid=1833;page=1#1837[/op][/reply]