通过Cucumber中的CSV文件使用剩余数据 [英] Using rest data through CSV file in Cucumber
本文介绍了通过Cucumber中的CSV文件使用剩余数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想通过CSV文件而不是在黄瓜中使用功能文件来上传测试数据。有什么方法可以将CSV文件上传到功能文件中以进行测试数据吗?
I want to upload test data through a CSV file instead of using a feature file in cucumber. Is there any way to upload CSV in feature file for test data?
推荐答案
在Cucumber中无法用csv文件替换功能文件。您需要从步骤中读取csv文件。
There is no way to replace a feature file with a csv file in Cucumber. You need to read the csv file from your steps.
如果您使用Java,则Apache POI可能是一个选择。
If you are on Java, Apache POI may one option.
这篇关于通过Cucumber中的CSV文件使用剩余数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文