diff options
author | maheshgudi | 2017-01-11 14:37:25 +0530 |
---|---|---|
committer | maheshgudi | 2017-01-11 14:37:25 +0530 |
commit | db4b15ada4b078910442984776dbfc20e5955a8c (patch) | |
tree | 9bb1a48e187c3c602fc7b3a5b4cda6abaa97f6cb /yaksh/documentation | |
parent | 1a8838084cea43525575521e88017f3106d44379 (diff) | |
download | online_test-db4b15ada4b078910442984776dbfc20e5955a8c.tar.gz online_test-db4b15ada4b078910442984776dbfc20e5955a8c.tar.bz2 online_test-db4b15ada4b078910442984776dbfc20e5955a8c.zip |
added docs to hook_evaluator
Diffstat (limited to 'yaksh/documentation')
-rw-r--r-- | yaksh/documentation/images/hook_testcase.jpg | bin | 0 -> 63419 bytes | |||
-rw-r--r-- | yaksh/documentation/moderator_docs/creating_question.rst | 18 |
2 files changed, 18 insertions, 0 deletions
diff --git a/yaksh/documentation/images/hook_testcase.jpg b/yaksh/documentation/images/hook_testcase.jpg Binary files differnew file mode 100644 index 0000000..3018050 --- /dev/null +++ b/yaksh/documentation/images/hook_testcase.jpg diff --git a/yaksh/documentation/moderator_docs/creating_question.rst b/yaksh/documentation/moderator_docs/creating_question.rst index ec273f5..f99bf7f 100644 --- a/yaksh/documentation/moderator_docs/creating_question.rst +++ b/yaksh/documentation/moderator_docs/creating_question.rst @@ -234,6 +234,24 @@ How to write Test cases For MCC based question, check the correct checkbox for multiple correct options. + * **Create Hook based Test Case** + + Select Hook from Add Test Case field. + + In Hook based test case type, moderator is provided with a evaluator function + called **check_answer** which is provided with a parameter called **user_answer**. + + **user_answer** is the code of the student in string format. + + A moderator can check the string for specific words in the user answer + and/or compile and execute the user answer (using standard python libraries) to + evaluate and hence return the mark fraction. + + + .. image:: ../images/hook_testcase.jpg + :width: 80% + + Features in Question -------------------- |