unable to delete test from test plan in qc usingVB
I am unable to delete the test from a test plan in QC using the following code. I dont know what is going worng but i am unable to proceed with this. Could somebody please help
Set objTestFactory = qc.TestFactory
Set objTestFilter = objTestFactory.Filter
SubjectPath = "Subject\Projects\Build Validation Tests\Test\"
objTestFilter.Filter("TS_SUBJECT") = "'" & SubjectPath & "'"
Set objTestList = objTestFactory.NewList(objTestFilter.Text)
For Each objTest In objTestList
If objTest.Filter("TS_NAME") = "test1" Then
TestID = objTest.Filter("TS_TEST_ID")
MsgBox ("Din got test case")