Post new question
Question
Reply
 
Student
Posts: 1
Member Since: ‎12-04-2015
Message 1 of 2 (1,136 Views)

ReleaseSemaphore failed error while creating defect

[ Edited ]
Product Name: OTA API
Operating System: Microsoft Windows 7 (32-bit)

Dear Support,

 

I am trying to add a new defect in QC using OTA API. Below is my code. Connection is happenning properly but it's throwing System.ArgumentException: ReleaseSemaphore failed.  at TDAPIOLELib.IBugFactory2.AddItem(Object ItemData) in line 10 (bugFactory.AddItem(null)). Can you please tell me what could be the reason? I am using .NET framework 4.5 and C# for code development.

 

                string qcUrl = "http://xx.xx.xx.x:8080/qcbin";
                string qcDomain = "XXXX
                string qcProject = "TestProject";
                string qcLoginName = "testuser1";
                string qcPassword = "testuser1";
                TDConnection connection = new TDConnection();
                connection.InitConnectionEx(qcUrl);
                connection.ConnectProjectEx(qcDomain, qcProject, qcLoginName, qcPassword);
                BugFactory bugFactory = connection.BugFactory;
                Bug bug = bugFactory.AddItem(null);
                bug.Status = "New";
                bug.Project = "TestProject";
                bug.Summary = "This bug has created using eZscript";
                bug.DetectedBy = "John";
                bug.AssignedTo = "Dave";
                bug.Priority = "Low";

 

Thanks for your support.

 

Regards,

Rajeev

Reply
0 Kudos
Master's Graduate
Posts: 1,423
Member Since: ‎10-03-2009
Message 2 of 2 (1,121 Views)

Re: HPE ALM ReleaseSemaphore failed error while creating defect

This is the wrong company for Servers, Storage, Software, and Networking. Please use the Hewlett Packard Enterprise Community:
https://community.hpe.com/t5/Quality-Center-ALM-Practitioners/bd-p/itrc-895

† The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation