Parse begin and end scenario and step matches.