getBehaviorDrivenDescription method
Gets the most appropriate BDD string based on the values set on the step.
Implementation
@override
String getBehaviorDrivenDescription(TestController tester) {
var result = behaviorDrivenDescriptions[0];
if (connected.contains('{{')) {
result = result.replaceAll('{{connected}}', connected);
} else {
result = result.replaceAll(
'{{connected}}',
JsonClass.parseBool(connected) == true ? 'online' : 'offline',
);
}
return result;
}