executeReusable method
void
executeReusable(
- AFSingleScreenTests tests,
- AFScreenTestID bodyId, {
- String? description,
- String? disabled,
- 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);
}