Labs/Test Pilot/Experiment Tutorial: Difference between revisions

Jump to navigation Jump to search
Line 12: Line 12:
# Delete the old cached index file which you can find in (your profile directory)/TestPilotExperimentFiles/index.json
# Delete the old cached index file which you can find in (your profile directory)/TestPilotExperimentFiles/index.json


Restart Firefox and open [[chrome://testpilot/content/debug.html]], the test pilot debug page.
Restart Firefox and open [chrome://testpilot/content/debug.html], the test pilot debug page.


At the bottom of the page (after the large text area) is a drop-down menu listing code module names:  select "example-study.js" and click "Load Ye Code".
At the bottom of the page (after the large text area) is a drop-down menu listing code module names:  select "example-study.js" and click "Load Ye Code".
Line 18: Line 18:
The example study code appears in the large text area.  You can modify it here but I recommend copying it to an external code editor and modifying it there.
The example study code appears in the large text area.  You can modify it here but I recommend copying it to an external code editor and modifying it there.


You can also get the code from Hg.  It's part of the test pilot experiment Hg repository, which is separate from the extension code Hg repo.  The experiment repo is at [[http://hg.mozilla.org/labs/testpilotweb]].
You can also get the code from Hg.  It's part of the test pilot experiment Hg repository, which is separate from the extension code Hg repo.  The experiment repo is at [http://hg.mozilla.org/labs/testpilotweb].


and the example experiment code is at  
and the example experiment code is at  


  testpilotweb/testcases/example/example-study.js
  testpilotweb/testcases/example/example-study.js
But you might as well get on index-dev.json and get used to using the debug page, since we'll be using it in the next step to test our modifications.


= How to modify the example study =
= How to modify the example study =
1,007

edits

Navigation menu