getBehaviorDrivenDescription method
Gets the most appropriate BDD string based on the values set on the step.
Implementation
@override
String getBehaviorDrivenDescription(TestController tester) {
var result = resultVariableName == null
? behaviorDrivenDescriptions[0]
: behaviorDrivenDescriptions[1];
result = result.replaceAll(
'{{resultVariableName}}',
resultVariableName ?? 'null',
);
result = result.replaceAll('{{variableName}}', variableName);
return result;
}