From the course: Robot Framework Test Automation: Level 2

Unlock this course with a free trial

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

Create custom keyword libraries

Create custom keyword libraries

- [Instructor] So far in the Level 1, and Level 2 course, we've primarily been dealing with either built-in libraries, or some external libraries that already exist, for Robot Framework. In Robot Framework and all of its libraries, they really do a lot, so I definitely advise you that when want to solve a problem, do some Googling and look around, and make sure there's not already a library out there that does what you want to do. If for some reason you need something specific that existing libraries don't handle, you're going to need to create a custom library. You can do this using either Python or Java. I'll be showing a Python approach in this course. What you would do is you'd create a module file, and put a name on it that represents a collection of methods that do some related things. And inside that file, you're going to add one or more methods, which have underscores for spaces, and then you'll declare that library at the top of your script. And then simply call the method as…

Contents