Occasional Contributor
Unable to Change Draft Run value as "N" while running from QTP
[ Edited ]

Hi,

I am having list of test cases in a test set. While running the test cases from QC ALM 11, the run instances has "Draft Run" value as "N" but While running the same test cases from QTP the "Draft Run" value is "Y".

Running Test Case from Draft Run  QC ALM 11 N QTP 11 Y OTA which uses QTP instance to run the test case Y

 

 

While trying to run the test cases using the following OTA API, I am getting the same result "Draft Run" as "Y".

 

If qtApp.TDConnection.IsConnected Then 
	qtApp.Open strTestCase, True 'Open the test in read-only mode
	Set qtTest = qtApp.Test
	Set qtResultsObj = CreateObject("QuickTest.RunResultsOptions") 'Create the Run Results Options object
	qtResultsObj.TDTestSet = strTestSet
	qtTest.Run qtResultsObj
	Result = qtApp.Test.LastRunResults.Status
	qtApp.TDConnection.Disconnect 'Disconnect from Quality Center
	qtApp.Quit
End If

 

Kindly let me know Is there any settings in QTP/QC has such that the "Draft Run" value should always be "N". or is there any piece of OTA API code to set "Draft Run" value as "N" while running from OTA API.

 

QTP Version : 11.0

QC ALM    : 11.0

 

Thanks in advance,

Siva.