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