QA/Sync/Test Plan/grinder tests: Difference between revisions

Jump to navigation Jump to search
Line 29: Line 29:


=== Test scripts ===
=== Test scripts ===
The objective of these scripts will be to match our use of the sync api as closely as possible to that of the firefox client. The [https://wiki.mozilla.org/Services/Sync/Server/API/Storage/1.1 Sync API] is a fairly general storage solution - the behavior of the firefox client needs to be matched. We will try to do this with the following functions:
The objective of these scripts is to match our use of the sync api as closely as possible to that of the firefox client. The [https://wiki.mozilla.org/Services/Sync/Server/API/Storage/1.1 Sync API] is a fairly general storage solution - the behavior of the firefox client needs to be mimicked. A client object has been created as a mechanism to mimick the actions of a firefox client in grinder. The following functions are used to manipulate the test client to preform tasks a server normally recieves.
* Create Users
* Create User
* Sync (Adjustable size sync)
* Add Data - these functions simulate a user creating data
** Will contain data based on frequency of all 5 types of collections
** Tabs
*** Tabs
*** Tabs are a whole different system - they aren't stored in memory
**** Tabs are a whole different system - they aren't stored in memory
** Bookmarks
*** Bookmarks
** History
*** History
** Preferences
*** Preferences
** Passwords
*** Passwords
* Delete Data
* Empty Sync (I'm checking in without data)
* Sync - These functions simulate the client going to the sync server and performing the sync routine
* Mobile Sync (Takes data in chunks of 50, processes them, and then asks for more)
** Standard Sync
** Mobile Sync (Takes data in chunks of 50, processes them, and then asks for more)
* Reset Sync Command (Clears DB and creates new records)
* Reset Sync Command (Clears DB and creates new records)
* Change sync key
** Change sync key
* Dupes in history


New functions can be added as new services are rolled out.
 
New functions can be added as new services are rolled out. A lot of potential use cases will be able to be simulated by this system. For example a dupes test could be run by syncing the same data multiple times with serperate client objects.


=== Script use pattens ===
=== Script use pattens ===
89

edits

Navigation menu