读取外部数据表中的数据 - 茄子 [英] Read data from External data sheet - eggPlant
本文介绍了读取外部数据表中的数据 - 茄子的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有办法从如Excel,文本文件等茄子外部数据表中读取数据?
在运行各种设置的输入参数相同的脚本,这将证明是硬编码的值对我有用,而不是..
-Siva
解决方案
1。在Excel工作表中输入数据,并保存为一个CSV文件。2件code的:与海图重复=文件的每一行D:\\ TestData.csv
登录海图的第1项
重复结束
Is there a way to read data from an external data sheet like excel, Text file etc. in eggPlant?
When running the same script for various set of Input parameters this would prove useful for me instead of hardcoding the values..
-Siva
解决方案
1. Enter the data in the excel sheet and save it as a CSV file.
2. Piece of code:
repeat with theData= each line of file "D:\TestData.csv"
log item 1 of theData
end repeat
这篇关于读取外部数据表中的数据 - 茄子的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文