From the course: Robot Framework Test Automation: Level 2

Unlock this course with a free trial

Join today to access over 22,400 courses taught by industry experts.

Built-in capabilities

Built-in capabilities

- [Instructor] Okay, so the first thing we're going to look at is the easiest way to do this, and that's using the built-in method provided by Robot Framework. And here are the key steps. First, we're going to create a keyword that holds the common steps that existed in each of our separate test cases. And we can create this keyword either in the Tests file or in the App keyword file. That's really going to be your choice. I tend to prefer to create it in the App keyword file, simply because I want to keep my tests.robotfile free from keywords. This keyword is going to have an arguments section to catch the test data that we're going to pass into it. What we'll do next is we'll delete the multiple test cases and create one test case with a template attribute on it. And the value for that template section is going to be the name of the keyword that we created that holds those common steps. So this creates an association between the test case and the respective keyword that holds the…

Contents