From the course: Robot Framework Test Automation: Level 2

Unlock this course with a free trial

Join today to access over 24,700 courses taught by industry experts.

Create our data manager

Create our data manager

- [Instructor] The next step we need to do is to create a Data Manager file in our Resources directory. So I'll close up my csv custom library, go into Resources, right click, and add new file called DataManager.robot. And inside this file, all I want is a Settings section and a Keywords section. Now we need to link our custom library to the data manager. Before I do that, I'll type in some documentation here and I'll say use this layer to get data from external files. And now the link that we want to do is we'll just type in Library, two spaces, and since we're in Resources here, we simply need to jump up one directory, go over to CustomLibs and grab this guy. So I'll say dot dot slash to jump up, CustomLibs to go into that directory /Csv.py, so that's how I link my Data Manager file to my custom library. Now we need to create a custom keyword in the data manager that's going to return our csv data. So to do that, I'm going to create a new custom robot framework keyword called Get…

Contents