【发布时间】:2012-10-29 10:20:05
【问题描述】:
代码:
val someVariableIWantToSave //I do not know what to do here
When("""^this request is sent to the XYZ service:$"""){ (requestData:DataTable) =>
//// we might want to do somethign else with Datatable in the mapping of the feature, nothing yet
var someVariableIWantToSave = requestData.asMaps()
}
我的意思是 asMaps 方法返回一个 List[Map[String,String]] 类型,我想将它保存到 someVariableIWantToSave val 以便我可以在其他步骤中使用它,但我不确定将它初始化为什么如何在没有大量代码噪音的情况下正确映射它。
【问题讨论】:
标签: scala cucumber cucumber-jvm