Quantcast
Viewing all articles
Browse latest Browse all 14708

Re: Issues with ALM OTA List Collection

Thank you Trudy, you were right!  I was using the wrong Factory.  I'm trying to access the list of Test Instances in the Execution Grid of the Test Lab in order to access the list of covered requirements for each Test.  I've made the necessary changes to address the error you pointed out however there is still an issue with the same line of code. Please see the changes I've made below:

Dim testInstanceObj
Dim testInstanceFact
Dim testInstanceList
Dim testInstanceFilter

'Instantiate a Test Instance Factory object
Set testInstanceFact = TDConnection.TSTestFactory

Set testInstanceFilter = testInstanceFact.Filter

testInstanceFilter.Filter("TC_ASSIGN_RCYC") = TestSetTest_Fields("TC_ASSIGN_RCYC").Value.name

Msgbox "1st"

set testInstanceList = testInstanceFact.NewList(testInstanceFilter)

Msgbox "2nd"

Msgbox "Count: " & testInstanceList.Count

Msgbox "3rd"

 

I see the "1st" Msgbox but don’t see any Msgboxes after the line of code "set testInstanceList = testInstanceFact.NewList(testInstanceFilter)"

. However when I replace that line of code with "set testInstanceList = testInstanceFact.NewList("")" I see all the messages boxes including  Count: 536.

I've verified that manually setting the Test Instance Filter results in the desired list of Test I'm looking for.  So I started to look very carefully at the list of fields displayed in the Test Instance Filter dialog and the list of Test Instance fields located under Project Entities.  Some of the fields on the filter dialog are displayed "Test: Change Status" while other are just listed with their Field Label "Target Cycle". I also noticed that some of the fields listed on the Test Instance Filter dialog are not listed in under Project Entities for Test Instance.  Could any of this be a reason for the issues I'm seeing?


Viewing all articles
Browse latest Browse all 14708

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>