我想通过 CSV 文件上传测试数据,而不是在 cucumber 中使用功能文件.有没有办法在功能文件中上传 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.