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 - Selenium Tutorial
From the course: Robot Framework Test Automation: Level 1 (Selenium)
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.…
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
-
-
-
-
-
-
-
-
(Locked)
Overview4m 44s
-
(Locked)
Preview of the final solution4m 12s
-
(Locked)
Scalar variables6m 8s
-
(Locked)
List variables5m 52s
-
(Locked)
Variable scope8m 48s
-
(Locked)
Passing variables to keywords7m 6s
-
(Locked)
Modify your project with variables7m 2s
-
(Locked)
Supply script input data at runtime3m 15s
-
(Locked)
-
-
-
-
-