Ask a Question

Get test cases request through postman failing

SOLVED
aa-amitgandhi
New Contributor

Get test cases request through postman failing

I am working on below request format through postman.

 

URI: https://api.zephyrscale.smartbear.com/v2/issuelinks/<<JIRA-ID>>/testcases
METHOD: GET
REQUEST:
Headers
Authorization : Bearer <<TOKEN>>

 

However, the request is failing as below even when the correct token is provided. What am I missing here?

aaamitgandhi_1-1674815341898.png

 

 

4 REPLIES 4
MisterB
Community Hero

I have a collection called Zephyr Scale in Postman, with my endpoints in sub-collections.  This is what the token part looks like:

 

MisterB_0-1674818754937.png

MisterB_1-1674818944814.png

 

Does that help?

 

 



Need more help? Feel free to connect with me on LinkedIn: https://www.linkedin.com/in/andrew-barbet-548a234/

Thanks for your response.

Can you please clarify what is wrong with my request?

I am passing the token the same way it seems.

MisterB
Community Hero

I'll try to help but I've used Postman for maybe 1 hour and that was a long time ago!

 

How to get a bearer token help is here: Generating API Access Tokens | Zephyr Scale Cloud Documentation (smartbear.com).  From memory this will get you a token ID that contains a token.

 

I chose to create a variable for the token so I only have to enter the token once.  Here's where you would create your variable.  Note that the blurred values contain the full token text (not the token ID).  Also note the variable name and then see how I've referenced that variable in Authorisation screens in the images I sent in my previous post.

MisterB_0-1674823409787.png

 

Hopefully this helps because I've pretty much maxed out what I currently know about Postman!

 

 



Need more help? Feel free to connect with me on LinkedIn: https://www.linkedin.com/in/andrew-barbet-548a234/

Thanks.

cancel
Showing results for 
Search instead for 
Did you mean: