From d974d4db89af71dd844d76849678f287eedc75ce Mon Sep 17 00:00:00 2001 From: mahesh Date: Tue, 21 Mar 2017 19:57:52 +0530 Subject: added documentation for simple question types --- yaksh/documentation/images/float_testcase.jpg | Bin 0 -> 81100 bytes yaksh/documentation/images/integer_testcase.jpg | Bin 0 -> 82479 bytes yaksh/documentation/images/string_testcase.jpg | Bin 0 -> 84962 bytes .../moderator_docs/creating_question.rst | 37 +++++++++++++++++++++ 4 files changed, 37 insertions(+) create mode 100644 yaksh/documentation/images/float_testcase.jpg create mode 100644 yaksh/documentation/images/integer_testcase.jpg create mode 100644 yaksh/documentation/images/string_testcase.jpg (limited to 'yaksh/documentation') diff --git a/yaksh/documentation/images/float_testcase.jpg b/yaksh/documentation/images/float_testcase.jpg new file mode 100644 index 0000000..2b6827c Binary files /dev/null and b/yaksh/documentation/images/float_testcase.jpg differ diff --git a/yaksh/documentation/images/integer_testcase.jpg b/yaksh/documentation/images/integer_testcase.jpg new file mode 100644 index 0000000..ca70a41 Binary files /dev/null and b/yaksh/documentation/images/integer_testcase.jpg differ diff --git a/yaksh/documentation/images/string_testcase.jpg b/yaksh/documentation/images/string_testcase.jpg new file mode 100644 index 0000000..7286eff Binary files /dev/null and b/yaksh/documentation/images/string_testcase.jpg differ diff --git a/yaksh/documentation/moderator_docs/creating_question.rst b/yaksh/documentation/moderator_docs/creating_question.rst index 94bb95c..69bb635 100644 --- a/yaksh/documentation/moderator_docs/creating_question.rst +++ b/yaksh/documentation/moderator_docs/creating_question.rst @@ -251,6 +251,43 @@ How to write Test cases .. image:: ../images/hook_testcase.jpg :width: 80% + * **Create Integer Based Test Case** + + Select **Answer in Integer** from Type field. + + Select Integer from Add Test Case field. + + In the Correct field, add the correct integer value for the question. + + .. image:: ../images/integer_testcase.jpg + :width: 80% + + * **Create String Based Test Case** + + Select **Answer in String** from Type field. + + Select **String** from Add Test Case field. + + In the **Correct** field, add the exact string answer for the question. + + In **String Check** field, select if the checking of the string answer + should be case sensitive or not. + + .. image:: ../images/string_testcase.jpg + :width: 80% + + * **Create Float Based Test Case** + + Select **Answer in Float** from Type field. + + Select **Float** from Add Test Case field. + + In the **Correct** field, add the correct float value for the question. + + In the **Error Margin** field, add the margin of error that will be allowed. + + .. image:: ../images/float_testcase.jpg + :width: 80% Features in Question -- cgit