将orderedtest导出到.exe [英] Export orderedtest to .exe

查看:24
本文介绍了将orderedtest导出到.exe的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在 VB.Net 中为我的 Web 应用程序编写用户界面测试.我使用硒来做到这一点.我做了一个orderedtest,我想将它导出为.exe.但是当我在 VS 中编译我的测试单元项目时我没有找到 .exe.(我使用 Visual Studio 2012).

I'm writting test of user interface in VB.Net for my web application. I use Selenium to do it. I made one orderedtest and I want to export it in .exe. But I don't find .exe when I compile my test unit project in VS. (I use Visual Studio 2012).

我想导出它,因为当我在一台服务器上部署我的应用程序时,我想启动这个测试套件.

I want to export it because I want to launch this test suite when I deploy my application on one server.

推荐答案

这根本不可能.Microsoft 测试项目始终生成(一组)程序集.

This is simply not possible. Microsoft Test projects always produce (set of) assemblies.

您可以通过在系统上部署 TFS 测试代理(或安装 Visual Studio Premium)来执行测试,这会安装允许您运行这些测试的命令行工具.安装就够了,不需要配置,甚至不需要连接到TFS环境.安装将部署运行测试所需的工具.

You can execute the tests by deploying the TFS Test Agent on the system (or installing Visual Studio Premium), which installs the commandline tools that allow you to run these tests. Installation is enough, you don't need to configure it or even connect it to a TFS environment. The installation will deploy the tools required to run the tests.

您可以使用旧的或新的测试运行器运行您的有序测试:

You can run your ordered test using either the old or the new test runner:

  • 新的:vstest.console.exe YourOrderedTest.orderedtest/logger:trx
  • 旧的:mstest.exe/TestContainer:YourOrderedTest.orderedtest

您需要将测试项目的 Bin 文件夹中的所有项目复制到目标系统.您可能需要包含已安装在您的开发系统上但在您的目标服务器上可能不可用的额外程序集(测试项目的引用或测试项目引用的项目).

You would need to copy all items in the Bin folder of your Test project to your target system. You may need to include extra assemblies that have been installed on your development system and may not be available on your target server (references of the test project or projects referenced by the test project).

这篇关于将orderedtest导出到.exe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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