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

Line 1: Line 1:
== Overview ==
== Overview ==


The test files used by CrossWeave are all written in JSON; these drive the test.  There is no scripting required to create test cases.
The test files used by CrossWeave are all written in a YAML-like syntax; these drive the test.  There is no scripting required to create test cases.


The general format of a CrossWeave test is as follows, shown without the JSON formatting characters:
The general format of a CrossWeave test is as follows:


  setup
  setup:
   profiles: [profile1, profile2, ..., profile-n]
   profiles:  
    * profile1
    * profile2
    * profile-n
  asset-list-1
  asset-list-1
  ...
  ...
Line 12: Line 15:
  phase-1:
  phase-1:
   profile: profile1
   profile: profile1
   actions: [action1, action2, ..., action-n]
   actions:
    * action1
    * action2
    * action-n
  phase-2:
  phase-2:
   profile: profile2
   profile: profile2
   actions: [action1, action2, ..., action-n]
   actions:
    * action1
    * action2
    * action-n
  ...
  ...
  phase-n:
  phase-n:
   profile: profile1
   profile: profile2
   actions: [action1, action2, ..., action-n]
   actions:
    * action1
    * action2
    * action-n


== The Setup Block ==
== The Setup Block ==
Confirmed users
1,905

edits