我是茄子功能的新手。没有找到任何使用茄子功能更新 csv 的参考。
参考:http ://docs.testplant.com/ePF/using/epf-accessing-data-cell-by-name.htm
我是茄子功能的新手。没有找到任何使用茄子功能更新 csv 的参考。
参考:http ://docs.testplant.com/ePF/using/epf-accessing-data-cell-by-name.htm
您可以像这样读入和读出文件,编辑 CSV 与其他文本文件相同。
要将文件读入变量:
put file "/etc/passwd" into passwordInfo
要将变量写入文件:
put "0,0,0,0" into file "/tmp/testing/counters"
我要做的是读取您的 CSV 并复制到一个新变量,然后输出它。移动到文件中的特定行有非常有用的语法。例如,如果您想增加文件“counters”第一行的第二列,您可以使用:将 1 添加到文件“/tmp/testing/counters”的第 1 行的项目 2
所有这些以及更多内容都在茄子网站上提供的“文件和文件夹交互”中。