部署 + 桌面应用程序 + TFS 2017
Deploy + desktop application + TFS 2017
我有一个 winForm 应用程序。每次 CI/CD 发生时,我都想在服务器上安装它。后来我安装了之后(我也不知道怎么自动安装。),我想运行 UI 测试一下。我应该在发布管理中添加什么任务?
我研究的时候才发现web deployment。由于我的是桌面应用程序,因此我需要不同的 build/release 任务。我可以从 vs2017 开始(通过右键单击项目 + 发布)
我想要 TFS 2017 中的类似版本。
您可以尝试使用发布配置文件进行构建。参见 Publish profile。
在 TFS 中,使用带有 MSBuild 参数的 VS 构建步骤如下所示:
/p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:PackageLocation="$(Build.StagingDirectory)\" /p:PublishProfile="YourPbulishProfile"
您可以参考这篇文章:Using Web Deploy in Visual Studio Team Services Release Management
到 运行 编码的 UI 来自 TFS 的测试。
首先,您需要 运行 您的代理人 interactive process. Regarding how to deploy an agent on windows, please refer to this link。
其次,将编码的 UI 测试项目添加到 TFS 版本控制中。
最后,创建构建定义以使用 Visual Studio Test Agent Deployment task and Run Functional Tests 任务来 运行 测试。
参考以下文章:
我找到了一种将我的桌面应用程序发布到服务器上的方法。下面是解释所需构建任务的文章。
Click here
我有一个 winForm 应用程序。每次 CI/CD 发生时,我都想在服务器上安装它。后来我安装了之后(我也不知道怎么自动安装。),我想运行 UI 测试一下。我应该在发布管理中添加什么任务?
我研究的时候才发现web deployment。由于我的是桌面应用程序,因此我需要不同的 build/release 任务。我可以从 vs2017 开始(通过右键单击项目 + 发布)
您可以尝试使用发布配置文件进行构建。参见 Publish profile。
在 TFS 中,使用带有 MSBuild 参数的 VS 构建步骤如下所示:
/p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:PackageLocation="$(Build.StagingDirectory)\" /p:PublishProfile="YourPbulishProfile"
您可以参考这篇文章:Using Web Deploy in Visual Studio Team Services Release Management
到 运行 编码的 UI 来自 TFS 的测试。
首先,您需要 运行 您的代理人 interactive process. Regarding how to deploy an agent on windows, please refer to this link。
其次,将编码的 UI 测试项目添加到 TFS 版本控制中。
最后,创建构建定义以使用 Visual Studio Test Agent Deployment task and Run Functional Tests 任务来 运行 测试。
参考以下文章:
我找到了一种将我的桌面应用程序发布到服务器上的方法。下面是解释所需构建任务的文章。 Click here