Creating custom questions is the recommended way to use AutoGradr. To get a feel of what a 'question' is, check out our Sample Material. You'll notice that questions can either be Labs or Projects. While labs and projects are different in concept, creating them is very similar.
Once you have created your labs and projects, you can access them under 'My Questions'. You can also make further edits.
A project is a standalone question that the student tackles as a whole. To help students, we recommend you provide a good explanation in the prompt and provide them with ample test case cases.
To get started, click 'Create Project' in the navigation bar. Give the project a short and descriptive title. In the prompt, explain the problem in detail. The recommended way to show 'sample outputs' would be to use sample test cases instead of adding examples in the prompt. The prompt supports HTML tags so feel free to customize your question!
Creating good and correct test cases is the most important part of creating a question. You're required to have at least one test case but we recommend adding at least a few. We also suggest making some of the test cases hidden.
If you have a solution to the problem ready, go ahead and run it locally on your computer. Put in the input that you'd want to grade your students' solutions on. Once the program exits, copy the entire output (including your input) and paste it into the console text box.
If you don't have a solution, you can simply type what you expect the program to output and the user inputs along with it.
Next, we need to tell AutoGradr which lines from the console I/O were user input. Click 'Mark User Input' and then click on all the lines that were user input as opposed to printed out by the program. As you click the lines, they'll turn blue.
For example, in the test case above, the program outputs 'Say something:', then the user inputs 'Hello, World', and finally the program outputs 'You said: "Hello, World"'. Note that the user input is highlighted in blue.
Apart from console I/O, if you want to make files available to be read from, upload them in the 'Input Files' box by dragging-and-dropping or clicking the 'browse' button. These files will be placed in the same directory where the program is running from. Filenames, extensions, and contents will be preserved.
If you expect the students to write to a file(s), you need to provide AutoGradr with the solution file(s). Upload these files in the 'Expected Files' box. These files will be used to compare to the files outputted by students' programs. The filenames and the contents of the files must match exactly.
That's it! You create as many test cases as you like. If you want to make some of the test cases hidden, toggle the 'Hidden' button to do so.
A lab is a group of small bite-sized questions. So, be ready to create multiple questions all grouped under a single umbrella lab. To get started, click 'Create Lab' in the navigation bar.
To create a lab, give a short but descriptive title. Then explain what this lab is going to consist of and the concepts that'll be introduced in the lab.
Once you have created a lab, you'll be taken to the 'Create Exercise' page. Each exercise is an individual question of the lab. You can add as many exercises to the lab as you like. Creating an exercise is the same as creating a project.