Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Robot Framework Test Automation

You're reading from  Robot Framework Test Automation

Product type Book
Published in Oct 2013
Publisher Packt
ISBN-13 9781783283033
Pages 98 pages
Edition 1st Edition
Languages
Author (1):
Sumit Bisht Sumit Bisht
Profile icon Sumit Bisht
Toc

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

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €14.99/month. Cancel anytime}