Top Robot Interview Questions (2021) | CodeUsingJava
















Most frequently asked Robot Interview Questions


  1. What is Robot Framework?
  2. What are the Features of Robot Framework?
  3. Where do the Keywords in the Robot Framework can be imported?
  4. What are the types of Standard Libraries in Robot Framework?
  5. What are Variables in Robot Framework?
  6. What are the types of Variables?
  7. How can we create a custom Python code library for the Robot Framework?
  8. How to download a file in Robot Framework?
  9. How can we use the REST library in Robot Framework?
  10. How do we load a json data file into a variable in Robot Framework?


What is Robot Framework?

Robot Framework is an automation used in acceptance testing and the test driven development.It follows case styles such as Keyword Driven, Behaviour Driven and Data Driven for writing all the test cases, and is very easy to understand.
Robot Framework is used in providing support for external Libraries, Tools which are open source and will be used in automation.

Robot Framework


What are the Features of Robot Framework?

  • Robot Framework has a High Level Architecture
  • Robot Framework has Simple Tabular Syntax
  • Robot Framework provides Clear Reports
  • Robot Framework has Generic Test Libraries
  • Robot Framework provides Detailed Logs
  • Robot Framework separates Test Data Editor

Where do the Keywords in the Robot Framework can be imported?

Robot Keywords can be imported from libraries and also can be created in the keyword table of the Test Case File itself.

What are the types of Standard Libraries in Robot Framework?

Types of Standard Libraries used in Robot Framework are: BuiiltIn
Collections
DateTime
Dialogs
OperatingSystem
Process
Remote
Screenshot
String
Telnet
XML

What are Variables in Robot Framework?

Variables are an important part in Robot Framework, any data is the test case which is the subject to variability is defined by using Variables.

What are the types of Variables?

Types of variables used by Robot Framework are:
Scalar Variable.
List Variable.
Dictionary Variable.

How can we create a custom Python code library for the Robot Framework?

We can create custom Python code library by using the following contents:
def join_two_strings(arg3, arg4):
    return arg3 + arg4


How to download a file in Robot Framework?

We can download files by using the following steps:
We need t login to Linux Machine by using SSH Libraries.
We need to run the commands given.
We need to store the output in the Variable.
Then we need to compare the Variable Value.

How can we use REST library in Robot Framework?

We can use REST library by using the following command:
REST Test Case
    Get    https://maps.googleapis.com/maps/api/timezone/json?location=39.6034810,-119.6822510&timestamp=1331161200&sensor=true
    Response    test


How do we load a json data file into a variable in Robot Framework?

We can load json data file by using the following command:
{
    "firstname": "Joe",
    "lastname": "Mikel"
}