| || |
Saving Scripts to QC using QTP Object Model
I tried saving a QTP9.5 Test back to QC9.2 using QTP Object Model.
The Script i used is as follows
Dim qtApp 'As QuickTest.Application ' Declare the Application object variable
Set qtApp = CreateObject("QuickTest.Application") ' Create the Application object
qtApp.Launch ' Start QuickTest
qtApp.Visible = True ' Make the QuickTest application visible
' Make changes in a test on Quality Center with version control
qtApp.TDConnection.Connect "QC URL PAth", _
"Domain", "Project", "User Name", "password", False ' Connect to Quality Center
If qtApp.TDConnection.IsConnected Then ' If connection is successful
qtApp.New ' Create a new test
qtApp.Test.SaveAs "[QualityCenter] Subject\MtTest" 'Save it to Quality Center
qtApp.Quit ' Exit QuickTest
Set qtApp = Nothing
This Script is taken from the QTP Automation reference guide.
When i run the script it is throwing the following error.
Error : Failed to Save the test or Business Component
System : The configuration registry key could not be written
Can anyone plese tell me why i am getting this error.
Its little [stupid is as stupid does].
Re: Saving Scripts to QC using QTP Object Model
Are you running this script in QTP itself or external VBScript?