Demo tests to showcase how to write tests in python and execute them with AltWalker, using a State Transition Model for an authentication module.
Linux/MacOS:
$ cd python-auth
$ python3 -m venv .venv
$ source .venv/bin/activate
$ pip install -r requirements.txt
Windows:
$ cd python-auth
$ python3 -m venv .venv
$ .venv/Scripts/activate.bat
$ pip install -r requirements.txt
Read more about venv here.
Read more on AltWalker installation.
Download geckodriver.
After you download and extract the executable, make sure you set the path to the geckodriver executable in the Path variable to make other programs aware of its location.
On Windows:
$ set PATH=%PATH%;C:\bin\geckodriver
On Linux/MacOS:
$ ln -s /path/to/geckodriver /urs/local/bin/geckodriver
You can start the demo application from the prebuilt docker image or from source:
$ docker run --rm -it -p 8000:8000 altwalker/demos:django-auth
Or can start the demo application from the source code (https://github.com/altwalker/django-auth.git).
$ altwalker check -m models/models.json "random(edge_coverage(100))"
$ altwalker verify -m models/models.json tests
$ altwalker online -m models/models.json "random(edge_coverage(100))" tests