QC error code ”-10”?

Tags:
Question ID: 104955
0
0

Hi,
We’re getting a "-10" error code when we’re trying to create a defect in QC (10.0) through OTA using a Perl script.

Can anyone tell me what that code means?

Cheers,
Kev

Marked as spam
Posted by (Questions: 1, Answers: 0)
Asked on April 9, 2013 10:40 am
16 views
Answers (1)
0
Private answer

After you connect you need to create a new empty bug, then change its value, then post. The code in vbscript is below, you will need to something similiar in Perl.

'Create QTP Object
Set qtApp = CreateObject(''QuickTest.Application'')

'DisconnectTDConnection
qtApp.TDConnection.Disconnect

'Connect TDConnection
qtApp.TDConnection.Connect QCserver, QCdomain, QCproject, QCuser, QCpassword, False

'Set TDC Connection
Set tdc = qtApp.TDConnection.TDOTA
set BugFactory = tdc.BugFactory

'Add a new, empty defect
Set Bug = BugFactory.AddItem(Nothing)

'Enter required field values
Bug.Status = ''New''
Bug.Summary =''Your Summary Goes Here''
Bug.DetectedBy = ''YourName''
Bug.Post

Marked as spam
Posted by (Questions: 3, Answers: 12)
Answered on April 9, 2013 8:22 pm