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.
List variables - Selenium Tutorial
From the course: Robot Framework Test Automation: Level 1 (Selenium)
List variables
In this video, I'm going to talk about list variables. List variables are used for holding multiple values, and this could be useful if you had a username and password that you wanted to pass together with one variable instead of passing two variables, or something like a series of coordinates that was needed for a particular test case, you could put all the coordinates in one bucket and pass them into the keyword. You'll notice that the syntax is very similar to the scalar variables. The only difference is we're using an at sign instead of a dollar sign. You can see that we still have two approaches. The first one is what we use in the variables section of the script file or keyword file, and the second one can be used directly inside of a test case or keyword. Since there are multiple values inside the variable, the syntax for retrieving data is different from a scalar variable. You can see that I'm still using log, but again I've changed the dollar sign to @, and at the end here…
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)
-
-
-
-
-