Skip to main content

Build Status

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… USE AT YOUR OWN RISK!

Installation

Pre-requisites

  • Python >= 2.7 and virtualenv (Python 3 not yet supported)

Windows Users

  • ff-tool will work on Windows, but requires quite a bit of setup.

  • Also, installation behavior for the Firefox binary is different than for other OSes. In particular, ff-tool installs the Firefox binaries into a “_temp” directory for all OSes (except Windows) to avoid clobbering your working browser. Unfortunately, the Windows installer forces installation into C:\Program Files. Since both the release and Beta versions of Firefox install into the same place, you also run the risk of installing one over another.

  • Again, use at your own risk!

Windows: Installing Cygwin

  • Download and install: Cygwin

  • Right click on: c:\\cygwin64\cygwin.bat

  • Run as administrator or you will suffer.

  • A number of dependencies must also be installed including: gcc, make, curl, pycrypto, python2, python-dev, etc.

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:

$ ff
  • version: Developer Edition (aurora)

  • profile_name:

$ 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

Custom Browser Prefs

Firefox provides the ability for a user to change preferences in about:config. For testing and automation this can be cumbersome as it usually involves many small steps.

As alternative, ff-tool provides a means for loading these prefs from a root directory you specify via an environment variable.

Example:

$ export PREFS_ROOT_DIR = '../services-test'

Custom prefs must be stored in the following directory/file structure:

You must also include a prefs.ini file which specifies the environment(s) in which each pref set is used.

Example prefs.ini:

[DEFAULT]
pref_key = pref_value

[dev]
pref_key = pref_value

[stage]
pref_key = pref_value

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

Metadata

Release files for ff-tool 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ff-tool 0.1.1
File Size Uploaded
ff-tool-0.1.1.tar.gz 12.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ff-tool 0.1.1
File Interpreter ABI Platform
ff_tool-0.1.1-py2.7.egg Legacy Egg format - - Details

Total release size: 41.1 kB

Release files / ff-tool-0.1.1.tar.gz

Download URL ff-tool-0.1.1.tar.gz
Size 12.7 kB
Tags Source
SHA-256 checksum
How to use checksums
3b8e29bb0261f059e77aa4cce22cbf3c4beec744ecc923c2dadbab6db7b67238
BLAKE2b-256 checksum
How to use checksums
fa65ae49b1e08f7cbc25642b62b7d0d264cd3b6e05654c0ab60a6cbbed5f0b38
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / ff_tool-0.1.1-py2.7.egg

Download URL ff_tool-0.1.1-py2.7.egg
Size 28.4 kB
Tags Egg
SHA-256 checksum
How to use checksums
1bee13f91c62498c6c5a5964f7b82ae763ab717baabac6606a1cbc098075eab6
BLAKE2b-256 checksum
How to use checksums
03e2e5fcf2e48a48c6d21acf228fab10ff57b0bc3c5326b51448be99463a50c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page