编码的UI测试 - 检索已启动CUIT的TC名称(或ID) [英] Coded UI Test - Retrieve the TC name (or ID) which has launched the CUIT
本文介绍了编码的UI测试 - 检索已启动CUIT的TC名称(或ID)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好,
在测试经理中我有3个TC:
In test manager I have 3 TC :
TC_First,ID = 1000 ,关联自动化= test.dll
TC_First, ID=1000, associated automation=test.dll
TC_Second,ID = 1001 ,关联自动化= test.dll
TC_Second, ID=1001, associated automation=test.dll
TC_Third,ID = 1002 ,关联自动化= test.dll
TC_Third, ID=1002, associated automation=test.dll
I希望能够在推出的TCIT(test.dll)中检索已启动的TC(通过名称如TC_First或ID,如1002)
I want to be able to retrieve in the CUIT launched (test.dll) by which TC it has been launched (by name like TC_First or by ID like 1002)
谢谢
推荐答案
如果在MTM中提供与TestCase相同的TestMethod名称,则生成代码时,可以使用
TextContext.TestName 以检索方法名称。
-Deepak。
这篇关于编码的UI测试 - 检索已启动CUIT的TC名称(或ID)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文