首页 > 解决方案 > 宁静测试问题没有这样的文件或目录

问题描述

我正在尝试使用 serenity 运行测试,它可以在本地工作站(Windows 10)中运行。但是当我尝试通过 maven jenkins 作业(托管在 linux 上)执行时,我没有遇到这样的文件或目录问题

Oct 26, 2020 6:06:20 AM org.apache.http.impl.client.DefaultHttpClient tryExecute
INFO: I/O exception (java.io.FileNotFoundException) caught when processing request to {}->http://example.com:80: /var/lib/jenkins/workspace/automation\src\main\resources\/test.gdb.zip (No such file or directory)

/var/lib/jenkins/workspace 中引用的文件确实存在。为什么无法读取文件?

标签: mavenjenkinsserenity-bdd

解决方案


推荐阅读