[英]Why does my Cucumber scenario that uses json_spec fail, and where is last_json defined?
[英]Access Cucumber feature variable in a step defintion with json_spec
我下载了json_spec
gem,并尝试访问存储在Cucumber功能文件中的变量。 从json_spec 自述文件中可以看出,您可以按以下方式存储变量; 我将JSON响应保留为“ USER_1”。 有什么方法可以访问此“ USER_1”变量以在我的步骤定义中使用?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.