Hi, I'm hoping someone will be able to help me with the below described problem. I've been trying to
initialize a List collection but receive an error. When I attempt to save my ALM Workflow Script Editor
changes, I receive the error "[error] (L116:c13): Expected end of Statement." for the line of code:
"Dim testList As List". To try and work around this error I've done the following:
Dim testFact Dim testFilter Dim testList 'As List 'Instantiate a Test Factory object set testFact = TDConnection.TestFactory 'Instantiate a Test Filter object set testFilter = testFact.Filter 'set the filter condition that will be used to isolate test associated with the current Target Cycle testFilter.Filter("TC_ASSIGN_RCYC") = TestSetTest_Fields("TC_ASSIGN_RCYC").Value.name 'get a list of test filtered by the current Target Cycle set testList = testFact.NewList(testFilter.Text) Msgbox "Count: " & testList.Count Msgbox "Does the code get this Far?"
When the above code runs the message boxes do not appear. I have verified, that the testFact and testFilter objects are declared and instantiated correctly, however, I do not think the testList object is declared to be of type List. Could someone please tell me what I can do to fix this issue?