简体   繁体   English

有没有办法将量角器测试与MTM测试用例关联并执行?

[英]Is there a way to associate and execute protractor tests to MTM test cases?

Here's the background: 这是背景:

  • I've wrote my tests in protractor@visual studio and got it running successfully with the help of this guide ; 我已经在protractor @ visual studio中编写了测试程序,并在本指南的帮助下成功地运行了程序;
  • Checked the project into TFS; 将项目签入TFS;

Now, my intention is to associate my protractor tests to microsoft case tests, then i intent to run against a environment (SCVMM). 现在,我的意图是将量角器测试与Microsoft案例测试相关联,然后我打算针对环境(SCVMM)运行。

I tried Coded Ui Test, but i found then a little bit slow. 我尝试了编码的Ui测试,但发现有点慢。

Is there a way that i can get this done? 有没有办法我可以做到这一点?

Thanks. 谢谢。

What I did was use Generic Tests to accomplish this. 我所做的是使用通用测试来完成此任务。

Each Generic Test you create can represent a Protractor test. 您创建的每个通用测试都可以代表量角器测试。 I just named them similarly. 我只是用类似的名字命名。 Then you can link the Generic Test to the MTM test . 然后,您可以将通用测试链接到MTM测试 Simple as that. 就那么简单。

I took it a step further and set the Generic Test up in such a way that it runs the Protractor test. 我更进一步,并以运行量角器测试的方式设置了通用测试。 This is really nice because Visual studio will recognize these tests in Test Explorer. 这真的很好,因为Visual Studio可以在Test Explorer中识别这些测试。 So no more command prompt :) 因此,不再有命令提示符:)

Here's an example of one of mine: 这是我的一个例子:

在此处输入图片说明

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

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