使用我的代码中的内部版本号 [英] Use The Build Number Within My Code

查看:84
本文介绍了使用我的代码中的内部版本号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在测试管理器中执行CodedUI测试时,系统会要求您选择要运行的构建,因此它知道从何处获取代码。

When executing CodedUI Test throught Test Manager, you are asked to choice which build to run against, so it knows where to get the code.

是否可以使用代码中的内部版本号?

Is it possible to use that build number in your code?

我的目标是我的测试依赖于执行时选择的内部版本号,将从TFS服务器获取该代码并在每个代码的开头解压缩测试,所以我可以确保我的环境有一个干净的设置。

My goal is that my test, dependant on the build number selected when executing, will grab that code from the TFS server and unzip it at the start of each test, so i can ensure that my environment has a clean set up on it.

问候

推荐答案

您在此处选择的构建将指向与构建对应的放置位置(将其视为共享文件夹)。此共享预计包含已编译的测试二进制文件,而不是代码。

The build you choose there, will point to a drop location (consider this as a shared folder) corresponding to the build. This share is expected to contain the compiled test binaries, not the code.


这篇关于使用我的代码中的内部版本号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆