Quality is delighting customers
how to update QC test case status through QTP?
for example :
I am runing the sript (without QC)and based on the test results I want to update the corresponding test case status in QC
Tags:
Permalink Reply by Rajani on September 27, 2011 at 9:11pm Hi Kishore,
you can follow below script, it may help you..
Dim QCConnection,RunF,NewRun, RunStepF, Runlst, RunStep
Set QCConnection = QCUtil.QCConnection
Set TestSetFact = QCConnection.TestSetFactory
Set tsTreeMgr =QCConnection.TestSetTreeManager
Set testInstanceF =QCConnection.TSTestFactory
If sStatus = "Pass" Then
sStatus = "Passed"
Else
sStatus = "Failed"
End If
Set aFilter = testInstanceF.Filter
aFilter.Filter("TC_TEST_ID") = TestCase_ID
Set lst = testInstanceF.NewList(aFilter.Text)
Set tstInstance = lst.Item(1)
tstInstance.Status = sStatus
tstInstance.Post
Set QCConnection = Nothing
Set tsTreeMgr= Nothing
Set testInstanceF= Nothing
Thanks for ur reply
where I need to mention test set name and test case name ?
Regards'
kishore.gp
© 2012 Created by Quality Testing.