VBS脚本:
Function GetTest(testid)
Set testF = TDConnection.TestFactory
Set testFilter = testF.Filter
testFilter.SetFilter "TS_TEST_ID", testid
Set testlst = testF.NewList(testFilter.Text)
Set GetTest = testlst.Item(1)
End Function
Python脚本:
def getTest(self,testid):
testF = self.tdc.TestFactory
testFilter = testF.Filter
testFilter.SetFilter("TS_TEST_ID", testid)
testlst = testF.NewList(testFilter.Text)
for test in testlst:
return test
return ""