简体   繁体   English

自动在mtm中运行测试用例(未编码的UI)

[英]Run test cases in mtm automatically (not coded UI)

I have a set of testcases in microsoft test manager. 我在Microsoft测试管理器中有一组测试用例。 Now, the tester has to manually select each test case and run it. 现在,测试人员必须手动选择每个测试用例并运行它。 Is there a way in which I can link each step in the testcase to some program/script or to a function. 有没有一种方法可以将测试用例中的每个步骤链接到某个程序/脚本或函数。 eg. 例如。 Consider my test case is to check the functionality of a DB. 考虑我的测试用例是检查数据库的功能。 Check sample testcase here 在这里检查样本测试用例

Is there some way through whic i can actually automate this. 有没有什么办法可以真正实现这一目的呢? ie link the step to some program, which could of the following format for the first test case (in fig) 例如,将步骤链接到某个程序,对于第一个测试用例,该程序可以采用以下格式(在图中)

function updatedb(attributename){
//connect to db and change value`
}

Thank you for the help. 感谢您的帮助。

You can link any unit test, coded UI test, or generic test to a test case. 您可以将任何单元测试,编码的UI测试或通用测试链接到测试用例。

Automate a test case in Microsoft Test Manager 在Microsoft测试管理器中自动化测试用例

在此处输入图片说明

Somewhat of a hack, but you could use the Test Recorder and have Visual Studio open or SQL Server Management Studio with your scripts and just click the "Run" button. 有点骇人听闻,但是您可以使用Test Recorder并使用脚本打开Visual Studio或SQL Server Management Studio,然后单击“运行”按钮。 Your tester would have to have these open with your scripts, but it would work.... 您的测试人员必须将这些脚本与您的脚本一起打开,但是它将起作用。

Or maybe open a MS-Dos prompt and record the typing and running of your script through there. 或者,也许打开一个MS-Dos提示符,并在那里记录脚本的键入和运行情况。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM