如何将参数传递给vstestconsole.exe中的测试方法 [英] How to pass parameters to test methods in vstestconsole.exe

查看:98
本文介绍了如何将参数传递给vstestconsole.exe中的测试方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好

我正在开发一个应用程序来测试使用编码用户界面的Windows Phone xaml应用程序中的应用程序通过命令行测试

I am are developing an application to  test apps  in windows phone xaml apps using coded UI Test via Command Line

当前在通过命令行向测试方法发送参数时遇到问题。无论如何都要发送或在当前版本的Vstest.console.exe中支持。

Am currently facing a problem in sending parameters to test methods  via Command Line. Is there anyway to send or is it supported in the current version of Vstest.console.exe.

我们尝试了以下内容。 

We have tried the following . 

C:\Program Files(x86)\ Microsoft Visual Studio 12.0 \ Common7 \IDE \CommonExtensions

\ Microsoft &\\TestWindow> vstest.console.exe D:\dreamUPService \\ \\ CodedUITestProject1 \ C

odedUITestProject1 \ bin \Debug \ CodeUITestProject1.dll / Tests:CodedUITestMethod1 

C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\CommonExtensions
\Microsoft\TestWindow>vstest.console.exe D:\dreamUPService\CodedUITestProject1\C
odedUITestProject1\bin\Debug\CodedUITestProject1.dll /Tests:CodedUITestMethod1 

  1)如果我有参数 测试方法  CodedUITestMethod1  我如何通过命令行。?

 1)if i have parameter in  test method CodedUITestMethod1  how can i pass through command line.?

  2)我如何通过命令行为Windows手机Xaml应用程序启动数据驱动测试。 (8.1)

 2) How can i  intiate Data driven Testing through command line for a Windows phone Xaml Apps. (8.1)




推荐答案

您尝试传递哪种参数? 你能简单地进行不同的测试吗?
What sort of parameters are you trying to pass?  Can you simply have different tests?


这篇关于如何将参数传递给vstestconsole.exe中的测试方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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