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.

Dictionary practical example: URLs

Dictionary practical example: URLs - Selenium Tutorial

From the course: Robot Framework Test Automation: Level 2

Dictionary practical example: URLs

- [Bryan] In this video, I'd like to talk about a very common, practical way to use dictionaries. In the overview video, we talked about how we can use dictionaries to hold URLs for our site under test. Typically, there are multiple URLs for any given site, including dev, qa, stage, and production. And, of course, you could pass those in on the command line, but then you have to store them in some other system like Jenkins or a batch file. I prefer to store mine in a script as a dictionary, and then, in the command line, I can just pass in which environment I'd like to test, like dev, qa, stage, or prod. Let's take a look. So here, I've got a very basic web application starter project. I've got tests, the typical test setup and teardown, and those keywords are stored in my resources directory in Common.robot. I've got a corresponding application file that has all the application keywords I need for my test cases, and I've got some page objects, including the landing page, registration…

Contents