diff options
author | adityacp | 2017-03-16 16:46:29 +0530 |
---|---|---|
committer | adityacp | 2017-03-16 16:46:29 +0530 |
commit | eb3afa3b86ca7a129c9d1365e0ae7946b0c25d32 (patch) | |
tree | 5a7b7555f9c03ed567bc323d5e7be85b9b0c15f2 /yaksh/documentation/moderator_docs | |
parent | 7d568d24514cfc67a149b1eae80ba3d8490c1016 (diff) | |
download | online_test-eb3afa3b86ca7a129c9d1365e0ae7946b0c25d32.tar.gz online_test-eb3afa3b86ca7a129c9d1365e0ae7946b0c25d32.tar.bz2 online_test-eb3afa3b86ca7a129c9d1365e0ae7946b0c25d32.zip |
Change docs with method for 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. |