[英]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.