HOW TO DYNAMICALLY CALL AN AUTH TOKEN IN JMETER TEST SCRIPTS!! JMETER!!Hack #2

Sdílet
Vložit
  • čas přidán 22. 08. 2024

Komentáře • 64

  • @VinayKumar-ih9zx
    @VinayKumar-ih9zx Před 2 lety +5

    Great Devi!! It’s a great effort! Nicely complied and with right pace.

  • @manikandanv1811
    @manikandanv1811 Před 3 měsíci

    No words you save my life save my project there is no realtime API jmeter project like this absolutely awsome

    • @sdetbytehackers4085
      @sdetbytehackers4085  Před 3 měsíci

      I am really thankful for your feedback. I am happy that you identified the value from this video.

  • @shankarprabhu13
    @shankarprabhu13 Před rokem +1

    Already subscribed!!! Thanks a lot for your wonderful work, keep up the work forever :)

  • @cristianemartins9033
    @cristianemartins9033 Před 2 měsíci

    Thank you so much, i was cracking my heard in this all day, you saved my life, thank you so much!!!!!

  • @PushpaLatha-hx9gg
    @PushpaLatha-hx9gg Před rokem +2

    Very use videos.. lots of gratitude 🙏

  • @sujitkumarmeher8011
    @sujitkumarmeher8011 Před rokem

    Thank you so much for the tutorial. My issue was resolved by following this tutorial.😊

    • @sdetbytehackers4085
      @sdetbytehackers4085  Před rokem

      Wow. It's good to hear. Thank you so much for going over the video and shared your feedback. Love that it's helped you. Happy Learning 😊

  • @TheGou30
    @TheGou30 Před 11 měsíci +1

    Thanks a lot for this clear step by step video !

  • @mohshafi3032
    @mohshafi3032 Před rokem +1

    Thank you very much for this awesome and clear presentation.

  • @arcanus2394
    @arcanus2394 Před rokem +2

    Thank you, very helpful, and accurate

  • @santhim6442
    @santhim6442 Před rokem +2

    Thanks for the video! It's great. I have a query regarding multiple threads instead of one. I have followed all the steps that have been explained here. however when I increase the threads from 1 to n. I see an issue in that it's not able to pick up new tokens on the expiry of the existing token. Can you please explain if we can overcome this issue?

    • @sdetbytehackers4085
      @sdetbytehackers4085  Před rokem

      Thanks for your feedback and comments. Whenever you are using multiple thread group then you need to call individual token in loop controller for each thread group. It will solve this problem. Please let me know if you still face issues

  • @MdSajid-dh1nc
    @MdSajid-dh1nc Před 9 měsíci

    Thanks for the nice video!!
    I have one doubt, if certificate required to generate access token in postman then how to add these certificate in my jmeter test plan? We got certificate error during reply. Could you please make a video to handle the same or provide the steps how to handle that. Thanks

  • @KaranSharma-ik4tp
    @KaranSharma-ik4tp Před 10 dny

    There is a button on click of which one pop-up opens up to create some data and until I click submit on the pop-up there is no API call.
    How to handle this in Jmeter so that my API doesn't fail and data is created.
    Currently I am getting error 415. Please guide

  • @KaranSharma-ik4tp
    @KaranSharma-ik4tp Před 10 dny

    How can we send all the data present in csv file in one go?
    My request body is below and my requirement is that in the API, I have to send t0, t1....t100 in one go to perform load testing using Jmeter. Please guide!

    "target": [
    {
    "code": "XY",
    "country": "US",
    "deptType": "Sales",
    "id": "t0"
    },
    {
    "code": "GI",
    "country": "US",
    "deptType": "Engineering",
    "id": "t1"
    }
    ]
    }

  • @ramvarma5897
    @ramvarma5897 Před 3 měsíci

    for all the transacations do we need to add https header manager ?

  • @AtifKhan-te5eg
    @AtifKhan-te5eg Před rokem +1

    Hi sir can you please upload a video on how to add secure hash Sha 256 in jmeter

    • @sdetbytehackers4085
      @sdetbytehackers4085  Před rokem

      Thank you so much for your request. Will soon prepare a video for your request. Hope you enjoyed the content

  • @user-ny7le9ul4y
    @user-ny7le9ul4y Před rokem

    I was looking this for long time

  • @jayasankanuwan329
    @jayasankanuwan329 Před měsícem

  • @hayatkhan6952
    @hayatkhan6952 Před 4 měsíci +1

    I am using cognito for authentication
    Is it possible to record a script of login page using jmeter ??

    • @sdetbytehackers4085
      @sdetbytehackers4085  Před 4 měsíci

      Thank you so much for your valuable questions. Yes, you can do it. Firstly, you need to collect login api call details from the browser network tab. Once you have the api call , then you can watch my video below to record it.
      czcams.com/video/kmXaR77G6Bw/video.html

  • @roopachandra328
    @roopachandra328 Před 10 měsíci +1

    U didn't shown how that auth token to be refreshed in middle of test. That's what the video heading mean I think.

    • @sdetbytehackers4085
      @sdetbytehackers4085  Před 10 měsíci

      Thanks for watching the video. I would recommend you to revisit the video and watch carefully how the time stamp setup

    • @sdetbytehackers4085
      @sdetbytehackers4085  Před 10 měsíci

      Watch the part2 video. czcams.com/video/fuh-8fSsDYw/video.htmlsi=d0J_n8E0S_0DbSfi

  • @nethmiedirisooriya5194
    @nethmiedirisooriya5194 Před 8 měsíci

    How to do a OAuth 2.0 authentication in JMeter?

  • @ganeshnalawade5694
    @ganeshnalawade5694 Před 21 dnem

    But after 30 min again genrate new token but sampler is running continue.. How will mange this

    • @sdetbytehackers4085
      @sdetbytehackers4085  Před 19 dny

      @ganeshnalawade5694 so you need to take a new token before it expires. You need to take a new token every 25th min if your token is expired in the 30th min. Hope this helps.

  • @somethinghatke..502
    @somethinghatke..502 Před 11 měsíci

    i have same scenario but with post request and it is failing after getting the Auth

    • @sdetbytehackers4085
      @sdetbytehackers4085  Před 11 měsíci +1

      Thank you so much for your queries. It will work irrespective of GET or POST. I suggest you watch the video carefully will help you ,where you make a mistake.

  • @user-uv2ug1vq7h
    @user-uv2ug1vq7h Před 5 měsíci

    Can you make a video to keep the token refreshed automaticall yafter 30 mins of token expiry

    • @sdetbytehackers4085
      @sdetbytehackers4085  Před 5 měsíci

      Thanks for your comment. Please watch the part 2 video, which is available in my Playlist. Hope it helps you.

  • @prem33511
    @prem33511 Před rokem

    When we load Url of my project . Microsoft login page appear and has api as ' authorize?client_id' it has a parameter client-request-id from where value is appear . And how to automate through jmeter. Simply asking how to correlate client-request-id. Some says value for client request I'd come from another third party server. Any way to correlate dynamic variable.
    Thanks and appreciate .

    • @sdetbytehackers4085
      @sdetbytehackers4085  Před rokem

      Thanks for your valuable feedback . yes you can extract the Client -request-id in runtime by JSON parser if you are using rest api. then you can pass the value to subsequent api in your test. Hope this helps you.

    • @prem33511
      @prem33511 Před rokem

      @@sdetbytehackers4085 can you create a video for that

  • @secretazurestar7402
    @secretazurestar7402 Před rokem

    Hi We need to get Access Token 100 users using OAuth 2.0 authorization code flow where we need to Automate the Process of entering username and password. And for each access token we need make an API Call. Can you share your thoughts on how to achieve this.

    • @sdetbytehackers4085
      @sdetbytehackers4085  Před rokem

      Thanks for watching and sharing your query. Please watch my next video which have the solution for your problem. you need to use csv file to keep all your user details and read one by one . Please try this solution and let me know how it goes for you!! Happy Learning!!
      czcams.com/video/fuh-8fSsDYw/video.html

  • @roopachandra328
    @roopachandra328 Před rokem

    Can u pls explain this. If the token is going to expire in 10minutes but the test to be run for 20 min. In this case we need to regenerate the token just before every 10min to continue our test with out auth errors. How this can be done? This is the actual challenge. Thanks in advance if u can provide a way for this.

    • @sdetbytehackers4085
      @sdetbytehackers4085  Před rokem

      Thanks for watching and sharing your questions. Please watch my part2 , where I had explained the solution for this. Please watch and let me know if you still have any outstanding questions. Love to hear from you

    • @sdetbytehackers4085
      @sdetbytehackers4085  Před rokem

      Here is the link czcams.com/video/fuh-8fSsDYw/video.html

  • @prateekkverma3633
    @prateekkverma3633 Před 10 měsíci

    hi sir can you share the token with us please? if its only for prractice?

    • @sdetbytehackers4085
      @sdetbytehackers4085  Před 10 měsíci

      Thank you so much for watching and the request. As I am using my personal credentials for getting Auth token , it's not good practice to share. I will recommend using open source auth2 like github or zoho's token with your credentials and use for practice. Hope it's helpful to you.

  • @parthadas5141
    @parthadas5141 Před rokem

    Very good video

  • @rockystar7342
    @rockystar7342 Před rokem

    Hi , Thanks for the video . How can we generate the token again after 5 mins, because my token is only valid for 5mins & pass that to GET call .

    • @sdetbytehackers4085
      @sdetbytehackers4085  Před rokem

      Hello Rocy. Thanks for your comment. As the auth request is inside the Once only controller , it will automatically take the token whenever your token got expire. This generic script will work directly without any changes for your scenario. Please do le me know , if you still face any issue.

    • @lokeshwar6105
      @lokeshwar6105 Před rokem

      You can use Simple Controller for Auth Generation & Runtime Controller for Rest of Requests.
      Keep Runtime Controller for Less than your Token Expiry Time & Use No. of Loops in Thread Group to achieve Duration of Test.

    • @sdetbytehackers4085
      @sdetbytehackers4085  Před rokem

      Hello Rocky. I have prepared a Video as per your requiment. please watch this and let me know your feedback. Happy Learning!! czcams.com/video/fuh-8fSsDYw/video.html

  • @shivashankarsd6160
    @shivashankarsd6160 Před rokem

    Where can i practice this ? Can you please suggest demo api for this

    • @sdetbytehackers4085
      @sdetbytehackers4085  Před rokem

      Thanks for your comment. There are lot of open API market like (facebook,zoho) which you can use for your practice. visit this site rapidapi.com/collection/list-of-free-apis

    • @shivashankarsd6160
      @shivashankarsd6160 Před rokem

      Thanks for reply

  • @HaiderAli-wt4jp
    @HaiderAli-wt4jp Před rokem

    Please Share You Postman Collection as well

    • @sdetbytehackers4085
      @sdetbytehackers4085  Před rokem

      Hello Haider. This collection is for only demo purposes you can use your project requirement web service URLs for your execution.

    • @HaiderAli-wt4jp
      @HaiderAli-wt4jp Před rokem

      @@sdetbytehackers4085 sir sorry for interrupting in my case I don't have accesses_token and the
      Authorization = " basic token value" in your video you put in JMeter these 2 values interrupt me

    • @sdetbytehackers4085
      @sdetbytehackers4085  Před rokem

      Hello Haider. We are getting the Access_token value from Auth token response where as Authorization = Basic Auth value which pass in Auth api header. Hope it's clear now. You design the same format api structure in jmeter how it works in postman.

    • @HaiderAli-wt4jp
      @HaiderAli-wt4jp Před rokem

      @@sdetbytehackers4085 okay sir I'll check it
      Thank you so much for your consideration and attention and for your giving me a precious time

    • @sdetbytehackers4085
      @sdetbytehackers4085  Před rokem

      It's my pleasure 🙏