How to install Robot Framework in Windows?

Here I am using Robot Framework with Python. So I will install Python first.

How to install python?

Step1: Go to the website: https://www.python.org/downloads/

Step 2: Click on Download as shown below.

Step 3: After downloading python files.

  1. Go to the directory where the Python files have been downloaded.
  2. Double-click the file to start the installation process.
  3. In the installation process, select the option “Add Python 3.9 to PATH”.

Note: The exact version number (3.9) may vary, depending on the version of Python you have downloaded.

Step 4:

During the installation process of Python 3.9, there will be an option to select the “Add Python 3.9 to PATH” checkbox. This option allows the Python installation to be accessible from any location on your computer, as the PATH environment variable will be updated with the location of the Python executable. This means that you can run Python from any directory in the command prompt without having to navigate to the location of the Python installation.

Step 5: Click on “Customize installation“.

Click on the “Next” button as shown above.

Step 6:

Choose the option “Install for all users” and click on the “Browse” button to select the desired location for the installation. I am installing in path “F:\Python_app”. Click the “Install” button to initiate the installation process at the specified location.

The image above shows the installation has started and is in progress.

Step 7:

After successful installation, the following message windows will come. Click on the “Close” button.

You can know that you have successfully installed Python by checking in the command prompt/terminal by typing “python” and checking the version number, or by checking in the installed programs list on your computer.

Step 1: Open the command prompt.

step 2: In your terminal or command prompt:

python –version (2 times hyphen ‘–‘)

or

python -V

This command will display the installed version of Python. If the version is displayed, it means Python is successfully installed.

How to install ROBOT FRAMEWORK?

Step 1: Open the command prompt.

step 2: Type “cd F:/Python_app” in the command prompt to navigate to the installed Python directory.

Step 3: Type the following command in the command prompt to install the robot framework.

pip install robotframework

Step 4: If you want to check whether the robot framework has been successfully installed or not then type the below command

robot –version (2 times hyphen ‘–‘)

Verifying Installation

You have to verify both Robot Framework and interpreter versions as a result as shown below

robot –version

The above command will show the installed version of Robot Framework as a result.

rebot –version

The above command will show the installed version of Interpreter as a result.

Un-installation of Robot Framework

Run the command “pip uninstall robotframework” to uninstall the Robot Framework.

Upgrading Robot Framework

To upgrade your existing Robot Framework, use the command “pip install –upgrade robotframework” . This command will install the latest stable version.

Installing Specific Version Of Robot Framework

Run the command “pip install robotframework==2.9.2“. This command will install the Robot Framework of version “2.9.2“.

Leave a Comment

Your email address will not be published.