Firefox User Testing Helpers
Steps to manually generate a test build .zip (Windows):
- Generate a try push with your changes. Here are some examples.
- Find the
target.zipartifact for the Windows opt build by clicking on a "B" and looking at the "Job Details" tab of the TreeHerder footer pane. You will see "artifact uploaded: target.zip" with the link.- A 32-bit version is recommended if there is a chance that a participant is still running a 32-bit Windows version.
- Unzip the build inside the directory where you clone this repository so it creates the
firefoxdirectory inside of it. - Copy
_DOUBLE_CLICK_TO_RUN_FIREFOX_TEST.batand thetmp-profilefolder into the build - Re-zip the build folder
Now when someone runs _DOUBLE_CLICK_TO_RUN_FIREFOX_TEST.bat it should start a copy of Firefox with the clean profile alongside any other running copy.
Create a self-extracting .exe
Asking users to download the zip and then to click the .bat file can be confusing and error prone. Here's a technique for creating a self-extracting zip file that makes it easier. Instructions are adapted from this stackoverflow answer.
- Complete steps 1 though 3 above.
- Install 7-Zip.
- Double-click
package-firefox.batto createfirefox.7z. Repeat this whenever you changetmp-profile\orfirefox\. - Download and extract this package: http://www.7-zip.org/a/7z920_extra.7z There are newer versions which improve compatibility on modern Windows versions.
- Inside that package, there’s a file called “7zS.sfx”. Move it to this directory.
- Double-click to run one of the
build-installer-*.batfiles depending on how you'd like Firefox to run.build-installer-tmp-profile.bat— Create a clean temporary profile using tmp-profile as a template.build-installer-migrate-data.bat— Same as above but show the migrator dialog on startup to allow importing profile data from another browser or existing Firefox profile. See supported migration data types per browser.
You get a self-extracting archive file called firefox-test.exe, that will automatically run Firefox. Note that since this executable isn't signed, users who download it from the Internet will get additional warnings from Windows when it's run. You won't see this warnings when running it from the computer you just created it on.