我正在使用 HP Quality Center Automation 的 otalclient.dll 来确定来自 Root 的测试集列表。ole 方法返回一个列表(特别是 IFactoryList),我想知道我需要做什么或阅读以了解如何将列表转换为数组。
代码:
qc_connection = WIN32OLE.new('tdapiole80.TDConnection')
qc_connection.InitConnectionEx connection_url
qc_connection.login connection_name, connection_pwd
qc_connection.Connect qcDomain, qcProject
tree_manager = qc_connection.TestSetTreeManager
test_set_factory = qc_connection.TestSetFactory
test_set_list = test_set_factory.NewList("")