Running web-based tests
In the example, a small website has been created using flask, which is a Python-based micro framework to create dynamic websites. To run the example, flask would be required at the local Python setup, which can be installed as:
pip install flask
After installing flask, traverse to the flaskApp
directory via command line and run the demo website by running its main controller file:
python hello.py
This starts up the flask on localhost:5000
, and displays the following window:

On entering wrong username/password an error is displayed on the same page. Here, the contents of the form are not persisted and only the presence of an error message indicates that a wrong username/password combination has been tried previously.
The following screenshot shows the error when a wrong username/password combination is tried:

The application redirects to the respective page if the login is successful, which also provides a confirmation text mentioning the successful login as well as provides...