Cannot get Test Object in VAPI-XP using Python
I want to control an external console application from QC9 VAPI-XP script using Python. For that, I need to get the complete test plan path and name of the current test. This is the few lines of code that are in Test_Main and that bug me:
TFact = TDConnection.TestFactory
TDFilter = TFact.Filter
TDFilter.Filter("TS_TEST_ID") = CurrentTest.TestId
test_list = TDFilter.NewList
The problem seems to occur in the 3rd line where the ID cannot be assigned to the filter field TS_TEST_ID. Also, I can print the CurrentTest.TestId properly.
Can you provide me the proper way to get the Test Object in the test plan that corresponds to the current TSTest Object in test lab.
Thanks for your help.