Auto-tools/Automation Development: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
Line 18: Line 18:


== Projects  ==
== Projects  ==
This section will have links to all of the projects that the team is working on.


===Automated Testing for WebApps===
{| cellspacing="1" cellpadding="1" border="1" summary="Projects that the team is actively engaged in" style="width: 1163px; height: 170px;"
===Mozmill (Firefox) Test Framework ===
|+ Automation Projects
|-
| Mozmill Tests
| [https://www.pivotaltracker.com/projects/289215 www.pivotaltracker.com/projects/289215]
|-
| Mozmill Automation
| [https://www.pivotaltracker.com/projects/298905 www.pivotaltracker.com/projects/298905]
|-
| Mozmill Shared Modules
| [https://www.pivotaltracker.com/projects/344657 www.pivotaltracker.com/projects/344657]
|-
| Open WebApps
| [https://www.pivotaltracker.com/projects/350145 www.pivotaltracker.com/projects/350145]
|}


==== About Mozmill ====


Mozmill is a Software Automation Test Framework that has been designed to test the Firefox Browser.  The test suites are written in a domain independent language (javascript), which then uses python in the backend to communicate with a local socket in the browser.
There are several pieces required to run Mozmill tests. The simplest / easiest way to get up and writing / running mozmill tests is to install mozmill crowd.  This extension allows you to run mozmill tests, and get familiar with writing test cases. 
After this initial you will be looking for something more complex, try installing Mozmill, and the corresponding test suite so you can run tests from the command line. *If you are able to get this up and running, Congratulations.. this is how tests are run in our continuous integration environment*


==== How to Install ====
== Automated Test Frameworks  ==


Install Mozmill Crowd and get familiar with running automated tests [https://addons.mozilla.org/firefox/addon/mozmill-crowd/ Mozmill Crowd]
=== Selenium  ===


===== Advanced Install =====
=== Mozmill (Firefox) Test Framework  ===


Basically you need to have python 2.6 running, on linux this is fairly simple, on mac it may require some work.  
==== About Mozmill  ====
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.  
Mozmill is a Software Automation Test Framework that has been designed to test the Firefox Browser. The test suites are written in a domain independent language (javascript), which then uses python in the backend to communicate with a local socket in the browser. There are several pieces required to run Mozmill tests. The simplest / easiest way to get up and writing / running mozmill tests is to install mozmill crowd. This extension allows you to run mozmill tests, and get familiar with writing test cases. After this initial you will be looking for something more complex, try installing Mozmill, and the corresponding test suite so you can run tests from the command line. *If you are able to get this up and running, Congratulations.. this is how tests are run in our continuous integration environment*
 
==== How to Install  ====
 
Install Mozmill Crowd and get familiar with running automated tests [https://addons.mozilla.org/firefox/addon/mozmill-crowd/ Mozmill Crowd]
 
===== Advanced Install  =====
 
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:  
Mac:  
   Install Brew - [https://github.com/mxcl/homebrew Brew]
   Install Brew - [https://github.com/mxcl/homebrew Brew]
  Update Python 2.6 Formula  
Update Python 2.6 Formula  
  brew create git://gist.github.com/743034
brew create git://gist.github.com/743034
  name it python26
name it python26
  brew install python26
brew install python26
  (Do not run brew install python, as it will install python 2.7.1)
(Do not run brew install python, as it will install python 2.7.1)
Linux:
 
Linux:  
 
   Install Pip with the following command sudo easy_install pip
   Install Pip with the following command sudo easy_install pip
  sudo pip install mercurial
sudo pip install mercurial
  sudo pip install virtualenvwrapper
sudo pip install virtualenvwrapper
  update your ~/.bash_profile
update your ~/.bash_profile
  export WORKON_HOME=$HOME/.virtualenvs
export WORKON_HOME=$HOME/.virtualenvs
  export PIP_VIRTUALENV_BASE=$WORKON_HOME
export PIP_VIRTUALENV_BASE=$WORKON_HOME
  source /usr/local/bin/virtualenvwrapper.sh
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
 
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
     workon projecta
    install libraries needed in the relevant virtualenv so that you don’t pollute your environment.  
  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
  If something goes wrong you can delete the virtualenv without breaking your machine
 
The basic install process is well documented on : [https://developer.mozilla.org/en/Mozmill Mozilla Developer]
 
Install the Mozmill Tests Get the tests out of the repository - [https://developer.mozilla.org/en/Mozmill_Tests Mozmill Tests]
 
=== Team Presence (Documentation) ===


The basic install process is well documented on : [https://developer.mozilla.org/en/Mozmill Mozilla Developer]
=== Infrastructure Investigation ===


Install the Mozmill Tests Get the tests out of the repository - [https://developer.mozilla.org/en/Mozmill_Tests Mozmill Tests]
=== Selenium Grid 2 ===


===Team Presence (Documentation)===
=== Endurance Tests ===
===Infrastructure Investigation===
===Selenium Grid 2===
===Endurance Tests===


== [[/QA/Automation_Services/New_Members|New Members]] ==
== [[/QA/Automation_Services/New_Members|New Members]] ==
All new members to the team can find all the details about getting setup. Details on what accounts, what mailing lists, etc can be found on the [[/QA/Automation_Services/New_Members|Here]].
All new members to the team can find all the details about getting setup. Details on what accounts, what mailing lists, etc can be found on the [[/QA/Automation_Services/New_Members|Here]].

Revision as of 20:14, 15 August 2011

Who are We?

This is the home of the QA Automation Services Team. This team is responsible for helping the QA teams on specific products excel at what they are doing using a number of tools.

Mozmill

A Framework for automating Gecko based applications from Firefox to Thunderbird

Selenium

A web browser automation framework controlling the content render-able part of the browser

Other

This could be anything from JMeter to automating native apps on mobile devices

Meetings

We have a public team project meetings each second week. If you want to join the meetings, please check the meetings page for details.

Team

The automation development team is a group of passionate and open minded people working on automation. We are spread around the world, but we have one collective goal to empower automation even more in the Mozilla project. If you want to get in contact with one of us please check the table below for more information.

Photo Name Location IRC
Henrik skupin.jpg
Henrik Skupin

hskupin@mozilla.com

Germany whimboo

#automation #mozmill #qa

DaveHunt.jpeg
Dave Hunt

dhunt@mozilla.com

United Kingdom davehunt

#ateam #automation #mozmill #qa #mozwebqa

Rwood.jpg
Rob Wood

rwood@mozilla.com

Canada rwood

#automation #ateam

Andreea Matei.jpg
Andreea Matei

andreea.matei@softvision.ro

Romania AndreeaMatei

#automation #ateam #mozmill #mozwebqa #qa

Andrei.png
Andrei Eftimie

andrei.eftimie@softvision.ro

Romania andrei_eftimie

#automation #ateam #mozmill #firefox #qa


Projects

Automation Projects
Mozmill Tests www.pivotaltracker.com/projects/289215
Mozmill Automation www.pivotaltracker.com/projects/298905
Mozmill Shared Modules www.pivotaltracker.com/projects/344657
Open WebApps www.pivotaltracker.com/projects/350145


Automated Test Frameworks

Selenium

Mozmill (Firefox) Test Framework

About Mozmill

Mozmill is a Software Automation Test Framework that has been designed to test the Firefox Browser. The test suites are written in a domain independent language (javascript), which then uses python in the backend to communicate with a local socket in the browser. There are several pieces required to run Mozmill tests. The simplest / easiest way to get up and writing / running mozmill tests is to install mozmill crowd. This extension allows you to run mozmill tests, and get familiar with writing test cases. After this initial you will be looking for something more complex, try installing Mozmill, and the corresponding test suite so you can run tests from the command line. *If you are able to get this up and running, Congratulations.. this is how tests are run in our continuous integration environment*

How to Install

Install Mozmill Crowd and get familiar with running automated tests Mozmill Crowd

Advanced Install

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 - 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

The basic install process is well documented on : Mozilla Developer

Install the Mozmill Tests Get the tests out of the repository - Mozmill Tests

Team Presence (Documentation)

Infrastructure Investigation

Selenium Grid 2

Endurance Tests

New Members

All new members to the team can find all the details about getting setup. Details on what accounts, what mailing lists, etc can be found on the Here.