我不确定这是不是故意的,但我对这种行为感到困惑。当我有以下场景大纲时:ScenarioOutline:outline1GivenurlAndqueryparametersWhenmethodThenstatusisExamples:|method|endpoint|query_params|status||GET|/endpoint1|?a=1&b=1|200||GET|/endpoint1|?a=1&b=1&c=3|200|我看到生成了以下代码段。funcFeatureContext(s*godog.Suite){s.Step(^methodGET$,methodGET)s.Step
在过去的2周里,我一直在研究GODOG,这是一个类似于golang的bdd的cucumber。我发现它非常有趣,最近我花更多时间为我的RESTAPI编写测试。最近,我一直在努力通过我的一项考试。这一个包含一个JSON结构,该结构本身内部有子JSON。此外,我正在按照以下链接找到的确切示例进行测试:https://github.com/DATA-DOG/godog/tree/master/examples/api我有一个像这样的结构:typeStatusstruct{ErrorCodestring`json:"ERROR_CODE"`ErrorTextstring`json:"ERROR
我在godog中定义了一个场景:UserstartsaworkspacewithstackGivenMinishifthasstate"Running"WhenusertriggersworkspacecreationforstackThenworkspaceshouldbestartingWhenuserlooksattheworkspacestatusThentheworkspacestatusshouldberunningandcreationsuccessful我想知道是否可以将此场景重用于多个堆栈?理想情况下,我会为每个堆栈重用这个场景,如果那个堆栈失败,那么我会失败那个场景
我在godog中定义了一个场景:UserstartsaworkspacewithstackGivenMinishifthasstate"Running"WhenusertriggersworkspacecreationforstackThenworkspaceshouldbestartingWhenuserlooksattheworkspacestatusThentheworkspacestatusshouldberunningandcreationsuccessful我想知道是否可以将此场景重用于多个堆栈?理想情况下,我会为每个堆栈重用这个场景,如果那个堆栈失败,那么我会失败那个场景