(IBug)factory.AddItem(null) method to create Bug does not work for ALM 11
I am running the C# code new bug in ALM 11.
The code below is working fine for QC10 but does not work for ALM 11.
IBugFactory factory = (IBugFactory)m_connection.BugFactory;
IBug bug = (IBug)factory.AddItem(0L);
When I run above code for ALM 11, it gives error as Invalid Parameter type.
I tried options such as AddItem(null), AddItem(""), AddItem(0), but it gives same error.
I changed it to
IBug bug = (IBug)factory.AddItem(System.DBNull.Value); for ALM 11.
It does not throw any error, but bug is not created in ALM.
It gives bugid as -10, every time I run the code to create new Bug.
Please help me with the solution.
try to ".post" the bug. Only after a post you can get the bug id.
Forj: continuous integration & delivery for the masses
Do not hesitate to mark a question as closed if you think you have all you need (Kudos do help too 🙂 )