From the course: Robot Framework Test Automation: Level 2
Unlock this course with a free trial
Join today to access over 22,600 courses taught by industry experts.
Call the data manager - Selenium Tutorial
From the course: Robot Framework Test Automation: Level 2
Call the data manager
- [Instructor] So next, we're going to call the Data Manager from our script to get a list of rows. So we know it's called Get CSV Data. We'll put this away for now. Open up our script, and instead of all these three test cases, I'm just going to create one brand new test here. And we'll call it "Should see correct error messages with invalid logins." And right off the bat, when I type DataManager, you can see I get the red squiggly lines, so up here in settings, we need to make sure that we have a reference to our DataManager file the same way we have a reference common file and our App keyword file. So I'm just going to go ahead and copy and paste that line. And change this to DataManager. I can collapse that settings section for now. And I'll say hey DataManage. As I recall, it was Get CSV Data. Double check that, yep. Get CSV Data. And as you recall, it's expecting a file path. So I put in two spaces there and instead of typing in a path here, what I'd rather do is jump up here…
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
-
-