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

Feeding external data


Tests can be fed data from any external data store such as a database, an Excel, or a CSV file or some external application that returns values dynamically and then can execute over the same data. To demonstrate this concept of test re-use further, we will undertake another exercise that focuses on performing the same task repeatedly. For the sake of the reader, we have abstracted the concepts now as these can then be implemented in whichever manner possible.

Basically, if we are having a set of repeatable tasks specified in a collection of values, then we can perform them in two different manners:

  • Perform the set of tasks repeatedly inside a test for each value

  • Perform the entire test repeatedly for the values

Performing a set of tasks repeatedly within a test

In this scenario, we create a test that takes in the argument or uses a variable containing a list of elements and iterate over it. As a precursor to this, first let us create the file containing the dynamic variable...

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