diff options
author | Prabhu Ramachandran | 2017-03-17 17:54:14 +0530 |
---|---|---|
committer | GitHub | 2017-03-17 17:54:14 +0530 |
commit | 23ecd8fa33e7fa2e953aa9715ae45a2869a044a0 (patch) | |
tree | ef559dee40ee85d3aa15fbaf824273e9e98a2d55 /yaksh/documentation/moderator_docs | |
parent | f6a6a952de703be4040d30edb36b9e6cf1228daf (diff) | |
parent | 6c53c90ee5dd7184889fd3f99130b194e75fef4c (diff) | |
download | online_test-23ecd8fa33e7fa2e953aa9715ae45a2869a044a0.tar.gz online_test-23ecd8fa33e7fa2e953aa9715ae45a2869a044a0.tar.bz2 online_test-23ecd8fa33e7fa2e953aa9715ae45a2869a044a0.zip |
Merge pull request #244 from adityacp/display_err_msg
Display error message while uploading questions
Diffstat (limited to 'yaksh/documentation/moderator_docs')
-rw-r--r-- | yaksh/documentation/moderator_docs/creating_question.rst | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/yaksh/documentation/moderator_docs/creating_question.rst b/yaksh/documentation/moderator_docs/creating_question.rst index f99bf7f..94bb95c 100644 --- a/yaksh/documentation/moderator_docs/creating_question.rst +++ b/yaksh/documentation/moderator_docs/creating_question.rst @@ -264,6 +264,37 @@ Features in Question Click on the browse button. This will open up a window. Select the zip file of questions and click Ok and then click on Upload file button, questions will be uploaded and displayed on the Questions page. + Zip file should contain **questions_dump.json** from which questions will be loaded. + Zip file can contain files related to questions. + Sample entry in **questions_dump.json** is as shown below. :: + [{ + "snippet": "", + "testcase": [ + { + "test_case_args": "", + "test_case_type": "standardtestcase", + "weight": 1.0, + "test_case": "Test Case here" + }, + ], + "points": 2.0, + "description": "Question Description here", + "language": "python", + "active": true, + "type": "code", + "files": [[demo1.txt, false], [demo2.zip, true]], + "summary": "Question Summary here" + }] + + .. Note:: 1. In **files** entry in json, the list contains two items which + are filename (demo1.txt) and extract status (false) i.e file needs to extracted or not. + + 2. If there are no files then **files** entry can be empty + i.e it should be "files": []. + + 3. From sample, zip file should contain demo1.txt and demo2.zip since it is + required for question. + * **Test Questions** Select questions from the list of question displayed on the Questions page. Click on Test selected button. This will take you to a quiz with the selected questions. |