Robot Framework Installation & Setup

Robot Framework Installation & Setup

INSTALLATION & SETUP

Install Python & PIP

No alt text provided for this image

Click on the ‘View the full list of downloads

No alt text provided for this image

Click on the Python latest version available

No alt text provided for this image

Now from ‘File Section’, click on ‘Windows x86-xx executable installer’ to download the python setup

No alt text provided for this image

After setup is downloaded successfully, right-click on the setup and click on ‘Run as Administrator’ option

From python, installation wizard checks the ‘Add Python x.x to Path’

No alt text provided for this image

Now click on ‘Customize Installation’ option and click the ‘Next’ button

No alt text provided for this image

Copy the default installation path link and click on the ‘Install’ button

No alt text provided for this image

Now click on the ‘Close’ button

No alt text provided for this image

Search for the copied path in C directory and verify that path exists after installation

Click on ‘Scripts’ folder and verify that PIP .exe file exists

Now to verify that the python path exists, the following steps should be followed:

  • Right-click on C drive
  • Select the ‘Properties’ option
  • Now select ‘Advanced Settings’ option
  • Click on the ‘Environment Variable’ button and verify that ‘Python x.x’ and ‘Python x.x/Scripts’ path exists

Confirm Python & PIP Installation

Open Command Prompt from your system

Enter the following command to verify that Python is installed successfully or not

Python -V      or         python - -version

No alt text provided for this image

Note: If python is installed successfully, then the respective message would be displayed.

Enter the following command to verify that PIP is installed successfully or not

Pip -V             or         pip - -version

No alt text provided for this image

If PIP is installed successfully, then the respective message would be displayed.

*Note: If running the above-mentioned commands give you the following error “Python is not recognized as external or internal batch file” then follow the below mentioned steps:

  • Right-click on C drive
  • Select the ‘Properties’ option
  • Now select ‘Advanced Settings’ option

Click on ‘Environment Variable’ button and update the ‘Python x.x’ and ‘Python x.x/Scripts’ existing paths

Upgrade PIP Version

Verify your PIP version simply by running the following command in Command Prompt Pip list

No alt text provided for this image

Now to upgrade your PIP from the old version to the new one. Simply type the following command Python -m pip install - -upgrade pip

No alt text provided for this image

Install Robot Framework & Selenium Library

To install Robot Framework, simply type the following command

Pip install robot framework

On successful installation, respective message would be displayed.

No alt text provided for this image

To install Selenium Library, simply type the following command

Pip install robotframework-seleniumlibrary

No alt text provided for this image

To install other libraries, simply type the following command

Pip install robotframework-requests

No alt text provided for this image

*Note:

  • If there is a proxy for Internet access, then search for how to use the - -proxy flag with pip installation
  • You can also explore some more useful libraries on the following URL: https://pypip.org/ & https://robotframework.org/
  • One thing to notice that Selenium2Library revert to SeleniumLibrary now, so don’t confuse between them

Install Selenium Web driver

Create a folder named ‘bin’ in the C drive

Create Environment Variables for bin folder through Advanced Settings

Now navigate to the URL https://seleniumhq.org

Click on the Download tab3

No alt text provided for this image

Download the IE driver .exe (32-bit Window) and extract it into the bin folder from IE Driver Server section

No alt text provided for this image

Click on Mozilla Gecko driver link and from the release, section download the latest Mozilla driver .exe (32-bit Window) and extract it into the bin folder

Click on Chrome driver link and from the release section download the latest Chrome driver .exe (32-bit Window) and extract it into the bin folder

Click on Edge driver link and from the release section download the latest Edge driver .exe (32-bit Window) according to your system’s release compatible version and extract it into the bin folder

No alt text provided for this image

*Note: To find your system’s build OS version follow the below-mentioned steps

  • Click on ‘Start’ from the windows menu
  • Select the ‘Settings’ option
  • Select the ‘System’ option
  • Now click on the ‘About’ tab
  • Verify the OS build version

Install PyCharm IDE + Robot Plugin

Navigate to URL https://www.jetbrains.com/

Click on the ‘Tools’ option

Select the ‘PyCharm’ from the dropdown

Click on the ‘Download Now’ button

Now again click on the ‘Download’ button under the community section

Right-click on the setup and click on the ‘Run as Administration’ option after setup is successfully downloaded

During the installation process do check the ‘.py’ checkbox displayed under ‘Create Associates’ section

No alt text provided for this image

During the installation process do check the ‘Run PyCharm’ checkbox

No alt text provided for this image

Select the ‘Do not import settings’ radio button

No alt text provided for this image

Select the UI theme for PyCharm

No alt text provided for this image

Click on the ‘Configure’ option from the bottom panel

No alt text provided for this image

Select the ‘Plugin’ option from the dropdown menu

Now search the ‘Intellibot’ and click the enter button

No alt text provided for this image

From the options displayed based on the search result, select the ‘Intellibot @SeleniumLibarary Patched’

No alt text provided for this image

Click on the ‘Install’ button

Now ‘Restart’ you PyCharm again

No alt text provided for this image

Configure Python installation path in PyCharm

Click on the ‘Create New Project’ option

No alt text provided for this image

Click on the browser icon to declare the PyCharm installation path here, name your project directory and then click on the ‘Project Interpreter’ option

No alt text provided for this image

Now select the ‘Existing interpreter’ radio button

No alt text provided for this image

Click on the ‘System Interpreter’ option

No alt text provided for this image

Click on the ‘Create’ button

No alt text provided for this image

Now finally click on the ‘Create New Project’ option again

No alt text provided for this image


Waqar Ahmad

Tech Lead in .Net at Embrace-It

5 年

Good work

回复
Talha Saleem

Head of Growth @ DPL | Strategic Leader driving company expansion

5 年

Great work

回复
Fatima Aziz

Data Scientist | Python | SQL | ML | Tableau

5 年

Hey great Agha, come up with with more details on Robot Framework.

回复
Maryam Farooq

Sr. SQA at Convo | XTEL | S&P Global | Evertz | Test Automation | Salesforce | Project Management | Scaled Agile | QA Analyst | Selenium | Automation | ISTQB? - Agile Extension Certified | SAFe? 5 SM | SAFe 5 RTE | SFPC

5 年

Good Work Agha Anas

要查看或添加评论,请登录

Agha Anas Ahmad的更多文章

社区洞察

其他会员也浏览了