Labs/Test Pilot/ExperimentAPI: Difference between revisions

Line 7: Line 7:
== index.json ==
== index.json ==


TODO
This is a simple directory file that specifies paths to experiment and survey files.  To add a new experiment or survey, add a new entry to index.json.
 
All the Test Pilot clients, starting with version 0.3, check index.json once per day, and if they see something new listed there, they download and run it.
 
The top level of the JSON has a property called experiments, which is an array of objects with names and filenames:
 
 
{"experiments": [{"name": "Tab Open/Close Study",
                  "filename": "tab-open-close/tabs_experiment.js"},
                {"name": "Survey For New Test Pilots",
                  "filename": "new_pilot_survey.js"}]}


== Version control for experiment/survey code ==
== Version control for experiment/survey code ==
1,007

edits