我可以通过TestPointHierarchy访问TestPoint吗? [英] Can I access the TestPoint through the TestPointHierarchy?

查看:103
本文介绍了我可以通过TestPointHierarchy访问TestPoint吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello,

我正在使用以下代码来遍历测试计划中的每个测试套件.我这样做是为了记录路径"每个测试用例. (例如< TestPlan>/< TestSuite1>/< TestSuite2>/TestCase) 我使用HEntry.Suite.TestCases访问测试用例 在层次结构中的每个TestSuite上.当我在TestSuite中访问TestCases时,是否可以访问上述TestCases TestPoints?下面是我用来获取TestPlan TestPoint层次结构的代码.我只看到了访问的能力 通过iTestPlan接口方法测试TestPoint.如果我什至知道TestPointID,也可以调用< TestPlan> .FindTestPoint,但这将涉及对每个测试点的调用.似乎我应该能够从HierarchyEntry访问TestPoint < TestPlan> .QueryTestPointHierarchy返回的项目.感谢您的时间.

字符串testpointstr = ; HEntry = i.QueryTestPointHierarchy(testpointstr);

I am using the below code to move through each test suite in a testplan.  I do this so I can record the "path" of each test case.  (Ex. <TestPlan>/<TestSuite1>/<TestSuite2>/TestCase)  I access the test case using HEntry.Suite.TestCases at each TestSuite in the hierarchy.  Is it possible to access the said TestCases TestPoints as I'm accessing the TestCases in the TestSuite?  Below is the code I use to get the TestPlan TestPoint Hierarchy.  I have only seen the ability to access TestPoints through the iTestPlan Interface methods. If I even knew the TestPointID I could call <TestPlan>.FindTestPoint but that would involve a call for every test point.  Seems like I should be able to access the TestPoint from the HierarchyEntry items returned by <TestPlan>.QueryTestPointHierarchy. Thanks for your time.

string testpointstr = "Select * from TestPoint";   HierarchyEntry HEntry = i.QueryTestPointHierarchy(testpointstr);

推荐答案

埃里克,

谢谢您的提问.

我正在尝试让熟悉此主题的人进一步研究此问题.可能会有一些时间延迟.感谢您的耐心.

I am trying to involve someone familiar with this topic to further look at this issue. There might be some time delay. Appreciate your patience.

此外,一些信息供您参考. QueryTestPointHierarchy返回测试套件包含测试点的层次结构,只返回测试套件层次结构的根. QueryTestPoints 方法查找并返回属于测试计划的所有测试点.

In addition, some information for you to refer. QueryTestPointHierarchy returns test suites' hierarchy that the test case contains test points, just return the root of the test suites hierarchy. QueryTestPoints method finds and returns all test points belongs to the test plan.

感谢您的理解和支持.

最好的问候


这篇关于我可以通过TestPointHierarchy访问TestPoint吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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