I'm currently trying to retrieve the detail tab value from a test in Test plan.
I don't undestand the way QC store it, and don't find the object to use to retrieve such a data.
I want to get the value wrote in a tab on the details tab of my test, store in Test plan.
I have all my tests with the code:
<font class="small">Code:</font><hr /><pre>
Set oTestFactory = tdc.TestFactory
Set TestList = oTestFactory.NewList("") </pre><hr />
But i don't find how to get the values i need using the Test Object.
If you have any idea, thanks.
TestList is a list of Test objects.
By using .NewList("") you have not filtered your results, so this is a list of every single test object in your project.
Looking at the OTA API reference for a Test object we can see that we can use the .Field(FieldName) property to get or set any value for a test object.
For Each thing in TestList
tst_id = thing.ID
tst_name = thing.Name
tst_details = thing.Field("TS_DESCRIPTION")
tst_folder = thing.Field("TS_SUBJECT")
... just another Tester ...