INACTIVE - http://mzl.la/ghe-archive - Python CLI tool for downloading desktop Firefox version, managing profiles and test prefs
Перейти к файлу
Peter deHaan cfd2a26aee Address some PR feedback, update README 2016-03-11 15:33:22 -08:00
configs Address some PR feedback, update README 2016-03-11 15:33:22 -08:00
fftool Address some PR feedback, update README 2016-03-11 15:33:22 -08:00
.gitignore fftool, now with 100% more profile creation 2016-03-11 13:54:29 -08:00
.travis.yml Add basic packaging (WIP). 2016-02-19 11:54:36 -08:00
CHANGELOG.md Add basic packaging (WIP). 2016-02-19 11:54:36 -08:00
LICENSE Initial commit 2016-02-19 09:45:23 -08:00
MANIFEST.ini Add basic packaging (WIP). 2016-02-19 11:54:36 -08:00
Makefile Combine command classes into cmd.py, pep8 tweaks, README. 2016-02-20 22:03:34 -08:00
README.md Address some PR feedback, update README 2016-03-11 15:33:22 -08:00
requirements.txt Address some PR feedback, update README 2016-03-11 15:33:22 -08:00
setup.py Combine command classes into cmd.py, pep8 tweaks, README. 2016-02-20 22:03:34 -08:00
tox.ini Add basic packaging (WIP). 2016-02-19 11:54:36 -08:00

README.md

ff-tool

Summary

ff-tool is a Python CLI tool we've created to facilitate browser testing of cloud services. It is largely a convenience wrapper we've written around these amazing tools/libraries (see note below):

Our typical use case is launching various Firefox browser versions with a fresh profile and loading custom preferences. This tool enables us to do this quickly with a 1-liner from the CLI.

Features

  1. DownloadFirefox desktop versions (Nightly, Developer Edition, Beta, Release)
  2. Manage profiles
  3. Load test preferences

Notes

If you plan on creating a tool of your own, please import the above lib directly in your script(s). This tool was designed for convenience of our team for testing Cloud Services and not intended to be used as a library.

Profiles are stored in a temp directory by default which can be overridden. Use caution if you specify your own profile directory as profile cleanup functions can wipe out all profiles in your specified directory.

‼️ NOTE: This tool is work in progress... DO NOT USE ‼️

Installation

Pre-requisites

NOTE: ff-tool requires you have Python and virtualenv installed

Build

$ make build
$ source ./venv/bin/activate

Cleanup

$ deactivate
$ make clean

Run

When not specified, ff will use defaults

Help

$ ff -h

Launch browser, clean profile

  • version: Nightly
  • profile_name: <random>
$ ff
  • version: Developer Edition (aurora)
  • profile_name: <random>
$ ff -c aurora

Launch browser, clean profile, specify profile name

  • version: Nightly
  • profile_name: my_cool_profile1

NOTE: If the specified profile exists, we use it, if not we create a new one with that name.

$ ff -p my_cool_profile1

Cloud Services (only)

Launch browser, clean profile, specify services-specific options...

  • version: Beta
  • profile_name: my_cool_profile1
  • product: loop-server
  • environment: stage
  • test-type: e2e-test

NOTE: If the specified profile exists, we use it, if not we create a new one with that name.

$ ff -c beta -p my_cool_profile1 -a loop-server -e stage -t e2e-test

Download all browsers, but don't create a profile or launch any browsers...

NOTE: This is useful for our daily refresh task where we make sure we have the latest browsers installed.

  • version: all
  • profile_name: none
$ ff -c ALL --no-profile --no-launch