我正在尝试将测试结果写入 ReadyAPI 中的时间戳文件。我有一个 DataGen,它在第一步中创建时间戳,然后在 DataSink 中,我在输出文件的文件名中使用该时间戳。我听说 DataSinks 中允许进行属性扩展,但没有创建我的文件。
我是否需要先初始化和创建文件(Groovy 脚本)?
DataSink 中的输出文件配置: C:/Users/xxxxxx/Desktop/Projects/xxx/TestResults/OutFile_${DataGen#time}.xlsx
测试步骤
更新:
上次运行的时间戳正在数据接收器中使用。因此,假设这些是运行:
运行 1:上午 8:00:00 -> 时间戳值?
运行 2:上午 8:15:00 -> 时间戳值8:00:00 AM
运行 3:上午 8:30:00 -> 时间戳值 8:15:00 AM
似乎数据接收器留下了该属性的最后一个缓存版本,并且在新运行开始之前没有得到更新