Confirmed users
372
edits
Line 5: | Line 5: | ||
For more information about Mitmproxy installation, etc. see the [https://mitmproxy.org/ documentation]. Mitmproxy is an open source tool and the source is [https://github.com/mitmproxy/mitmproxy found here on github]. | For more information about Mitmproxy installation, etc. see the [https://mitmproxy.org/ documentation]. Mitmproxy is an open source tool and the source is [https://github.com/mitmproxy/mitmproxy found here on github]. | ||
==== Test Page Recordings ==== | |||
Test pages used for Raptor pageload tests (i.e. raptor-tp6, raptor-gdocs) are mitmproxy recordings that are played back during the test (and ultimately loaded in Firefox via the local proxy). Each test page is a separate mitmproxy recording (*.mp) file, and all the page recordings for each suite are contained in a single zip for that suite (i.e. mitmproxy-recordings-raptor-tp6.zip) on tooltool. | |||
When the Raptor pageload test is run, the mitmproxy recording archive for use during the test is automatically downloaded from tooltool. | |||
==== Custom Playback Script ==== | |||
When the mitmproxy recording is played back in production, we use a [https://searchfox.org/mozilla-central/rev/39cb1e96cf97713c444c5a0404d4f84627aee85d/testing/raptor/raptor/playback/alternate-server-replay.py custom playback script]. The script will return 404s for unknown URLs instead of dropping the entire connection. | |||
This is an example of the command line used in production (Linux x64) to start mitmproxy and playback one of the recording archives, using the custom playback script: | |||
/home/cltbld/tasks/task_1541153570/testing/raptor/mitmdump -k -q -s /home/cltbld/tasks/task_1541153570/build/tests/raptor/raptor/playback/alternate-server-replay.py /home/cltbld/tasks/task_1541153570/testing/raptor/facebook.mp | |||
== Recording a Mitmproxy Test Page == | == Recording a Mitmproxy Test Page == |