118
edits
No edit summary |
No edit summary |
||
Line 15: | Line 15: | ||
== Adding a new experiment == | == Adding a new experiment == | ||
=== Client === | |||
=== Server side === | |||
* Go to https://settings-writer.prod.mozaws.net/v1/admin (You need to be on the Mozilla network, either in an office or via VPN) | |||
* Login with your LDAP credentials (Your account needs to be whitelisted) | |||
* Follow the Web UI to create or modify an experiment. See below for an explanation of the fields. | |||
* Currently saved changes go live immediately! The Kinto team is setting up a process for a mandatory review step. | |||
=== Client side === | |||
* Add your experiment name to [https://dxr.mozilla.org/mozilla-central/source/mobile/android/base/java/org/mozilla/gecko/Experiments.java Experiments.java] | |||
* Use [https://dxr.mozilla.org/mozilla-central/source/mobile/android/base/java/org/mozilla/gecko/switchboard/SwitchBoard.java SwitchBoard.isInExperiment()] to check whether the client is part of your experiment. | |||
* Use SwitchBoard.getExperimentValuesFromJson() if you have configured additional metadata for your experiment. | |||
=== Testing === | |||
* There's an add-on that you can use for overriding the local switchboard configuration: [[Addon Download|https://addons.mozilla.org/en-US/android/addon/switchboard-experiments/] [https://github.com/pocmo/Addon-Switchboard-Experiments Source code]. This works great for switching experiments on/off - but doesn't let you configure additional metadata if required by the experiment. |
edits