Skip to content

Sample test scripts for Selenium workshop at PyCon India, Bangalore 2014

Notifications You must be signed in to change notification settings

kanchan04katare/selenium

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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/

About

Sample test scripts for Selenium workshop at PyCon India, Bangalore 2014

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%