VS2010 TestSettings安装脚本 [英] VS2010 TestSettings Setup Scripts

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

问题描述

关于这些安装脚本,我有几个问题:

1)似乎VS GUI的开发目的是将此文本框中的整个字符串作为命令名传递,从而消除了向其传递参数的能力.这是真的吗?如果是这样,我该如何解决?如果没有,该如何识别参数?

2)我的设置脚本超时(允许,很长...)-如何更改超时设置?

3)我需要安装脚本来启动一个exe,该exe仍在测试中运行(它承载测试使用的服务)-但是,只有在启动脚本启动的所有进程都结束后,测试才开始.这里有解决方法吗? (当前,我在安装脚本中有一个.bat文件,它会调用"start * .exe"来异步调用新exe,但是测试仍在等待.exe以及.bat退出之前,开始.)

非常感谢您的帮助.

丰富

解决方案

约会失败:(和一种麻烦的解决方法)

对于第1点):我正在运行一个.bat,它使用一组特定的参数调用我的主.bat,但是我希望每个.testsettings都不要有一个.bat,如果可以避免的话.

对于第2点):我尝试添加超时"标记为xml.testSettings文件中的标记,如VS2008所建议的那样-但这根本没有帮助.我已经尝试更改测试超时,但是也没有将其应用于设置超时(以及 我希望它可能是由一个懒惰的开发人员提供的:P)

对于第3点,请

:我尝试调用一个".bat"来启动"一个新的.bat,这反过来又启动"了我的服务托管者,但这也无济于事.前两个都退出,但是直到服务托管者也退出测试才开始.

仍然希望有人提供有用的答案!

丰富


I have a few questions around these Setup Scripts:

1) It seems the VS GUI was developed to pass the whole string in this textbox as a command name, removing the ability to pass parameters to it.  Is this true?  If so, how can I work around this, and if not, how can I get it to recognise parameters?

2) My setup script times out (granted, it is long...) - how do I change the timeout setting?

3) I need my setup script to launch an exe which remains running through the test (it hosts services that the test uses) - however the test only starts when all processes kicked off by the startup script have ended.  Is there a workaround here?  (Currently I have a .bat file in the setup script, and it calls "start *.exe" to call the new exe asynchronously, but the test is still waiting for the .exe to exit as well as the .bat before it starts.)

Any help much appreciated.

Rich

解决方案

Failed attempts to date: (and one messy workaround)

for point 1) : I am running a .bat that calls my main .bat with a specific set of parameters, but I'd like not to have one .bat for each .testsettings if I can avoid it.

for point 2) : I have tried to add a "Timeouts" tag in the xml .testSettings file, as suggested for VS2008 - but that didn't help at all.  I have tried changing the test timeout, but that isn't being applied to the setup timeout as well (as I hoped it might be by a lazy developer :P)

for point 3) : I've tried calling a .bat that "start"s a new .bat, that in turn "start"s my service hoster, but this isn't helping either.  The first two both exit, but the test won't start until the service hoster exits too.

Still hoping for a useful answer from someone!

Rich


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

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