1
edit
Changes
→Introduction
[[Firefox_Performance_Testing_:_A_Python_framework_for_Windows | Back to Firefox Performance Testing Project]]
=Introduction=
This documentation is the revised version of Annie Sullivan's [[Readme.txt]] for the Firefox Performance Testing.
Unfortunately, the Firefox Performance Testing is only catered to Windows users at this time.
=Hardware Requirements=
*Win32 system
=Framework Prerequisites=
(List the sequence and provide sh script to automate this)
You'll need to download these before running performance testing:
* [http://www.python.org/ftp/python/2.4/python-2.4.msi Python 2.4]
=Framework Configuration=
==Configure the environment==
#Make sure the [[Firefox_Performance_Testing_:_A_Python_framework_for_Windows_Documentation#Framework_Prerequisites | prerequisites]] are installed.(sh script will automate this part - but get user to check)
#Make a directory for the framework:<pre>$mkdir C:\mozilla</pre>
#Download entire framework [http://www.yorku.ca/abel/liz/mozilla/Win32PerfTesting_v4.zip Performance Testing Framework] (directories and all subdirectories) and put it in '''C:\mozilla'''(one of two options 1.put reports dir in the framework 2.check if it exists and prompt user if he/she wants it created)
==Configure the paths (paths.py)==
(Lots of work in this area.. paths.py is unclear, should specify that it can be modified and that these are just defaults.. and the paths are misleading because people think that they are commands for dos)
*This is the path to the directory that the generated reports will go into
<pre>REPORTS_DIR = r'C:\mozilla\testing\performance\win32\extension_perf_reports'</pre>
*Create '''extension_perf_reports''' dir in '''C:\mozilla\testing\performance\win32\'''
OR
*Check that '''startup_test.html''' is in '''C:\mozilla\testing\performance\win32\startup_test'''
*'''Note: Don't change the local file url to a file path'''
===TP_URL===
*Check that '''cycler.html''' is in '''C:\mozilla\testing\performance\win32\page_load_test'''
*'''Note: Don't change the local file url to a file path'''
=Config file=
==Config fileinfo== (refer to Exended Progress Chart for yaml details - a few things have to be highlighted and clarified)
<pre>
# Filename will be appended to the timestamp in the report filename.
# Extensions to install in test (use "extensions: {}" for none)
extensions:
# Make sure that the path is directed to the desired location of the extension
# Need quotes around guid because of curly braces
"{12345678-1234-1234-1234-abcd12345678}" : c:\path\to\unzipped\xpi
</pre>
==Instructions==
1. Verify that the '''firefox''' path is pointing to the right Firefox instance on your system.
* You will hit a zero division error and some other errors if you don't point it to the right path
==Overview of Structure==
*NOTE: Content in '''base_profile''' dir may vary
The following is written by Annie Sullivan (annie.sullivan@gmail.com):
==base_profile/==