Files
edx-platform/lms/djangoapps/portal

acceptance_testing

This fake django app is here to support acceptance testing using lettuce + salad (which uses splinter wrapping selenium).

Some documentation for our efforts are located in basecamp at this link.

First you need to make sure that you've installed the requirements. This includes lettuce, salad, selenium, splinter, etc. Do this with: pip install -r test-requirements.txt

First set up the database that you need: WARNING!!! THIS WILL OVERWRITE THE DATA IN YOUR DEV DATABASE IF YOU WANT TO KEEP THAT DATA, SAVE A COPY OF YOUR ../db/mitx.db ELSEWHERE FIRST!

  • If necessary, delete it first from mit_all/db
  • ```rake django-admin[syncdb,lms,acceptance]```
  • ```rake django-admin[migrate,lms,acceptance]```
  • To use, start up the server separately: rake lms[acceptance]

    In between scenarios, flush the database with this command. You will not need to do this if it's set up in the terrain.py file which is at the mitx root level. rake django-admin[flush,lms,acceptance,--noinput]

    Running the all the user acceptance scenarios: django-admin.py harvest --no-server --settings=lms.envs.acceptance --pythonpath=.

    Running a single user acceptance scenario: django-admin.py harvest --no-server --settings=lms.envs.acceptance --pythonpath=. lms/djangoapps/portal/features/signup.feature

    Or you can use the rake task named lettuce like this: rake lettuce[lms/djangoapps/portal/features/homepage.feature]