我定义了以下内容:Scenario
Scenario: test
When test starts
Then check data with '{"age":"18","gender":"male"}'
然后尝试传递到以下步骤:{"age":"18","gender":"male"}
func FeatureContext(s *godog.ScenarioContext) {
s.Step(`^check data with "([^']*)"$`, checkDataWith)
}
func checkDataWith(data string) error {
return godog.ErrPending
}
它说步骤没有推动,看起来没有正确传递,如何传递参数喜欢到步骤?{"age":"18","gender":"male"}{"age":"18","gender":"male"}
凤凰求蛊
相关分类