Open main menu

CDOT Wiki β

Changes

Framework Configuration
OR
*Set '''REPORT_DIR ''' path to a directory where you want the reports to go into. Make sure that directory is created.
===INIT_URL===
*Path The path to the file url to load when initializing a new profile<pre>INIT_URL = 'file:///c:/mozilla/testing/performance/win32/initialize.html'</pre>
*Check that '''initialize.html''' is in '''C:\mozilla\testing\performance\win32\'''
<pre>INIT_URL = 'file:///c:/mozilla/testing/performance/win32/initialize.html'</pre>
*'''Note: Don't change the local file url to a file path'''
===TS_URL===
*The path to the file url to load for startup test (Ts)
<pre>TS_URL = 'file:///c:/mozilla/testing/performance/win32/startup_test/startup_test.html?begin='</pre>
*Check that '''startup_test.html''' is in '''C:\mozilla\testing\performance\win32\startup_test'''
<pre>TS_URL = 'file:///c:/mozilla/testing/performance/win32/startup_test/startup_test.html?begin='</pre>
*'''Note: Don't change the local file url to a file path'''
===TP_URL===
*The path to the file url to load for page load test (Tp) <pre>TP_URL = 'file:///c:/mozilla/testing/performance/win32/page_load_test/cycler.html'</pre>
*Check that '''cycler.html''' is in '''C:\mozilla\testing\performance\win32\page_load_test'''
<pre>TP_URL = 'file:///c:/mozilla/testing/performance/win32/page_load_test/cycler.html'</pre>
*'''Note: Don't change the local file url to a file path'''
==Config file==
In '''C:\mozilla\testing\performance\win32\''', create a YAML config file (config.yaml) with info about the profiles you want to test. Copy , paste and paste '''modify''' the following into config.yaml:
<pre>
# Filename will be appended to the timestamp in the report filename.
</pre>
*Note'''Instructions:'''** # Check that your firefox path is right** Preferences and extensions can be left as none# If you don't have preferences to set:***use "change to: <pre>preferences : {}" for no prefs</pre>#If you don't have extensions to install in test:***use "change to: <pre>extensions: {}" for none</pre>**#filename and title can be anything 5. Run '''run_tests.py''' with the name of your config file as an argument in '''c:\mozilla\testing\performance\win32\''': <pre>$run_tests.py config.yaml</pre>
5. Run '''run_tests.py''' with the name of your config file as an argument: <pre>$run_tests.py config.yaml</pre>*You can use a space-separated list of config files, to generate a report of startup and page load times. *The report will be placed in the '''REPORTS_DIR ''' directory you specified in '''paths.py'''.
=Directory Structure of Framework=
1
edit