Forum Discussion

Jagruuti's avatar
Jagruuti
Contributor
5 years ago

Execution of complete test case having different test steps without manual interference.

Hi,

 

I want to run my test suites for the regression. 

 

There are test cases where it has multiple steps. And in the mid steps, it has to create access tokens and pass it in the headers which I'm doing it by manually interfering in it. How can I do it? I tried automating that step, but I did not succeed in it.

 

Thanks and Regards,

Jagruti Wani

 

 

  • Hi sonya_m ,

     

    Actually, I had already raised a support ticket and it was getting much delayed so I thought of taking help from you. But then KirillZakharov came to rescue. Let me describe the solution-

    The code was correct.

    It is just that I had to add that code on the Consent screen and not on the login screen.

    Please find the attached screenshot.

     

     

     

     

     

  • Jagruuti :

     

    Could you please let me know how that token is getting generating you are hitting any other API for the same or what method you are using.

    • Jagruuti's avatar
      Jagruuti
      Contributor

      Hi HimanshuTayal ,

       

      I'm using OAuth 2.0 for generating the Access token.

      You can get an idea by having a look at the attached screenshot. 

      I'm clicking on the Get Access Token button to generate it.

       

      Thanks in advance 

          Jagruuti