Robot Framework with Selenium and Workshop Login Facebook
#SETUP ##Install Python 2.7 ###Download Python: download Python
Command:
cd C:\Python27
C:\Python27>python
Python 2.7.8 (default, Jun 30 2014, 16:03:49) [MSC v.1500 32 bit (Intel)] on win
32
Type "help", "copyright", "credits" or "license" for more information.
>>>
###Download get-pip.py: download pip pip is the preferred installer program.
Go to path download get-pip.py. Then run python get-pip.py. This will install pip.
Command:
C:\user\guest>python get-pip.py
C:\user\guest>cd C:\python27\Scripts
C:\python27\Scripts>pip freeze
antiorm==1.1.1
enum34==1.0
requests==2.3.0
virtualenv==1.11.6
##Set Environment Variables Right click at My Computer > Properties > Advanced system settings > Environment Variables And then look at System variables click New..
Variable name: PYTHON_HOME
Variable value: C:\Python27
Click OK
For windows10 look up Path then click edit put C:\Python27; at the last character
and then put C:\Python27\Scripts; other windows
For other windows look up Path then click edit put ;%PYTHON_HOME%;%PYTHON_HOME%\Scripts
Click OK
Verify a successful installation
Command:
C:\user\guest>python
C:\Python27>python
Python 2.7.8 (default, Jun 30 2014, 16:03:49) [MSC v.1500 32 bit (Intel)] on win
32
Type "help", "copyright", "credits" or "license" for more information.
>>>
C:\user\guest>pip freeze
antiorm==1.1.1
enum34==1.0
requests==2.3.0
virtualenv==1.11.6
Documentation: Document
#Install Robot Framework with pip
Command:
pip install robotframework
# Upgrade to the latest version
pip install --upgrade robotframework
# Install a specific version
pip install robotframework==2.9.2
#Install Robot Framework Database-Library
Command:
pip install robotframework-databaselibrary
#Install Robot Framework pymysql
pip install pymysql
#Install Robot Framework Seleniumlibrary with pip
Command:
pip install robotframework-seleniumlibrary
pip freeze
appdirs==1.4.0
decorator==4.0.11
packaging==16.8
pyparsing==2.1.10
robotframework==3.0.2
robotframework-seleniumlibrary==4.1.0
selenium==3.0.2
six==1.10.0
###Download Chrome driver Download Chrome driver Extract Zip then move chromedriver.exe to C:\Python27\Scripts
#Install Tools
###RIDE
RIDE made from robot framework developer.
Easy to work because it's don't need type programming.
Download wxpython 2.8.12.1 for windows64bit: Download wxpython 2.8.12.1 windows64bit
Download wxpython 2.8.12.1 for windows32bit: Download wxpython 2.8.12.1 windows32bit
List of wxpython: List wxpython 2.8.12.1
Install wxpython 2.8.12.1
Command:
C:\>pip install robotframework-ride==1.5.2.1
C:\>ride.py
###ATOM
ATOM is a text editor.
Download ATOM: Download ATOM
After installed go to file > settings click Install then type robot and type terminal follow figure.
###PyCharm
PyCharm is a Python IDE for Professional Developers
PyCharm develop by jetbrains. eg. IntelliJ, PhpStorm
Website for PyCharm: Website for PyCharm
Download PyCharm: Download PyCharm
Install PyCharm and then run it.
###MySql Workbench
MySql Workbench is a tools for access to mysql.
Download Workbench
##End of Setup