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.
- Python 2.7 - Firefox browser - Selenium Python bindings
- 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
- 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
-
HTML reports are generated and available in ./reports or at the user specified path as per the config.conf file.
-
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/