Web login system and API/UI tests
No one likes looooong README, so let's begin:
python 3.9.0
Flask 1.1.2
Robot Framework 3.2.2 (Python 3.9.0 on darwin)
git clone https://github.com/NTUEEboy/flaskrrr-and-tests.git
Just follow the tutorial of Flask website to creat a virtual env. under the project
$ python -m venv venv
Activate the environment
$ . venv/bin/activate
Install required packages: Flask and Robot Framework.
$ pip install -r requirements.txt
Make sure you have the same chrome version with ChromeDriver(88) in this repository.
Check Internet is connected in your side because Bootstrap and jQuert CND are used.
The test scripts are in the tests direectory.
Start the localhost web server
$ export FLASK_APP=main.py
$ flask run
The api test for the login function
$ python -m unittest -v tests/test_basic.py
or if you have pytest
installed
$ pytest
The UI test in different cases
$ robot tests/ui_tests/login.robot