LabCenter中的自动测试超时 [英] Automated Test Timeouts In LabCenter

查看:76
本文介绍了LabCenter中的自动测试超时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

即使设置了每个超时设置,我的自动脚本也会超时,我可以找到7.5小时(如您在此处显示的,在Lab Center中测试设置,在Visual Studio中为.testsettings文件).

My automated scripts are also timing out, even after I've set every timeout setting I can find to 7.5 hours (test settings in lab Center as you've shown here, .testsettings file in Visual Studio).

如果我手动开始测试(即我在MTM中物理单击运行"),则测试将运行至完成,大约需要2个小时.如果我使用tcm.exe开始测试,则该测试将在30分钟后超时(这意味着我的夜间CI测试无法正常工作).

If I start the test manually (i.e. I physically click 'Run' in MTM) the test runs to completion and takes about 2 hours. If I start the test using tcm.exe it times out after 30 mins (which means my nightly CI tests aren't working).

还有什么我可以尝试的-也许我找不到tcm.exe设置?

Is there anything else I can try - maybe there's a tcm.exe setting that I can't find?

推荐答案

tcm.exe中没有其他超时设置.我们在Visual Studio或MTM中的测试设置中指定测试运行的超时.

There is no an additional timeout setting in tcm.exe. We specify the timeout for a test run in a test setting in Visual Studio or MTM.

TCM.exe有一个可选命令: /settingsname : 指定要用于此测试运行的测试设置.如果未使用此参数选择测试设置,那么将使用测试计划中自动测试的默认测试设置.

TCM.exe has an optional command: /settingsname:name which specifies the test settings that you want to use for this test run. If you do not select test settings with this parameter, the default test settings for automated tests in the test plan is used.

请检查分配给测试计划的测试设置,以确保Advanced->超时->如果总时间超过值,则中止测试运行.

Please check the test settings assigned to the test plan to make sure the Advanced-> Timeouts->Abort a test run if the total time exceeds value is enough for your test run.

同时,我还建议您在实验室中心创建一个新的测试设置,并在tcm run中使用它来检查结果.

Meanwhile I also suggest you to create a new test settings in lab center and use it in tcm run to check the result.

如果没有帮助,则30分钟后会出现相同的问题,能否请您与我们分享命令行以使用tcm.exe运行测试?

If no help, the same issue occurs after 30 mins, could you please share us the command line to run a test using tcm.exe?

此外,请向我们提供有关超时的详细错误消息,也许我们可以获得有用的信息.

In addition, please provide us detailed error message about the timeout, maybe we can get useful information.

您可以根据本文运行测试:

You can run tests based on this article:tcm: Running Tests from a Test Plan Using the Command Line Utility

谢谢


这篇关于LabCenter中的自动测试超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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