executeReusable method

void executeReusable(
  1. AFSingleScreenTests tests,
  2. AFScreenTestID bodyId, {
  3. String? description,
  4. String? disabled,
  5. required List<Object?> params,
})

Implementation

void executeReusable(AFSingleScreenTests tests, AFScreenTestID bodyId, {
  String? description,
  String? disabled,
  required List<Object?> params,
}) {
  final body = tests.findReusable(bodyId);
  if(body == null) {
    throw AFException("The reusable test $bodyId must be defined using tests.defineReusable");
  }
  final bodyTest = AFScreenTestBody(id: bodyId, description: description, disabled: disabled, body: body.body, bodyReusable: body, params: params);
  addReusable(bodyTest);
}