Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Robot Framework Test Automation

You're reading from   Robot Framework Test Automation Create test suites and automated acceptance tests from scratch

Arrow left icon
Product type Paperback
Published in Oct 2013
Publisher Packt
ISBN-13 9781783283033
Length 98 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Sumit Bisht Sumit Bisht
Author Profile Icon Sumit Bisht
Sumit Bisht
Arrow right icon
View More author details
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 $19.99/month. Cancel anytime
Banner background image