Looking for a scripting example which reads from a datafile

Good afternoon,

I am attempting to create a custom keyword which will when provided a String - check the test data for that string and return a value from the next column.


Role name
Professor Sophia Brahe

I am not sure if I need to piece together something from the TestDataFactory class or the TestData Interface.

The end result will be to supply the role and then the name will be returned.

We will be using this to determine login_names based upon the type of role being performed at a particular part of the test.


Found what I was looking for.
I can tease it out of the script example found on this page: