[英]Is it possible to generate java test stub files from cucumber gherkin feature file?
[英]Test Framework - Cucumber with JSON instead of Gherkin Feature file
我有一個Test Automation Framework項目,在這里我必須使用JSON文件而不是與Cucumber和Java集成的Gherkin Feature文件。 Cucumber應該從JSON讀取測試用例,而不是從功能文件讀取。 我正在針對這種情況下的最佳方法進行一些研究。 請分享任何經驗,想法或信息平安。
那這個呢?
{
"Scenario": "Use Json in Cucumber",
"Tags": [ "@json", "@cucumber", "@alternative" ],
"Data":
{
"Given": "Something exists or is",
"When": "Something happens",
"Then": "Something changed"
}
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.