How To Execute Robot Framework Test Case?

Using robot and rebot scripts

In Robot Framework 3.0 and later versions, tests are executed using robot scripts and the results are obtained by running the rebot script after the test cases have been executed.

The command to run a test case in the Robot Framework is:

Syntax:

robot filename.robot OR robot filename.txt

Robot Framework supports both .robot and .txt file extensions.

Example:

robot test_case_filename.robot OR robot test_case_filename.txt

After passing all the test cases, You will get three files as output by rebot scripts.

  1. output.xml:- Results in machine-readable XML format.
  2. log.html:- Detailed test execution log.
  3. report.html:- Higher level test report.

The directory where the test case file is executed will contain all three files.

In older versions of the Robot Framework, test execution and post-processing outputs were handled by interpreter-specific scripts such as pybot, jybot, and ipybot for test execution and jyrebot and ipyrebot for post-processing outputs. These scripts are only installed with Python and are not available in the Robot Framework itself.

Figure: log.html
Figure: report.html
Figure: output.xml

Note: If an image is not clearly visible, try opening it in a new tab in your browser.

Leave a Comment

Your email address will not be published. Required fields are marked *

Ads Blocker Image Powered by Code Help Pro

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.

Powered By
Best Wordpress Adblock Detecting Plugin | CHP Adblock