Confirmed users
208
edits
(→Server Setup: Add branch info) |
(Updated app usage ping testing for 2.2) |
||
| Line 1: | Line 1: | ||
= Metrics Testing for FxOS 2.2 = | |||
== Test Server Setup == | |||
# The easiest way (without coding) to create a test server is to sign up an account at https://www.runscope.com | |||
# After registration, you will be redirect to the dashboard. Click the "Captures" at the left-hand side menu. | |||
# You'll see something like "To capture a request, change the URL to https://xxxxxxxxxxxx.runscope.net", remember that URL, which will be used as your mock metrics server URL. | |||
== App Usage Ping == | |||
# Clone the gaia repository: <code>git clone https://github.com/mozilla-b2g/gaia.git</code> | |||
# Modify the following files in gaia: | |||
<ol> | |||
<li> | |||
<code>Makefile</code>: <br/> | |||
<code> | |||
-FTU_PING_URL?=https://fxos.telemetry.mozilla.org/submit/telemetry<br/> | |||
+FTU_PING_URL?=http://xxxxxxxxxxxx.runscope.net/submit/telemetry | |||
</code> | |||
</li> | |||
<li> | |||
<code>apps/system/js/app_usage_metrics.js</code>: <br/> | |||
<code> | |||
- AUM.DEBUG = false;<br/> | |||
+ AUM.DEBUG = true; //enable debug message in adb logcat <br/> | |||
<br/> | |||
- AUM.REPORT_URL = 'https://fxos.telemetry.mozilla.org/submit/telemetry';<br/> | |||
+ AUM.REPORT_URL = 'http://xxxxxxxxxxxx.runscope.net/submit/telemetry';<br/> | |||
<br/> | |||
- AUM.REPORT_INTERVAL = 14 * 24 * 60 * 60 * 1000; // 2 weeks<br/> | |||
+ AUM.REPORT_INTERVAL = 60 * 1000; // 60 seconds<br/> | |||
<br/> | |||
- AUM.RETRY_INTERVAL = 60 * 60 * 1000; // 1 hour<br/> | |||
+ AUM.RETRY_INTERVAL = 15 * 1000; // 15 second<br/> | |||
</code> | |||
</li> | |||
</ol> | |||
= Metrics Testing for FxOS 2.1 and before = | |||
== FTU Ping == | == FTU Ping == | ||