Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/tfs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Tfs 将团队构建上MSTest中断中的文件引用为不同路径_Tfs_Mstest_Tfsbuild_User Acceptance Testing - Fatal编程技术网

Tfs 将团队构建上MSTest中断中的文件引用为不同路径

Tfs 将团队构建上MSTest中断中的文件引用为不同路径,tfs,mstest,tfsbuild,user-acceptance-testing,Tfs,Mstest,Tfsbuild,User Acceptance Testing,我们有一组在本地运行良好的用户验收测试(用MSTest编写),它们指的是验收测试加载和处理的一些测试文件 但是,在team build(TFS 2010)上运行时,我们使用的文件路径明显不同,无法找到该文件。使用相对路径的情况仍然如此,因为本地测试发生的深度与生成服务器上发生的深度不同 在测试中引用文件以使其在本地和团队构建测试运行期间工作的最佳方式是什么 我已经考虑过把它们放在团队项目中,但我甚至不知道这条路会是什么 任何想法都非常感谢 试试[DeploymentItemAttribute][

我们有一组在本地运行良好的用户验收测试(用MSTest编写),它们指的是验收测试加载和处理的一些测试文件

但是,在team build(TFS 2010)上运行时,我们使用的文件路径明显不同,无法找到该文件。使用相对路径的情况仍然如此,因为本地测试发生的深度与生成服务器上发生的深度不同

在测试中引用文件以使其在本地和团队构建测试运行期间工作的最佳方式是什么

我已经考虑过把它们放在团队项目中,但我甚至不知道这条路会是什么


任何想法都非常感谢

试试
[DeploymentItemAttribute][1]