Quality Testing

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

Views: 199

Reply to This

Replies to This Discussion

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

RSS

TTWT Magazine

Webinar

You Can


Call for Articles

Advertisement

Videos

  • Add Videos
  • View All

Badge

Loading…

© 2012   Created by Quality Testing.

Badges  |  Report an Issue  |  Terms of Service