Friday, September 12, 2025

Robot Framework : Sample code to verify if Robot Framework is installed properly ? - part2

Sample code to verify if Robot Framework is installed properly ?



1. Create a file name test.robot and save it.
*** Test Cases *** 
Sample Test 
    Log     Hello from Robot Framework! 
2. Execute the script using below command. -> robot test.robot


3. Lets see this in details

a) *** Test Cases *** # This part is called Section and                                   its case-sensitive.

b) Sample Test # This is the user-defined Testcase name.

c) Log Hello from Robot Framework! # Here Log is inbuilt Keyword of RobotFramework for logging.                                           # Hello from Robot Framework! This is the message user want to log                                             during execution.

No comments:

Post a Comment

How to install Git ?

Steps to install GIT on your local system(Windows, Linux, Mac) Before installing Git to your machine, it's a good idea to check if it...