Robot Framework's default test case file format is plain text, using a tabular structure. This means you organize your test data (test cases, keywords, variables, etc.) in tables within text files.
Here's a simple example of what a Robot Framework test case file might look like :
***Settings***
Library SeleniumLibrary
***Variables***
${BROWSER} chrome
${URL} https://www.example.com
***Test Cases***
Open Browser and Navigate to Website
Open Browser ${URL} ${BROWSER}
Maximize Browser Window
Title Should Be Example Domain
***Keywords***
Open Browser and Navigate to Website
[Arguments] ${url} ${browser}
Open Browser ${url} ${browser}
Maximize Browser Window
Key aspects of the format:
***Settings***
, ***Variables***
, ***Test Cases***
, and ***Keywords***
, to organize different types of data.Why this format?
While plain text with a tabular structure is the default and most common format, Robot Framework also supports other formats like:
However, the plain text format remains the most widely used due to its simplicity and readability.