Tuesday 30 August 2011

Configuration - Selenium and Python


Configure Selenium Server
1) Download selenium server from the http://seleniumhq.org/download/  site.
2) The latest version is selenium-server-standalone-2.3.0.jar
3) Create a folder/Directory in any drive (ex – D:\SeleniumServer).
4) Copy the downloaded jar file in above created directory.


Python Client Libraries Installation

Python Installation
1) Download the latest version of python “python-2.7.2.msi” from the site http://www.python.org/download/.
2) Run the installer and complete the installation.

Python Window
1) Download the python win “pywin32-214.win32-py2.7.exe” from the site http://sourceforge.net/projects/pywin32/files/.
2) Run the installer and complete the installation.


Setup Tool
1) Download the setup tool “setuptools-0.6c11.win32-py2.7.exe” from the site http://pypi.python.org/pypi/setuptools.
2) Run the installer and complete the installation.

Path Setting
1) Right click on the My Computer and select Properties.
2) Click on the Advanced tab.
3) Click on the Environment Variables button.
4) Set the below path in “Path” variable under System Variable.
5) Click on OK button

Selenium Installation
1) Open Command Prompt.
2) Enter the command “easy_install.py selenium”.
3) It will show the below screen.

4) Selenium installation is completed.

For generating Reports
1) Download the HTMLTestRunner.
2) Copy the “HTMLTestRunner.py” file in Python installation directory (D:\Python27\Lib\site-packages).

2 comments:

  1. Hi,
    While installing "pywin32-214.win32-py2.7.exe" and setuptools-0.6c11.win32-py2.7.exe after the installation of pyhton 2.7 I am getting error like "Python version 2.7 is required which is not found in the registry"..
    Can anyone help me how can I resolve this issue
    Thanks & Regards,
    Kumar

    ReplyDelete
  2. Please check your python installation version.Probably it is not 2.7.Just enter "python" in your command prompt and hit enter to verify the version and bit version(32 or 64).

    Thanks,
    Vishal Aggarwal
    http://testocean.blogspot.in

    ReplyDelete