Auto-tools/Projects/CrossWeave/Test Format: Difference between revisions

Jump to navigation Jump to search
Line 76: Line 76:
Let's look at a simple phase block:
Let's look at a simple phase block:


  "phase1": {
phase1:
    "profile": "profile1",
  profile: profile1
    "actions": [
  actions:
      { "add": { "bookmarks": "bookmark-list-1" },
    * add:
      { "sync": "all", "wipe-server": true }
        bookmarks: bookmark-list-1
    ]
    * sync: all
  },
      wipe-server: true


This will cause CrossWeave to launch Firefox with the profile '''profile1''', add all the bookmarks specified in '''bookmark-list-1''', then do a full sync to Weave with the '''wipe-server''' setting, which causes any existing data for the Weave account being used to be wiped, before data from the local client is synced to it.
This will cause CrossWeave to launch Firefox with the profile '''profile1''', add all the bookmarks specified in '''bookmark-list-1''', then do a full sync to Weave with the '''wipe-server''' setting, which causes any existing data for the Weave account being used to be wiped, before data from the local client is synced to it.
Line 88: Line 88:
This should have the effect of syncing all the bookmarks we just added to our Weave account.  We could test this using a second phase:
This should have the effect of syncing all the bookmarks we just added to our Weave account.  We could test this using a second phase:


  "phase2": {
phase2:
    "profile": "profileGesundheit",
  profile: profile2
    "actions": [
  actions:
      { "sync": "all" },
    * sync: all
      { "verify": { "bookmarks": "bookmark-list-1" }
    * verify:
    ]
        bookmarks: bookmark-list-1
  },


This will cause CrossWeave to launch Firefox with a different profile, which knows nothing about the bookmarks we added to '''profile1'''.  It syncs with Weave, which should pull all of our bookmarks to the local client.  It then verifies that all the bookmarks in '''bookmark-list-1''' are indeed present.
This will cause CrossWeave to launch Firefox with a different profile, which knows nothing about the bookmarks we added to '''profile1'''.  It syncs with Weave, which should pull all of our bookmarks to the local client.  It then verifies that all the bookmarks in '''bookmark-list-1''' are indeed present.
Confirmed users
1,905

edits

Navigation menu