cancel
Showing results for 
Search instead for 
Did you mean: 

automating the ALM using API

kumarVasantaB
Level 2
Hello Community,

Greetings!

We are working on automating Micro Focus ALM tool using Blue Prism (version-7.0.1) in Azure environment.

We are trying to use the API's and we are able to successfully sign in using the HTTP request URL:""http://SERVER:PORT_NUMBER/qcbin/api/authentication/sign-in"" 

36982.jpg

as a response we are getting the result as "Headers as JSON". Mainly we are getting 4 parameters:
1.LWSSO_COOKIE_KEY
2.QCSession
3.ALM_USER
4.XSRF-TOKEN

Issue is: 

After login, 2nd request is to check any entity(Ex: Requirements ,Test_cases or Defects) by passing the above mentioned parameters in HEADERS. When I make the 2nd request, I am getting 401 error. Result: The remote server returned an error: (401) Unauthorized.

I have tried to enter parameters manually and it has not worked that way too. But it works very fine in POSTMAN

Please guide or let me know how to troubleshoot the issue

Regards,
Vasant
































1 REPLY 1

ewilson
Staff
Staff
Hello @Vasant Kumar,

According to the MicroFocus documentation, the token header should be givne the name X-XSRF-TOKEN. Is that how you're entering it in your subsequent requests?

Cheers,
Eric

​​