Payload constructor

Payload({
  1. required List<StepJson> setup,
  2. required List<StepJson> test,
  3. required List<StepJson> teardown,
  4. required List<Map<String, Object?>> attachments,
  5. required String errorMessage,
  6. required String comment,
  7. bool hasFailedStep = false,
  8. bool hasStepError = false,
})

Builds a payload snapshot. Runners use snapshotPayload.

Implementation

Payload({
  required this.setup,
  required this.test,
  required this.teardown,
  required this.attachments,
  required this.errorMessage,
  required this.comment,
  this.hasFailedStep = false,
  this.hasStepError = false,
});