From the course: Robot Framework Test Automation: Level 1 (Selenium)

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

Preview of the final solution

Preview of the final solution

In this video, I'll give you a preview of the final solution to show you how I've added variables to our existing Amazon script. This might be all you need to see to go do it yourself, but I highly encourage you to watch the rest of these videos about variables because there's a lot of great fundamental information in there. In our project, I've only used scalar variables and I've replaced the browser value, the starting URL, and the search term with variables. Let's go take a look. So I'm currently looking at the starting project before we made any changes. And you may recall that in my test setup I'm calling Common Begin Web Test. So that's a resource file here and we're going to open a browser, and I've currently got that hardcoded to Internet Explorer. Then all of the test cases here have a search for product step, and the way that's being accomplished is on the LandingPage. We're always navigating to amazon.com, and there's really no way to change that, unless I change my script.…

Contents