/
Setup mockprock as a backend

Setup mockprock as a backend

Mockprock is a proctoring backend that runs as an HTTP server and a python module. It allows you to simulate the entire proctoring workflow.

To install it:

cd src git clone git@github.com:edx/mockprock.git cd ../devstack
make lms-shell pip install -e /edx/src/mockprock make studio-shell pip install -e /edx/src/mockprock

Add it to your lms/envs/devstack.py and studio/envs/devstack.py :

NOTE: client_secret = client_id + 'secret'

PROCTORING_BACKENDS = { 'DEFAULT': 'mockprock', 'null': {}, 'mockprock': { 'allow_honor_mode': True, 'client_id': 'abcd', 'client_secret': 'abcdsecret', } }


Rebuild static assets to make sure mockprock ui scripts are available:


Then back in your host shell:


If you use Z shell (zsh), the command pip install -e .[server] will fail with zsh: no matches found: .[server]. This is because zsh uses square brackets for globbing/pattern matching. You should instead run the following command.:

The command will tell you you have to supply an client_id and client_secret. It'll open your browser to the Django admin page where you should create or use an existing credential.

 

You'll also need to add the user associated with the credential to the "mockprock_review" Django group. You can create the group at /admin/auth/group/.

restart the server:

If you need to run local changes to the mockprock Javascript worker or the worker interface in this library:

https://github.com/edx/edx-proctoring/blob/master/docs/developing.rst


2. Setup proctored exam for a course: 13.3. Creating Proctored Exams — Building and Running an Open edX Course documentation

appropriate course modes: VERIFIED, MASTERS, PROFESSIONAL, EXECUTIVE_EDUCATION, HONOR

add course mode. for your course (admin/course_modes/coursemode/add/):

Related content

Local setup
More like this
How to test endpoints and microservices with python
How to test endpoints and microservices with python
More like this
XQueue/XQWatcher Development
XQueue/XQWatcher Development
More like this
Video Pipeline Testing (Sandbox)
Video Pipeline Testing (Sandbox)
More like this
How To Test the Course Embargo Feature
How To Test the Course Embargo Feature
More like this