Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Unable to Update QC from QTP
#1
Hi All,
I am working on QTP 10.0, Running all my scripts from my local machine. I want to just update the results of my script in the QC.
here I am not loading the script from QC, since it cosumes more time , I have all my scripts in the local PC & just want to updae the result in QC.
Its easy to update QC if we load & run the scrpt from QC.

here is the code snap which I treid , but didnt work.

Code:
Set qtApp = CreateObject("QuickTest.Application") ' Create the Application object Set TDConQTP = qtApp.TDConnection qtApp.Launch ' Start QuickTest qtApp.Visible = True ' Make the QuickTest application visible qtApp.Options.Run.RunMode = "Fast" qtApp.Options.Run.ViewResults = False qtApp.Options.Run.ImageCaptureForTestResults = "OnError" ' Set QuickTest run options Set qtResultsObj = CreateObject("QuickTest.RunResultsOptions") If TDConQTP.IsConnected = False Then TDConQTP.Connect QCurl, QCProject, QCRelease, QCUser, QCPwd, False msgbox "QC Conected" End If qtApp.Open ":\D\Extest", True ' Open the test in read-only mode Set qtTest = qtApp.Test 'set run settings for the test qtResultsobj.TDRunName = "Run 8-21 13-46-14" qtResultsobj.TDTestInstance = 1 qtResultsobj.TDTestSet = "[QualityCenter] Root\Trash\Test_MW_QTP" qtTest.Run qtResultsObj ' Run the test qtTest.Close ' Close the test

Please help to solve this issue
Thanks
Leninraj
Reply
#2
Guys any luck on this??
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Is VBScripting disabled in Office 365 update? soumyarani 0 2,044 12-19-2020, 12:37 PM
Last Post: soumyarani
  Update Multiple Dropdowns without Submit Button mot0rola 1 2,776 07-09-2013, 10:26 AM
Last Post: Ankur
  Unable to select an item from weblist and unable to enter text in edit box estherindu 5 10,747 05-15-2012, 12:07 AM
Last Post: viswa
  Update a value in excel sheet during runtime & use the value later in the same script SweetyChowdhury 3 6,305 09-08-2011, 03:33 PM
Last Post: souvikghosh_diatm
  Update to reporting values = pass, fail or deferred. Emil-Dean 1 2,461 03-22-2010, 10:25 AM
Last Post: Saket

Forum Jump:


Users browsing this thread: 1 Guest(s)