are there any examples out there for C# programming language on how to use the HP ALM REST API?
You should be able to just google for C# REST examples and use the ALM REST API doco for info on what to pass to ALM.
That's right but examples would be much faster and much easier to get into it.
For example I'm not sure which cookies to set and stuff. So it would be very helpful to get examples.
The examples in the docu are written in Java. Personally for me it is hard to transfer this into C#. Sure, the syntax is very similar but the used classes and frameworks are not.
So any help would be very much appreciated!
Has anyone got the HP ALM Rest interface working? I get a 404 when trying to authenticate from c#. I get a 401 when I try the same url from the browser (which is expected).
Test Automation Bloke
Here is an example to use REST API for HP ALM.
We are using ALM 12.5 at work. I tried the procedure indicated in nkthota last message and I can't make it to work, I always get an error 401.
Do I need to enable something? Any help would be greatly appreciated!
400 class error messages generally arise from bad input.
400 is usually something wrong in the parameters or body,
401 is generally with authorization, probably some missing authorization headers.
As for how to work with a REST in c#, I would recommend RestSharp - Simple REST and HTTP Client for .NET
it's alot easier to write than pure http request code.
SDET / Consultant