Testing gratification in Firefox by Matt

We all need to test our applications (or reverse engineer other peoples' applications) with multiple user accounts – however this is often skipped because it can be a headache to deal with. Here are two 500mg tablets of testing relief.

Make use of disposable Gmail addresses

You may not know this but as the proud owner of jonandkate@gmail.com you are also the owner of jonandkate+8@gmail.com. In fact you can place anything you want after the plus sign and Gmail will treat it as an alias for your regular email address. The only exception is jonandkate+spam@gmail.com in which case it goes straight to your spam. It also does not pass go or collect $200.
You now have limitless (for the most part) email addresses to setup test user accounts. All email messages go to one place and you can setup filters based on which disposable address the email was sent to.

Open multiple instances of Firefox

This is going to requires use of the terminal but stay with me here. You are probably familiar with the idea of browser profiles. Each profile has separate bookmarks, cookies, add-on's preferences etc. Great when you don't want grandma seeing your ping pong paddle fetish sites. But I'll bet you didn't know that you can launch different profiles at the same time.

Now regardless of how the application you are using does authentication, you can be logged in as both Jay and Jane, at the same time. Here's how we do it.

First open Firefox as you would normally.

Next fire up terminal.

Paste in this command.

  1. /Applications/Firefox.app/Contents/MacOS/firefox-bin -no-remote -P dev &

Assuming you don't already have a profile called dev the Firefox profile manager will open so you can create one. You will see default which is the profile you have been using up until this point.

Click create profile and name it dev (or whatever makes you happy). Select the new profile and click Start Firefox. You should now have two Firefox icons in the tray completely separate of each other.

The next time you want to launch your second instance run the command above again. This time since the profile already exists you will skip the profile manager. If you want to get to the profile manager again substitute dev for a profile name that does not exist. You can run as many separate instances as you want using the above command provided that they each have a different profile.

One added benefit of this method is that any add-ons you install on the dev profile will not effect your default profile. If you are working with experimental (or just obnoxious) Add-ons you can install them on the dev instances to keep your regular browsing experience clean and uninterrupted.

One thing to note is that if you close the terminal window you ran the command above from all the dev instances of FireFox will close. Consider yourself warned.

3 Comments

  • Mark says:

    Pretty sweet, Matt. The perfect example of this was when we created a separate profile that would allow for dedicated testing of our add-on for Firefox.

    I've got one question though: the next step would be creating shortcuts (on the dock, desktop, in the Applications folder, etc) to quickly launch Firefox with a different profile. Do you know if that's possible? That would make development much faster and easier instead of executing a command via Terminal each time.

  • Matt (ZURB) says:

    You can setup automator scripts to launch the different profiles.

    1. Start Automator
    2. Utilities -> Run Shell Script
    3. Replace cat with /Applications/Firefox.app/Contents/MacOS/firefox-bin -no-remote -P dev &
    4. Save the script to a convenient place

    The only problem with this approach is that Automator does not quit until you close Firefox so you will have an extra item in your toolbar. If anyone knows know how to tell Automator that the script is finished let me know. I tried & and nohup to no avail.

  • Colin says:

    This guy seems to have a solution with AppleScript:

    http://weblogs.mozillazine.org/asa/archives/2008/08/shortcut_to_lau.html

Add your comment...

Required

Required, but not shared. Nerd's honor.

About the ZURBlog

The ZURBlog is where we discuss design interaction and strategy. We use design thinking to challenge businesses and designers to improve the products and services they create.

What's the ZURBword?

What's the ZURBword?

ZURBword.com is our thoughts on interaction design and strategy. What?

Photos on Flickr

  • 4414442457_f7273ee48b_s
  • 4415209236_3ee49cd530_s
  • 4414440971_1f5c640d96_s
  • 4414439321_8fde28bc5d_s
  • 4414438469_8311a56d16_s
  • 4415205332_38e0a25655_s
  • 4415204866_2e441bcb41_s
  • 4415203878_de626831de_s
  • 4415203204_dbda2d2052_s

Videos on YouTube

Bookmarks on Delicious

Wanna talk? Call us at (408) 341-0600.

Hmm, not a big talker. Email us to .

Still here? Great, we're hiring.

We need people with chops to join our quest
for world domination. Want a job, nerd?

What's the ZURBword?

ZURBword.com is our thoughts on interaction design and strategy. What?

Subscribe to ZURBnews

Get our monthly newsletter, ZURBnews.
Check out last month's edition »