Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Unable to Update QC from QTP
08-21-2010, 02:26 PM
Post: #1
Unable to Update QC from QTP

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.

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
Find all posts by this user
Quote this message in a reply
09-13-2010, 01:45 PM
Post: #2
RE: Unable to Update QC from QTP
Guys any luck on this??
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Unable to select an item from weblist and unable to enter text in edit box estherindu 5 1,495 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 939 09-08-2011 03:33 PM
Last Post: souvikghosh_diatm
  Update to reporting values = pass, fail or deferred. Emil-Dean 1 423 03-22-2010 10:25 AM
Last Post: Saket
  how to update test status using TDConnection patelpradeep 2 1,307 07-16-2009 09:23 PM
Last Post: patelpradeep
  How to update Pass/Fail in Excel using Vbscript anji2010 4 1,227 07-13-2009 09:05 AM
Last Post: KVK

Forum Jump:


User(s) browsing this thread: 1 Guest(s)