Skip to content
Sample test scripts for Selenium workshop at PyCon India, Bangalore 2014
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
chrome_driver
config
lib
.gitignore
README.md
basic_str.py
mytest.py

README.md

Sample test scripts

Selenium with Python:

It contains test scripts for a sample web application[1] which will be used as AUT at 'Test your Web Application with Selenium'[2], PyCon India[3], Bangalore, 2014.

Pre-requisites:

- Python 2.7
- Firefox browser
- Selenium Python bindings

Setup:

  1. Python and Selenium setup:
$ sudo yum install python       #Installs Python

$ sudo yum install pip-python   
$ pip-pyton install -U selenium     #Install Selenium Python bindings

2.Configurations:

$ mv config/config.conf.sample config/config.conf
# Replace www.example.com with a suitable URL where against which you want to run your tests

Execution:

  1. To run the test suite:
$ python mytest.py --all

2.To run individual test case:

$ python mytest.py -t list_verification
$ python mytest.py -t image_verification
  1. HTML reports are generated and available in ./reports or at the user specified path as per the config.conf file.

  2. Basic Selenium script outline is available in basic_str.py

[1] https://github.com/anarang/placebo [2] http://in.pycon.org/funnel/2014/184-test-your-web-app-with-selenium [3] http://in.pycon.org/2014/

You can’t perform that action at this time.