传递参数testsettings安装脚本 [英] Pass parameter to testsettings setup script

查看:159
本文介绍了传递参数testsettings安装脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用MTM运行使用特定的测试设置测试。

I am using MTM to run Tests using a specific "Test Settings".

我添加了一个安装脚本这是一个批处理文件和它的工作的罚款。批处理文件是

I added a Setup script which is a batch file and its working fine. The batch file is

echo %1 %2

现在我无法弄清楚如何参数传递给该批处理文件。

Now I am not able to figure out how to pass argument to this batch file.

我尝试了所有的下面的方法,但是试运行抛出的路径illigal字符不正确的文件格式的等错误。

I tried all the below methods, but the test run throws illigal character in path, incorrect file format, etc. errors.

C:\SetupScript.bat Hello World
"C:\SetupScript.bat" Hello World
"C:\SetupScript.bat" "Hello" "World"
start "" "C:\SetupScript.bat" Hello World

我无法弄清楚如何将参数传递给在安装脚本我的批处理文件。请帮忙。

I am not able to figure out how to pass arguments to my batch file in Setup script. Please help.

推荐答案

我也想同样的东西,但似乎这不是目前可能通过MTM。我使用MTM 2012。

I was also trying the same stuff, but it seems this is no currently possible through MTM. I am using MTM 2012.

这篇关于传递参数testsettings安装脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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