您可以使用以下Field
属性获取它们:
test.Field("TC_TESTER_NAME") // Responsible Tester
test.Field("TC_EXEC_TIME") // Time
test.Field("TC_PLAN_SCHEDULING_DATE") // Planned Exec Date
test.Field("TC_ITERATIONS") // Iterations
有关如何获取字段名称的信息,请参见这篇文章TC_TESTER_NAME
。来自 OTA 参考,对象 TSTest:
Public Property Field( _
ByVal FieldName As String _
) As Variant
没有 C# 环境,我无法测试您的代码。但是这个 Ruby 代码工作正常(QC11):
test_set_factory = test_set.TSTestFactory
test_list = test_set_factory.NewList("")
test = test_list.Item(1) # Get some test instance from the test set
puts "ID/Name: #{test.ID}/#{test.Name}"
puts "Responsible Tester: #{test.Field("TC_TESTER_NAME")}"
输出:
ID/Name: 85/[1]Test A
Responsible Tester: roland