User Services/Sync/Run TPS: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
No edit summary
(Remove outdated info and point to the docs in the source tree.)
 
Line 1: Line 1:
'''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.
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
Documentation on how to setup TPS can be found in the [https://searchfox.org/mozilla-central/source/testing/tps/README Firefox Source Tree].
 
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

Latest revision as of 04:25, 22 April 2022

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

Documentation on how to setup TPS can be found in the Firefox Source Tree.