Selenium Automate Testing Example
Windows Platform
-
install vc redist (Microsoft Visual C++ 2010 Redistributable Package)
-
install python 2.7 (http://www.python.org/download/releases/2.7/)
-
add path to python 2.7 and scripts and openssl (C:\Python27;C:\Python27\Scripts;C:\Python27\Lib\site-packages;)
-
install pywin (http://sourceforge.net/projects/pywin32/files/pywin32/ select latest build and select correct python version)
-
install python setuptool (https://pypi.python.org/pypi/setuptools/0.9.6#installation-instructions)
-
easy_install pip
-
pip install selenium
-
pip install behave
-
pip install colorama
-
extract ansicon and run ansicon -i (check 32 / 64 bits version)
-
Git clone ProjectCylon
- clear all .py files in \pageobject\ (except init)
- edit csv files in \pageobjectdefinition\
- run GenALlPageObject.bat
- run CheckElements.bat to check pageobject
- edit features file in \features\ (format and example: http://pythonhosted.org/behave/tutorial.html#feature-files)
- edit steps file in \features\steps\
- run RunBDDColor.bat to check test