User Services/Sync/Run TPS

From MozillaWiki
< User Services‎ | Sync
Revision as of 22:59, 20 March 2014 by Edwong (talk | contribs) (Created page with "'''You may be wondering what automated end to end tests we have to quickly test FxA+Sync. Here are step by step instructions.''' Reference Docs which services-central branch...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

You may be wondering what automated end to end tests we have to quickly test FxA+Sync. Here are step by step instructions.

Reference Docs which services-central branch is out of date, use gecko-dev on github as it’s a bit easier:

TPS, or Testing and Profiling tool for Sync, is a multi-profile test automation framework for Firefox Sync.

https://developer.mozilla.org/en-US/docs/TPS

Run this:

cd /PATH/DEV_ROOT/
** install git if you don’t have it
git clone https://github.com/mozilla/gecko-dev.git
cd gecko-dev/testing/tps
./INSTALL.sh inst
source inst/bin/activate

Create an fxa account via: https://accounts.firefox.com verify the account by click on email recieved add the username password to:

inst/lib/python2.7/site-packages/tps-0.5-pyPYTHON_VERSION.egg/tps/config.json

Then run <e.g. on mac>:

runtps --testfile=/PATH/DEV_ROOT/gecko_dev/services/sync/tests/tps/test_sync.js  --binary=/Applications/FirefoxNightly.app/Contents/MacOS/firefox

to run all tests use this file:

--testfile=/PATH/DEV_ROOT/gecko_dev/services/sync/tests/tps/all_test.json

Note: don’t change password as it will break the account bug https://bugzilla.mozilla.org/show_bug.cgi?id=982591

subscribe to reports:

https://mail.mozilla.org/listinfo/tps-reports