One of the greatest thing and I like the second most thing from Raghav Pal is adding the notes in the description. The first thing I love the most is his explanation of topics made the learning at ease and less stressful. This is very useful for a reason. Than you Raghav Pal for contributing the knowledge to others. Keep doing the good work sir
Thank you so much Sir for uploading this, really very helpful. Almost every company asks for Jmeter experience these days when we look for Performance Testing role, please let me know if this content is enough for me to clear the interview as well as to clear the Official Jmeter Intro Certification Exam ??
@@RaghavPal Sure, thanks a lot. I am happy to inform that I have cleared the Blazemeter Jmeter Intro level certification.The Blazemeter University course also helped me in interview preparation for Jmeter to an extent. Thank you so much once again for the Jmeter Tutorial playlist which really helped me to understand the Jmeter concepts well and hence to be able to successfully get certified in Jmeter Intro level ☺️
Hi Raghav Sir, this is helpful and thanks for helping so many with your teaching. Your channel is so good that I have two subscriptions with different accounts. I have one question, can you please make a video in which we can know the real customer scenarios for JMeter test with API testing from your experience. Some real time customer scenarios. Also how to use the Groovy inside the JMeter and use it. Thanks
@@RaghavPal Thank you for you tutorials - just checking to see if you have made this video - Real scenario performance testing if yes could you please point me to the video?
Thankyou raghav for creating such a detail video. Its helpful for beginners and experience as u have shared example for each as well as details in description. It will be helpful if you can share scenario-based questions for e.g i have 200url in csv i want to segregate url giving 200/400 or i want to verify url in loop based on each category for e.g in google search all video, image one after another.
Hello Raghav. Thank you for the wonderful contents. I have one query, How to capture/ record scripts through Neoload and Jmeter for a desktop applications ( like OF applications). Is it possible to record? Any supportive documents or video would be helpful. Thanks in advance!!
For NeoLoad Use Proxy Recorder: Set NeoLoad as a proxy to capture HTTP/HTTPS traffic from the desktop app. Alternative: If it uses other protocols, capture with Wireshark and convert traffic for NeoLoad For JMeter HTTP(S) Test Script Recorder: Use it if the app uses HTTP/HTTPS. Alternative: Use Fiddler to capture traffic and import into JMeter for non-web traffic Resources NeoLoad Documentation: Neotys JMeter Tutorials: Search TH-cam for "record desktop application with JMeter." This should get you started quickly..
@RaghavPal Thank you Raghav for the response. Is it possible for you to make a demo video on this topic? Would be helpful for many of us. A humble request.
Thanks a lot Raghav.. I have a performance testing interview on this Saturday. I have completed your jmeter beginners entire course and this one. Also in my current project I have created simple test plans also.. Is it enough for this interview? Do I need to check on intermediate level videos also?
Hi Raghav, Thanks for this knowledge sharing session, do you have Spike test, Below topics would be great if you can make videos + Create Spike Testing Script with JMeter + Execute Script + Analyze Test Result
Thank you so much Raghav for this useful video . Kind of brushing up post. Well, I am planning to take ISTQB specialist Performance Testing certification. It will be helpful if you can make some tutorials on the syllabus.
Adbul You can do, but have to be careful and proceed only after taking necessary permissions and approvals Here are some key points to keep in mind: 1. Impact on Users: Performance tests can generate significant load, which might affect the experience of real users. It's crucial to schedule tests during off-peak hours or when user activity is minimal. 2. Monitoring and Alerts: Ensure you have robust monitoring and alerting systems in place to quickly identify and mitigate any issues that arise during testing. 3. Data Integrity: Be cautious about the data being used and generated during tests. Use test data that won't interfere with real user data or business operations. 4. Scalability Testing: Production environments are ideal for scalability testing because they reflect real-world conditions. However, make sure to gradually increase the load to avoid sudden spikes that could crash the system. 5. Legal and Compliance: Ensure that performance testing in production complies with any legal or regulatory requirements, especially if sensitive data is involved. 6. Backup and Recovery: Have a backup and recovery plan in place in case the performance test causes unexpected issues. 7. Communication: Inform stakeholders and users about the testing schedule and potential impacts to avoid confusion and manage expectations. --
This video covers some of the scenarios. I will plan to add more in future. In the daily quizzes most of the questions are scenario based - www.youtube.com/@RaghavPal/community Here you will need to search with JMeter
Hi raghav asking feom interviews perspective and realtim work.. Does one needs to have scripting coding knowledgea for performance testing and that also in jmeter...? Like bash scripting would be required...
Hi Raghav, I am Avanthi and having 10years of experience in manual testing....now I wanna learn any other tool....i do not know ABC of coding..... I request you to suggest me what would I learn....is it selenium testing or performance testing or any other tools... Please Raghav....i request you to suggest
Hello Avanthi.. So if you want to move into Automation as many companies these days are expecting us to know it, you can first select any programming language(Java /Javascript) and clear the basics and then move on with any of the UI testing tools like Selenium, Cypress or Playwright and start learning and mastering it and start developing a framework, Similarly if you want to go for Api testing you can select Rest Assured,Soap UI, Karate framework etc and start mastering it, If you want to go into mobile testing you can select Appium as it is most popular and used everywhere.. But if you feel that your coding is weak ,you can go ahead with the performance testing tools like jmeter, loadrunner etc but yeah even in these a little bit of scripting knowledge is required so its better you learn any programming knowledge first and then pick any of the tools as per your requirements. There is also other Datawarehouse Testing/ETL Testing but in this your SQL should be really strong.
@@ashking1113 thanks alot Ash...thanks for taking time and replying to my comment.... Surely i will consider your suggestion and will work accordingly 🙂
Hi Raghav, in loadrunner we have 3 pacing options, and almost we go with -start new iteration at fixed intervals every **** seconds ..... Let's assume me have given 60 sec as pacing and our iteration is taking 58sec then it will wait for 2 sce before starting the nxt iteration and if the iteration is taking 62 sec then the nxt iteration starts immediately without any wait time.... How can we implement this in Jmeter?
Hi Sandhya, In JMeter, you can implement a similar pacing option using a Constant Timer element. Here are the steps to implement the pacing option: Add a Constant Timer element under the Thread Group element in your test plan. Set the "Thread Delay" value to the desired pacing time in milliseconds. For example, if you want to wait for 60 seconds between iterations, set the "Thread Delay" value to 60000. Set the "Calculate Throughput based on" value to "this thread only". This will ensure that the pacing time is applied per thread and not across all threads in the test plan. If your iteration takes less time than the pacing time, the Constant Timer will add a delay to wait until the next pacing time. If your iteration takes longer than the pacing time, the Constant Timer will not add any additional delay before starting the next iteration. Note: The Constant Timer element will add a delay after each sampler element in the thread group, so make sure to place it at the end of the thread group if you want to apply the pacing time to the entire thread group. I hope this helps! Let me know if you have any other questions.
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
Hi Prem, In order to automate the Microsoft login page using JMeter, you will need to extract the value of the "client_request_id" parameter and use it in subsequent requests Here are the steps you can follow: Add a "HTTP Request" sampler to your test plan and configure it to load the URL of your project Add a "Regular Expression Extractor" post-processor to the "HTTP Request" sampler, and configure it to extract the value of the "client_request_id" parameter from the response. Use the following regular expression: "client_request_id=(.+?)&" and set the "Reference Name" to something like "client_request_id" Add another "HTTP Request" sampler for the authorize API and configure it to use the extracted "client_request_id" value as a parameter. You can use the ${client_request_id} variable to reference the extracted value Ensure that the "Regular Expression Extractor" is placed after the sampler and the value is being stored to use it in the next sampler. Run your test and check the results, you will see the client_request_id is being passed in the authorize API. You can also use "Debug Sampler" to check the extracted value of the client-request-id note: above steps are based on the assumption that the client_request_id value is being passed in the response of the first request. If the value is being passed in another way, you will have to adjust the steps accordingly
Hi raghav, really great working ...I want to ask you about ""regular expressions "" , you know if we record a script or a scenario has credentials like (user name & password) server give us a ""session Id"" you know that's ^ unique ^ so if we rerun our script , an error will occurred because of it , how we can handle that ? ...thank you
You can achieve it by correlation in JMeter. You can get the dynamic value(here sessionid) using the post processor, Regular Expression Extractor. And pass this to subsequent requests.
Hello Raghav sir, could you please upload video for mobile performance testing, I'm not able to record the script for mobile application, i referred your videos eventhough not able to record the script, can you please help us
Hi Prani, To connect JMeter to the browser, you need to set up a proxy server in JMeter and configure your browser to use that proxy server. Here are the steps to set up a proxy server in JMeter version 5.5: Open JMeter and create a new Test Plan. Right-click on the Test Plan and select Add > Threads (Users) > Thread Group. In the Thread Group, add a new Config Element by right-clicking on the Thread Group and selecting Add > Config Element > HTTP Request Defaults. In the HTTP Request Defaults, set the Server Name or IP field to the hostname or IP address of the website you want to test. Next, add a new Sampler by right-clicking on the Thread Group and selecting Add > Sampler > HTTP Request. In the HTTP Request, set the Path field to the path of the website you want to test (e.g., /index.html). Now, add a new Config Element by right-clicking on the Thread Group and selecting Add > Config Element > HTTP(S) Test Script Recorder. In the HTTP(S) Test Script Recorder, set the Target Controller field to the name of the Sampler you created in step 5. Click the Start button to start the recorder. Now, you need to configure your browser to use JMeter as a proxy server. Here are the steps to do that: Open your browser's settings and navigate to the network or proxy settings Set the proxy settings to use the IP address and port number of the JMeter proxy server. By default, the JMeter proxy server listens on port 8888. Save the proxy settings and start browsing the website you want to test. JMeter will record all the HTTP requests and responses as you browse the website, allowing you to create and run performance tests based on that data
Pooja You can put the auth token in JMeter in a few different places, depending on how you want to use it. *HTTP Header Manager* The most common place to put the auth token is in the HTTP Header Manager. This will allow you to send the auth token with all of your requests. To add the auth token to the HTTP Header Manager, follow these steps: 1. Right-click on the Test Plan and select Add > Config Element > HTTP Header Manager. 2. In the HTTP Header Manager, add a new header with the following name and value: ``` Name: Authorization Value: Bearer {token} ``` Replace `{token}` with your auth token. *User Defined Variables* Another way to put the auth token in JMeter is to use a User Defined Variable. This allows you to store the auth token in a central location and then use it in multiple requests. To add the auth token to a User Defined Variable, follow these steps: 1. Right-click on the Test Plan and select Add > Config Element > User Defined Variables. 2. In the User Defined Variables window, add a new variable with the following name and value: ``` Name: auth_token Value: {token} ``` Replace `{token}` with your auth token. *Once you have added the auth token to JMeter, you can use it in your requests by referencing the variable name.* For example, to send the auth token in the header of a request, you would use the following expression: ``` ${auth_token} ``` *Which method you choose to use depends on your specific needs and preferences.* The HTTP Header Manager is the most common method, but using User Defined Variables can be useful if you need to use the auth token in multiple requests. I hope this helps
Hii Raghav ...iam having one issue ...iam working in for one of the MNC ..iam working as performance tester using jmter...my issue is after recording. body(not response body) data is commenting.which ever data is passing in the body entire data is commented. Commucated with development team as well .they said that body of data containing the application URL..cause of forward slash (//) tool is commenting data. Is there any way to over come this issue . Can u let me know the resolution if having any idea about data commented in body. Thank you in advance
We have 2 options to stop a running test Stop - stops abruptly and cancels any running threads Shutdown - stops gracefully, waits for any running thread to complete Initial time delay - Hope you are talking about start up delays here - this is to specify after how many seconds each thread will start
Hello Raghav I have one question related to Neoload. Can you please help me with a short video. In Neoload, I am correlating the whole response body and printing it in a javascript through assigning it in a variable. Now, I want to access any of its key pair value but not able to do so. For example if the Response body contains some value let's say "name": "Raghav" and I want to get this name in a variable and want to print in the console using JavaScript in Neoload. Please help.
Hi Making a video on this can take time. For now let's break down how you can access and extract key-value pairs from a Neoload response body using JavaScript. Step 1: Capture the Entire Response Body You're already doing this part correctly. You've likely used a variable extractor in Neoload to store the entire response body in a variable. Let's assume this variable is called responseBody Step 2: Parse the Response Body (Assuming it's JSON) In most cases, API responses are in JSON format. So, we'll need to parse the response body string into a JavaScript object to work with it. JavaScript var responseObject = JSON.parse(responseBody); Use code with caution. Step 3: Access the Desired Key-Value Pair Now that you have a JavaScript object, you can access the value associated with the "name" key like this: JavaScript var nameValue = responseObject.name; Use code with caution. Step 4: Print the Value to the Console Finally, let's print the extracted nameValue to the Neoload console: JavaScript console.log("Extracted Name: " + nameValue); Use code with caution. Putting it Together Here's the complete JavaScript code snippet you can use in Neoload: JavaScript var responseObject = JSON.parse(responseBody); var nameValue = responseObject.name; console.log("Extracted Name: " + nameValue); Use code with caution. Important Notes: Error Handling: It's always good practice to add some error handling in case the response body isn't valid JSON or the "name" key doesn't exist. Nested Keys: If the "name" key is nested deeper within the JSON structure, you'll need to adjust the access accordingly (e.g., responseObject.data.user.name). Other Data Formats: If your response body isn't in JSON, you might need to use a different parsing method depending on the format (e.g., XML parsing for XML responses) -
@@RaghavPal first of all, thank you so much for the response. Really appreciated. Yes, my response is in JSON. I tried the above method but it's not returning anything. I am getting some error ( I will share the error soon). However I will try once again with your code and keep you posted.
Hello Raghav. Thank you it's working as expected. One more help needed related to this. I want to control the execution of the next request based on a comparison done in the javascript. Let's say, after extracting some business value, I am comparing it with some certain standard and based on comparison status, I want the next request to be executed.
To control the execution of the next request in Neoload based on a comparison done in JavaScript, use Logical Actions. Here's a concise guide: Steps: Add a Logical Action to your request. Choose the logical action type (e.g., "If"). Enter your JavaScript comparison code in the "Condition" field. Configure "Then" and "Else" actions accordingly. Example JavaScript Code: javascript if (${BusinessValue} > 100) { ${NextRequest}.execute(); } else { ${NextRequest}.skip(); } -
One of the greatest thing and I like the second most thing from Raghav Pal is adding the notes in the description. The first thing I love the most is his explanation of topics made the learning at ease and less stressful. This is very useful for a reason. Than you Raghav Pal for contributing the knowledge to others. Keep doing the good work sir
Thanks a ton Ramana..thanks for your kind words. humbled
You are simple and cool tutor. Unique Guy. Keep it..
Thanks Vinod
Thanks Raghav. As always, a very useful video. You are a great teacher.
So nice of you
Thank you very much raghav, watching your video before going for a performance testing consultant role interview ❤
Great to know Abhishek. All the best
Very nicely explained - novice to beginner level can definitely clear the interview .. Raghav ji Please make some zero to hero series to learn it more
Sure, will do Lavanya.. thanks
Most Waited Video..thanks for uploading video....
RAGHAV Sir today your Look changed..
Its Good..to See..🙂🙂
Thanks
Same here, most awaited video 😊👍
Hi Raghav..this is very useful video for interview..thanks for helping us.
Glad you liked it Pooja
very use full secession step by step explained thank u Sri
You are most welcome
Thanks @Raghav for the video 👍🙂
Most welcome Sarang
Very helpful..Appreciate u r hardwork👏
Thanks a lot 😊
Very good tutorial I have cleared all doubts
Glad to hear that
Video is just awesome👍it really helpful for me..Thank you so much... Keep going ..😊
Most welcome 😊
Thank you so much Sir for uploading this, really very helpful. Almost every company asks for Jmeter experience these days when we look for Performance Testing role, please let me know if this content is enough for me to clear the interview as well as to clear the Official Jmeter Intro Certification Exam ??
Hi Vybhav, you will need to do hands-on, Can find tutorials here - automationstepbystep.com/
@@RaghavPal Sure, thanks a lot. I am happy to inform that I have cleared the Blazemeter Jmeter Intro level certification.The Blazemeter University course also helped me in interview preparation for Jmeter to an extent. Thank you so much once again for the Jmeter Tutorial playlist which really helped me to understand the Jmeter concepts well and hence to be able to successfully get certified in Jmeter Intro level ☺️
thanks Sir, wishing you all the best
So nice of you
Thankyou for very informative session
Most Welcome Ruchin
A nice video to clear out some of the basics
Happy to hear that
Hi Raghav Sir, this is helpful and thanks for helping so many with your teaching.
Your channel is so good that I have two subscriptions with different accounts.
I have one question, can you please make a video in which we can know the real customer scenarios for JMeter test with API testing from your experience.
Some real time customer scenarios.
Also how to use the Groovy inside the JMeter and use it.
Thanks
I will do Arya, thanks
@@RaghavPal Thank you for you tutorials - just checking to see if you have made this video - Real scenario performance testing if yes could you please point me to the video?
Thank you for this video
So nice of you Pedro
Thankyou raghav for creating such a detail video. Its helpful for beginners and experience as u have shared example for each as well as details in description. It will be helpful if you can share scenario-based questions for e.g i have 200url in csv i want to segregate url giving 200/400 or i want to verify url in loop based on each category for e.g in google search all video, image one after another.
Sure, I will plan Hanika
By the way this video was awesome 👍😎.
Thanks
Hi Raghav please make a video for Jmeter performance testing using beanshell interview questions?
Sure, will plan Vipin
This is so helpful! Thanks.
Most welcome Daniel
Thanks Raghav.
Most welcome Amiya
Nice tutorial
Thanks Ishan
Hello Raghav. Thank you for the wonderful contents.
I have one query, How to capture/ record scripts through Neoload and Jmeter for a desktop applications ( like OF applications). Is it possible to record? Any supportive documents or video would be helpful. Thanks in advance!!
For NeoLoad
Use Proxy Recorder: Set NeoLoad as a proxy to capture HTTP/HTTPS traffic from the desktop app.
Alternative: If it uses other protocols, capture with Wireshark and convert traffic for NeoLoad
For JMeter
HTTP(S) Test Script Recorder: Use it if the app uses HTTP/HTTPS.
Alternative: Use Fiddler to capture traffic and import into JMeter for non-web traffic
Resources
NeoLoad Documentation: Neotys
JMeter Tutorials: Search TH-cam for "record desktop application with JMeter."
This should get you started quickly..
@RaghavPal Thank you Raghav for the response. Is it possible for you to make a demo video on this topic? Would be helpful for many of us. A humble request.
I will plan in some time
@@RaghavPal Thank you. I would be grateful to you.
Thanks a lot Raghav.. I have a performance testing interview on this Saturday. I have completed your jmeter beginners entire course and this one. Also in my current project I have created simple test plans also.. Is it enough for this interview? Do I need to check on intermediate level videos also?
Hi Swathy, if you have done good hands-on, it should be fine
Thanks Raghav :)
Most welcome Peeyush
Humble request :-. Try to show demo in windows laptop.
Your most of videos are in Mac OS.
🙏
Sure Madhav, this was mostly on windows
Hi Raghav, Thanks for this knowledge sharing session, do you have Spike test,
Below topics would be great if you can make videos
+ Create Spike Testing Script with JMeter
+ Execute Script
+ Analyze Test Result
Hi Aswath
I will check and plan on this
@@RaghavPal thanks a lot for replying
@@RaghavPal any plans UI performance test sessions ?
We can use JMeter for that. Let me know if you need any specific tool
Thank you so much Raghav for this useful video . Kind of brushing up post. Well, I am planning to take ISTQB specialist Performance Testing certification. It will be helpful if you can make some tutorials on the syllabus.
Sure, I will do
Can we do performance test in Production environment??
Adbul
You can do, but have to be careful and proceed only after taking necessary permissions and approvals
Here are some key points to keep in mind:
1. Impact on Users: Performance tests can generate significant load, which might affect the experience of real users. It's crucial to schedule tests during off-peak hours or when user activity is minimal.
2. Monitoring and Alerts: Ensure you have robust monitoring and alerting systems in place to quickly identify and mitigate any issues that arise during testing.
3. Data Integrity: Be cautious about the data being used and generated during tests. Use test data that won't interfere with real user data or business operations.
4. Scalability Testing: Production environments are ideal for scalability testing because they reflect real-world conditions. However, make sure to gradually increase the load to avoid sudden spikes that could crash the system.
5. Legal and Compliance: Ensure that performance testing in production complies with any legal or regulatory requirements, especially if sensitive data is involved.
6. Backup and Recovery: Have a backup and recovery plan in place in case the performance test causes unexpected issues.
7. Communication: Inform stakeholders and users about the testing schedule and potential impacts to avoid confusion and manage expectations.
--
sir make a complete course on loadrunnner also like jmeter.
Thanks sir you are really helping many people
Do we have any scenario based interview questions?
This video covers some of the scenarios. I will plan to add more in future. In the daily quizzes most of the questions are scenario based - www.youtube.com/@RaghavPal/community
Here you will need to search with JMeter
Hi raghav asking feom interviews perspective and realtim work.. Does one needs to have scripting coding knowledgea for performance testing and that also in jmeter...? Like bash scripting would be required...
Hi Adarsh, this will ans your query - th-cam.com/video/LGBd4qSt3JM/w-d-xo.html
What are the scenario for E-commerce website? How to validate it? please make a video
I will do Deepak
Hi Raghav,
I am Avanthi and having 10years of experience in manual testing....now I wanna learn any other tool....i do not know ABC of coding.....
I request you to suggest me what would I learn....is it selenium testing or performance testing or any other tools...
Please Raghav....i request you to suggest
Hello Avanthi.. So if you want to move into Automation as many companies these days are expecting us to know it, you can first select any programming language(Java /Javascript) and clear the basics and then move on with any of the UI testing tools like Selenium, Cypress or Playwright and start learning and mastering it and start developing a framework, Similarly if you want to go for Api testing you can select Rest Assured,Soap UI, Karate framework etc and start mastering it, If you want to go into mobile testing you can select Appium as it is most popular and used everywhere.. But if you feel that your coding is weak ,you can go ahead with the performance testing tools like jmeter, loadrunner etc but yeah even in these a little bit of scripting knowledge is required so its better you learn any programming knowledge first and then pick any of the tools as per your requirements. There is also other Datawarehouse Testing/ETL Testing but in this your SQL should be really strong.
Good suggestions Ash, hope it helps Avanthi
@@ashking1113 thanks alot Ash...thanks for taking time and replying to my comment....
Surely i will consider your suggestion and will work accordingly 🙂
Hi Raghav, in loadrunner we have 3 pacing options, and almost we go with -start new iteration at fixed intervals every **** seconds ..... Let's assume me have given 60 sec as pacing and our iteration is taking 58sec then it will wait for 2 sce before starting the nxt iteration and if the iteration is taking 62 sec then the nxt iteration starts immediately without any wait time.... How can we implement this in Jmeter?
Hi Sandhya,
In JMeter, you can implement a similar pacing option using a Constant Timer element.
Here are the steps to implement the pacing option:
Add a Constant Timer element under the Thread Group element in your test plan.
Set the "Thread Delay" value to the desired pacing time in milliseconds. For example, if you want to wait for 60 seconds between iterations, set the "Thread Delay" value to 60000.
Set the "Calculate Throughput based on" value to "this thread only". This will ensure that the pacing time is applied per thread and not across all threads in the test plan.
If your iteration takes less time than the pacing time, the Constant Timer will add a delay to wait until the next pacing time. If your iteration takes longer than the pacing time, the Constant Timer will not add any additional delay before starting the next iteration.
Note: The Constant Timer element will add a delay after each sampler element in the thread group, so make sure to place it at the end of the thread group if you want to apply the pacing time to the entire thread group.
I hope this helps! Let me know if you have any other questions.
any video sir, how we do functional testing with jmeter
Yes, can find here - automationstepbystep.com/
Sir can u provide neoload and load runner detailed tutorials plss it would be very helpful to u
Hi Harish, I will plan
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
Hi Prem,
In order to automate the Microsoft login page using JMeter, you will need to extract the value of the "client_request_id" parameter and use it in subsequent requests
Here are the steps you can follow:
Add a "HTTP Request" sampler to your test plan and configure it to load the URL of your project
Add a "Regular Expression Extractor" post-processor to the "HTTP Request" sampler, and configure it to extract the value of the "client_request_id" parameter from the response. Use the following regular expression: "client_request_id=(.+?)&" and set the "Reference Name" to something like "client_request_id"
Add another "HTTP Request" sampler for the authorize API and configure it to use the extracted "client_request_id" value as a parameter. You can use the ${client_request_id} variable to reference the extracted value
Ensure that the "Regular Expression Extractor" is placed after the sampler and the value is being stored to use it in the next sampler.
Run your test and check the results, you will see the client_request_id is being passed in the authorize API.
You can also use "Debug Sampler" to check the extracted value of the client-request-id
note: above steps are based on the assumption that the client_request_id value is being passed in the response of the first request. If the value is being passed in another way, you will have to adjust the steps accordingly
Hi raghav, really great working ...I want to ask you about ""regular expressions "" , you know if we record a script or a scenario has credentials like (user name & password) server give us a ""session Id"" you know that's ^ unique ^ so if we rerun our script , an error will occurred because of it , how we can handle that ? ...thank you
Hi Karim, not very sure, will need to check on this online
You can achieve it by correlation in JMeter. You can get the dynamic value(here sessionid) using the post processor, Regular Expression Extractor. And pass this to subsequent requests.
@@RaghavPal OK raghav, thank you very much and I am very interested in your Testing topics.
brother please do video about data base
I will plan Balaji.
Hello Raghav sir, could you please upload video for mobile performance testing, I'm not able to record the script for mobile application, i referred your videos eventhough not able to record the script, can you please help us
Hi Sakthi, the existing videos are already published, will need to check online
If we are recording the Scripts through Proxy in JMeter and we get an error then what should we do?
will need to see the logs and error details
@@RaghavPal thank you sir.
sir how to connect jmeter into the browser of jmeter version 5.5 ??
Hi Prani,
To connect JMeter to the browser, you need to set up a proxy server in JMeter and configure your browser to use that proxy server.
Here are the steps to set up a proxy server in JMeter version 5.5:
Open JMeter and create a new Test Plan.
Right-click on the Test Plan and select Add > Threads (Users) > Thread Group.
In the Thread Group, add a new Config Element by right-clicking on the Thread Group and selecting Add > Config Element > HTTP Request Defaults.
In the HTTP Request Defaults, set the Server Name or IP field to the hostname or IP address of the website you want to test.
Next, add a new Sampler by right-clicking on the Thread Group and selecting Add > Sampler > HTTP Request.
In the HTTP Request, set the Path field to the path of the website you want to test (e.g., /index.html).
Now, add a new Config Element by right-clicking on the Thread Group and selecting Add > Config Element > HTTP(S) Test Script Recorder.
In the HTTP(S) Test Script Recorder, set the Target Controller field to the name of the Sampler you created in step 5.
Click the Start button to start the recorder.
Now, you need to configure your browser to use JMeter as a proxy server. Here are the steps to do that:
Open your browser's settings and navigate to the network or proxy settings
Set the proxy settings to use the IP address and port number of the JMeter proxy server. By default, the JMeter proxy server listens on port 8888.
Save the proxy settings and start browsing the website you want to test.
JMeter will record all the HTTP requests and responses as you browse the website, allowing you to create and run performance tests based on that data
Hi raghav, could you please attach a PDF for the interview question
Sure, I have added all notes in description too
Hi Where do I put the auth token ?
Pooja
You can put the auth token in JMeter in a few different places, depending on how you want to use it.
*HTTP Header Manager*
The most common place to put the auth token is in the HTTP Header Manager. This will allow you to send the auth token with all of your requests.
To add the auth token to the HTTP Header Manager, follow these steps:
1. Right-click on the Test Plan and select Add > Config Element > HTTP Header Manager.
2. In the HTTP Header Manager, add a new header with the following name and value:
```
Name: Authorization
Value: Bearer {token}
```
Replace `{token}` with your auth token.
*User Defined Variables*
Another way to put the auth token in JMeter is to use a User Defined Variable. This allows you to store the auth token in a central location and then use it in multiple requests.
To add the auth token to a User Defined Variable, follow these steps:
1. Right-click on the Test Plan and select Add > Config Element > User Defined Variables.
2. In the User Defined Variables window, add a new variable with the following name and value:
```
Name: auth_token
Value: {token}
```
Replace `{token}` with your auth token.
*Once you have added the auth token to JMeter, you can use it in your requests by referencing the variable name.* For example, to send the auth token in the header of a request, you would use the following expression:
```
${auth_token}
```
*Which method you choose to use depends on your specific needs and preferences.* The HTTP Header Manager is the most common method, but using User Defined Variables can be useful if you need to use the auth token in multiple requests.
I hope this helps
Hii Raghav ...iam having one issue ...iam working in for one of the MNC ..iam working as performance tester using jmter...my issue is after recording. body(not response body) data is commenting.which ever data is passing in the body entire data is commented. Commucated with development team as well .they said that body of data containing the application URL..cause of forward slash (//) tool is commenting data.
Is there any way to over come this issue . Can u let me know the resolution if having any idea about data commented in body.
Thank you in advance
will need some example Ayana
In view result tree(http request) some of the response has been failed .So how to what's the error? why failed? please ans
Hi Deepak, for that you can add assertions and also add assertion listener
Shut down and initial time delay what is
We have 2 options to stop a running test
Stop - stops abruptly and cancels any running threads
Shutdown - stops gracefully, waits for any running thread to complete
Initial time delay - Hope you are talking about start up delays here - this is to specify after how many seconds each thread will start
I got a gift from mister thng
ok
Hello Raghav
I have one question related to Neoload. Can you please help me with a short video.
In Neoload, I am correlating the whole response body and printing it in a javascript through assigning it in a variable. Now, I want to access any of its key pair value but not able to do so. For example if the Response body contains some value let's say "name": "Raghav" and I want to get this name in a variable and want to print in the console using JavaScript in Neoload. Please help.
Hi
Making a video on this can take time. For now let's break down how you can access and extract key-value pairs from a Neoload response body using JavaScript.
Step 1: Capture the Entire Response Body
You're already doing this part correctly. You've likely used a variable extractor in Neoload to store the entire response body in a variable. Let's assume this variable is called responseBody
Step 2: Parse the Response Body (Assuming it's JSON)
In most cases, API responses are in JSON format. So, we'll need to parse the response body string into a JavaScript object to work with it.
JavaScript
var responseObject = JSON.parse(responseBody);
Use code with caution.
Step 3: Access the Desired Key-Value Pair
Now that you have a JavaScript object, you can access the value associated with the "name" key like this:
JavaScript
var nameValue = responseObject.name;
Use code with caution.
Step 4: Print the Value to the Console
Finally, let's print the extracted nameValue to the Neoload console:
JavaScript
console.log("Extracted Name: " + nameValue);
Use code with caution.
Putting it Together
Here's the complete JavaScript code snippet you can use in Neoload:
JavaScript
var responseObject = JSON.parse(responseBody);
var nameValue = responseObject.name;
console.log("Extracted Name: " + nameValue);
Use code with caution.
Important Notes:
Error Handling: It's always good practice to add some error handling in case the response body isn't valid JSON or the "name" key doesn't exist.
Nested Keys: If the "name" key is nested deeper within the JSON structure, you'll need to adjust the access accordingly (e.g., responseObject.data.user.name).
Other Data Formats: If your response body isn't in JSON, you might need to use a different parsing method depending on the format (e.g., XML parsing for XML responses)
-
@@RaghavPal first of all, thank you so much for the response. Really appreciated.
Yes, my response is in JSON. I tried the above method but it's not returning anything. I am getting some error ( I will share the error soon). However I will try once again with your code and keep you posted.
Hello Raghav. Thank you it's working as expected. One more help needed related to this. I want to control the execution of the next request based on a comparison done in the javascript. Let's say, after extracting some business value, I am comparing it with some certain standard and based on comparison status, I want the next request to be executed.
To control the execution of the next request in Neoload based on a comparison done in JavaScript, use Logical Actions. Here's a concise guide:
Steps:
Add a Logical Action to your request.
Choose the logical action type (e.g., "If").
Enter your JavaScript comparison code in the "Condition" field.
Configure "Then" and "Else" actions accordingly.
Example JavaScript Code:
javascript
if (${BusinessValue} > 100) {
${NextRequest}.execute();
} else {
${NextRequest}.skip();
}
-
@@RaghavPal really helpful... Thank you so much ❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️