Difference between revisions of "Submitting programs for automatic testing on Moodle"

From dftwiki3
Jump to: navigation, search
(Steps)
(Run the Program)
Line 41: Line 41:
 
<center>[[Image:MoodleSubmission3.png|600px]]</center>
 
<center>[[Image:MoodleSubmission3.png|600px]]</center>
 
<br />
 
<br />
 
+
* When you are satisfied that your program runs, close the '''Console''' window.
 +
* Fix any errors you may have, or modify the program behavior by going back to the '''Edit''' tab and modifying the code.
 +
* When you are satisfied that your code works well, you can have it evaluated for an '''automatic grade'''.
 
<br />
 
<br />
<center>[[Image:MoodleSubmission1.png|600px]]</center>
+
==Evaluate &amp; Grade Program==
 
<br />
 
<br />
 +
* Click on the '''Evaluate''' menu option.
 +
<br />
 +
<center>[[Image:MoodleSubmission4.png|600px]]</center>
 +
<br />
 +
* The output above shows that the program didn't run as expected.  It didn't crash, but its output is not the one wanted.
  
 
<br />
 
<br />

Revision as of 10:30, 2 September 2014

--D. Thiebaut (talk) 11:04, 2 September 2014 (EDT)



     

This page documents the steps necessary for submitting a program to be tested on the Smith College Moodle site. This feature makes use of the VPL Moodle extension. If you are interested in setting up such a module on your own Moodle site, you may find the tutorials/recipes on this page of interest.




Steps


Login to Moodle


  • Point your browser to Moodle and pick the link for this course.


Submit your Program


  • Find the link for today's assignment or lab.
  • Click on it!
  • You should see something similar to this screen capture:


MoodleSubmission1.png


  • Click on the 'Edit tab, and copy/paste your program


MoodleSubmission2.png


  • Click on Save in the menu to save your program.


Run the Program


  • Click on Run to test your program. This step will automatically assemble and link your program, display errors if any, and if not, it will display the output of the program.


MoodleSubmission3.png


  • When you are satisfied that your program runs, close the Console window.
  • Fix any errors you may have, or modify the program behavior by going back to the Edit tab and modifying the code.
  • When you are satisfied that your code works well, you can have it evaluated for an automatic grade.


Evaluate & Grade Program


  • Click on the Evaluate menu option.


MoodleSubmission4.png


  • The output above shows that the program didn't run as expected. It didn't crash, but its output is not the one wanted.


MoodleSubmission1.png



MoodleSubmission1.png



MoodleSubmission1.png



MoodleSubmission1.png