How to trigger event when student submits an assignment

How to trigger event when student submits an assignment

by Lloyd D -
Number of replies: 0
I'd like to know, how can I specify what happens when the student submits an assignment.. I'd like to be able to specify in the code that when the student submits an assignment, their submission is then used in unit tests (unit tests stored on the teacher's computer) and the results is sent back to display on the feedback form. More simply, here is what I'm trying to achieve:

  1. Student submits an assignment
  2. Submit button triggers the event of using the student's submission file in the unit testing
  3. The unit testing is carried out in a local folder on the machine
  4. The results are sent back to Moodle to display as their feedback

Any help is always greatly appreciated.

Average of ratings: -