From the course: Robot Framework Test Automation: Level 2
Unlock this course with a free trial
Join today to access over 23,400 courses taught by industry experts.
Create the looping keyword file - Selenium Tutorial
From the course: Robot Framework Test Automation: Level 2
Create the looping keyword file
- [Instructor] So as you can see the next thing we have to do is to create our one keyword in the app keyword file that's going to do the commons steps. It's going to have arguments to catch our CSV test data row by row. It has arguments to catch our CSV test data, which is going to be variable we just created. Then it has a FOR loop to iterate through the rows within that variable. And then it's going to call the navigate, enter credentials, and verify the error message. We already have all those keywords in the app keyword file. Let's give it a try. So we know that each of these test cases that are existing are capable of navigating and attempting to login and verifying the error message. I don't want to put my FOR loop out here in the test case because I feel like that looks a little bit messy, so I would rather push that down into the app keyword file and have the FOR loop inside there and calling these steps directly. So my goal here is to call the cars app and tell it to log in…
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
-
-