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

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 $15.99/month. Cancel anytime