getBehaviorDrivenDescription method

String getBehaviorDrivenDescription(
  1. TestController tester
)

Gets the most appropriate BDD string based on the values set on the step.

Implementation

String getBehaviorDrivenDescription(TestController tester) {
  var result = behaviorDrivenDescriptions[0];

  result = result.replaceAll('{{stepId}}', stepId);
  result = result.replaceAll('{{values}}', json.encode(toJson()));

  return result;
}