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:

Running web-based tests

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 ...

Get Robot Framework Test Automation now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.