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 - Selenium Tutorial
From the course: Robot Framework Test Automation: Level 2
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
-
-
-
-
Overview of the steps1m 59s
-
(Locked)
Create the CSV data file2m 45s
-
(Locked)
Custom CSV parsing library4m 15s
-
(Locked)
Create our data manager3m 3s
-
(Locked)
Call the data manager3m 26s
-
(Locked)
Create the looping keyword file3m 58s
-
(Locked)
Refactor data entry steps1m 47s
-
(Locked)
Run and debug5m 2s
-
(Locked)
Add error handling59s
-
-