我正在尝试运行一个Ocean测试框架测试,其中我打开了Petrel 2011演示项目。但是,当我使用PetrelSystem.ProjectService.OpenPrimaryProject()打开项目时,我得到以下错误消息,并且测试中止:
Error: File EclipseNamesToPropertyTypeCatalog.xml not found in the installation
File EclipseNamesToPropertyTypeCatalog.xml not found in the installation
Slb.Ocean.Petrel.ProjectOpenException : Could not open the project.
----> Petrel_Framework_NS.TestAssertionException : File EclipseNamesToPropertyTypeCatalog.xml not found in the installation
at Slb.Ocean.Petrel.Core.Impl.Core.ProjectService.OpenPrimaryProject(String projectPath)
at Slb.Ocean.Petrel.ProjectService.OpenPrimaryProject(String path)有没有解决这个问题的办法?
发布于 2012-02-15 17:08:30
这只是一个评论,但我需要50名代表首先。
当直接使用nunit.exe (从Petrel安装文件夹)运行测试时,它可以工作吗?
您的测试或项目涉及Eclipse吗?如果没有,您可以从petrel.exe.config中注释掉与Eclipse相关的模块。这不是一个解决方案,而是一个建议的解决方法。
发布于 2012-02-15 00:00:01
EclipseNamesToPropertyTypeCatalog.xml与Petrel一起部署在xml文件夹下。显然,工作目录不同,因此找不到该文件。
发布于 2016-09-02 23:21:24
你不需要任何变通。为了运行演示项目,您需要正确配置petrel环境变量,以便它们打开预先配置的演示项目。
这可以通过将PetrelTestProjectRoot和PetrelTestProject环境变量设置为适当的路径来完成
https://stackoverflow.com/questions/9278929
复制相似问题