Confirmed users
753
edits
| Line 27: | Line 27: | ||
== Automated Test Frameworks == | == Automated Test Frameworks == | ||
Basically you need to have python 2.6 running, on linux this is fairly simple, on mac it may require some work. The eternal struggle on a mac is upgrading / installing linux based applications (fink, mac ports, have grown up to solve this problem) We like Homebrew, as the installs are non-destructive to the operating system, and localized to specific users. Without further a do, here are some instructions to get python 2.6 running. | |||
Mac: | |||
Install Brew - [https://github.com/mxcl/homebrew Brew] | |||
Update Python 2.6 Formula | |||
brew create git://gist.github.com/743034 | |||
name it python26 | |||
brew install python26 | |||
(Do not run brew install python, as it will install python 2.7.1) | |||
Linux: | |||
Install Pip with the following command sudo easy_install pip | |||
sudo pip install mercurial | |||
sudo pip install virtualenvwrapper | |||
update your ~/.bash_profile | |||
export WORKON_HOME=$HOME/.virtualenvs | |||
export PIP_VIRTUALENV_BASE=$WORKON_HOME | |||
source /usr/local/bin/virtualenvwrapper.sh | |||
To create a new virtualenv you would do mkvirtualenv projecta –no-site-packages. “projecta” would be the name of the project you are using | |||
workon projecta | |||
install libraries needed in the relevant virtualenv so that you don’t pollute your environment. | |||
If something goes wrong you can delete the virtualenv without breaking your machine | |||
=== Selenium === | === Selenium === | ||
To install Selenium it is a simple case of pip install selenium when in your virtual environment, that you created above | |||
=== Mozmill (Firefox) Test Framework === | === Mozmill (Firefox) Test Framework === | ||
| Line 39: | Line 67: | ||
Install Mozmill Crowd and get familiar with running automated tests [https://addons.mozilla.org/firefox/addon/mozmill-crowd/ Mozmill Crowd] | Install Mozmill Crowd and get familiar with running automated tests [https://addons.mozilla.org/firefox/addon/mozmill-crowd/ Mozmill Crowd] | ||
The basic install process is well documented on : [https://developer.mozilla.org/en/Mozmill Mozilla Developer] | The basic install process is well documented on : [https://developer.mozilla.org/en/Mozmill Mozilla Developer] | ||