fix(项目设置): 修复场景引用文件库的CSV时因为路径不对获取不到文件的问题

--bug=1016919 --user=宋天阳 【接口测试】场景变量关联第三方仓库csv文件,执行场景报错
https://www.tapd.cn/55049933/s/1245754
This commit is contained in:
song-tianyang 2022-09-19 18:34:55 +08:00 committed by 建国
parent c0e79b29ba
commit 7f26b44f0e
1 changed files with 1 additions and 1 deletions

View File

@ -400,7 +400,7 @@ public class FileUtils {
file.setStorage(StorageConstants.GIT.name());
file.setFileId(source.getPropertyAsString("fileId"));
file.setName(reportId + File.separator + fileMetadata.getName());
source.setFilename(BODY_FILE_DIR + File.separator + reportId + File.separator + fileMetadata.getName());
((CSVDataSet) key).setProperty("filename", BODY_FILE_DIR + File.separator + reportId + File.separator + fileMetadata.getName());
}
}
files.add(file);