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

no edit summary
No edit summary
Line 128: Line 128:
Combining the test case blocks above into one file, we now have a complete test case:
Combining the test case blocks above into one file, we now have a complete test case:


  {
setup:
    "setup": {
  profiles:
      "profiles": ["profile1", "profileGesundheit"]
    * profile1
    },
    * profile2
    "bookmark-list-1": {
bookmark-list-1:
      "menu": [
  menu:
        { "uri": "http://www.apple.com/iphone/", "title": "iPhone" },
    * uri: http://www.yahoo.com
        { "uri": "http://bugzilla.mozilla.org/show_bug.cgi?id=%s", "title": "Bugzilla", "keyword": "bugzilla" },
      title: testing Yahoo
        { "separator": true },
    * uri: http://www.cnn.com
        { "uri": "http://www.mozilla.com" }
      description: This is a description of the site a at www.cnn.com
      ]
    * seperator: true
    },
    * livemark: Livemark1
    "phase1": {
      feedUri: http://rss.wunderground.com/blog/JeffMasters/rss.xml
      "profile": "profile1",
      siteUri: http://www.wunderground.com/blog/JeffMasters/show.html
      "actions": [
phase1:
        { "add": { "bookmarks": "bookmark-list-1" },
  profile: profile1
        { "sync": "all", "wipe-server": true }
  actions:
      ]
    * add:
    },
        bookmarks: bookmark-list-1
    "phase2": {
    * sync: all
      "profile": "profileGesundheit",
      wipe-server: true
      "actions": [
phase2:
        { "sync": "all" },
  profile: profile2
        { "verify": { "bookmarks": "bookmark-list-1" }
  actions:
      ]
    * sync: all
    }
    * verify:
  }
        bookmarks: bookmark-list-1
 
The test file must be valid JSON; if you get errors from CrossWeave about JSON decoding, you can copy and paste your test into http://jsonlint.com, which can be helpful for finding JSON errors.
Confirmed users
1,905

edits