Skip to content

TestScript OncePerType

bill edited this page Apr 9, 2020 · 3 revisions

Testscript Extension

Conditions

  • used inside assert
  • assert.sourceId references a Bundle
  • assert.extension[oncePerType].value is the name of a Resource type (DocumentReference for example)

Processing

Assert is evaluate against each Resource in the Bundle of the specified type. The first matching Resource that does not pass the test will return failure and not check the later Resources. This is because TestReport is expected to have the same structure as TestScript so only a single error can be returned.