FHIR Chat · Test setup - transaction or TestScript · testing

Stream: testing

Topic: Test setup - transaction or TestScript


view this post on Zulip Jose Costa Teixeira (Jul 06 2020 at 05:18):

As part of our testing, we want to have a way to set the system to a known status - delete some resources, create others...
The way I see it, we have 2 ways of doing it:

  1. As a Transaction
  2. As part of the TestScript itself
    Is there a favoured /preferred approach?

view this post on Zulip Richard Ettema (Jul 06 2020 at 13:34):

The TestScript.setup can execute any FHIR operation(s). If you have a small number of resources to initialize (create, delete, update), I find individual operations work well. Once you get beyond 3+, I find executing a batch/transaction in the TestScript.setup is more efficient.


Last updated: Apr 12 2022 at 19:14 UTC