Forum Discussion

aa-amitgandhi's avatar
aa-amitgandhi
New Contributor
2 years ago

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?

 

 

  • 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.

     

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

     

     

  • MisterB's avatar
    MisterB
    Champion Level 3

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

     

     

    Does that help?

     

     

    • aa-amitgandhi's avatar
      aa-amitgandhi
      New Contributor

      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's avatar
    MisterB
    Champion Level 3

    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.

     

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