List and Dictionary Variables

Опубликовано: 08 Декабрь 2022
на канале: UMAMAHESWARARAO BATTA, Ph. D
190
2

Robot frame work has 3 types of data types(Variables)

1. Scalar
2. List
3. Dictionary

Scalar
1. Using scalar variable we can store single value
2. Using ${dollar} symbol we can create scalar variable
Example : ${name} = UMAMAHESH

List
1. List is used to store multiple value
2. Using @{attherate} symbol we can create List variable
Example : @{names} = UMA KUMAR BALU BABU

Dictionary
1. Dictionary is used to store data in key value foramt
2. Using &(Ampersand) symbol we can create Dictionary variable
Example : &{EMP_DET} = name=UMAMAHESH eid=78 did=9