Robot Framework Installation & Setup
Agha Anas Ahmad
Empowering Insights Through Data | Data Science | Data Analytics | Business Intelligence | Data/Software Quality Assurance (SQA) Professional | Agile Scrum Methodologies
INSTALLATION & SETUP
Install Python & PIP
- Browse respective URL: https://www.python.org/
- Hover on ‘Downloads’ tab
Click on the ‘View the full list of downloads’
Click on the Python latest version available
Now from ‘File Section’, click on ‘Windows x86-xx executable installer’ to download the python setup
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’
Now click on ‘Customize Installation’ option and click the ‘Next’ button
Copy the default installation path link and click on the ‘Install’ button
Now click on the ‘Close’ button
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
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
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
Now to upgrade your PIP from the old version to the new one. Simply type the following command Python -m pip install - -upgrade pip
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.
To install Selenium Library, simply type the following command
Pip install robotframework-seleniumlibrary
To install other libraries, simply type the following command
Pip install robotframework-requests
*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
Download the IE driver .exe (32-bit Window) and extract it into the bin folder from IE Driver Server section
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
*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
During the installation process do check the ‘Run PyCharm’ checkbox
Select the ‘Do not import settings’ radio button
Select the UI theme for PyCharm
Click on the ‘Configure’ option from the bottom panel
Select the ‘Plugin’ option from the dropdown menu
Now search the ‘Intellibot’ and click the enter button
From the options displayed based on the search result, select the ‘Intellibot @SeleniumLibarary Patched’
Click on the ‘Install’ button
Now ‘Restart’ you PyCharm again
Configure Python installation path in PyCharm
Click on the ‘Create New Project’ option
Click on the browser icon to declare the PyCharm installation path here, name your project directory and then click on the ‘Project Interpreter’ option
Now select the ‘Existing interpreter’ radio button
Click on the ‘System Interpreter’ option
Click on the ‘Create’ button
Now finally click on the ‘Create New Project’ option again
Tech Lead in .Net at Embrace-It
5 年Good work
Head of Growth @ DPL | Strategic Leader driving company expansion
5 年Great work
Data Scientist | Python | SQL | ML | Tableau
5 年Hey great Agha, come up with with more details on Robot Framework.
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