Raghav is great! Thank you so much for your detailed explanations of how to use JMeter. Following your training has worked much better with my style of learning. I really do appreciate all your effort to transfer your knowledge to us.
hi raghav, i am not able to save my test plan on jmeter and according to this video when i click on browse i get the following error on my log ERROR o.a.j.JMeter: Uncaught exception in thread Thread[AWT-EventQueue-0,6,main] java.lang.NoClassDefFoundError: Could not initialize class org.apache.jmeter.gui.util.FileDialoger what should i do thanks
hi raghav,i recorded website actives form bad boy and exported jmx file .now when i import the same file in jmeter getting this error:-CannotResolveClassException: node and Detail:com.thoughtworks.xstream.mapper.CannotResolveClassException: node
Hi Deepak, badboy is not stable, you can try JMeter HTTP Test Script recorder or Chrome blazemeter extenstion. th-cam.com/video/zn1DSUZ6t64/w-d-xo.html
sir in this video for csv data set config, my second test also got failed. dont know the reason as it is not able to authenticate username and pwd. I tried to put usernname and pwd in HTTP authorization manager but that did not worked also ..its still failing ...my all encoding field is also checked..
@@RaghavPal You mentioned we had learned how to use curly brackets in one of the previous videos. But I have been watching all the video on the beginner series but haven't come across that video
Hi Javlon, it may be in Functions & Variables, I do not remember very well as it has been some time I created this playlist, You can check all here automationstepbystep.com/
@@RaghavPal sir Raghav when i add plazemeter-citrex plugin it opened the template but i did sow one option for citrix , and the other options didnt appeard. are there be another issue ? thanks
Dhana In JMeter, the Keystore Configuration is a type of Config Element that allows you to specify a keystore containing certificates and private keys to be used for SSL/TLS connections. This is particularly useful when testing applications that require mutual authentication or client-side certificates The Keystore Configuration element is used to define the keystore that JMeter will use to establish SSL/TLS connections. You can configure the keystore by specifying the following properties: Keystore File The path to the keystore file, which can be in JKS (Java KeyStore) or PKCS12 format. Keystore Type The type of keystore, which can be either JKS or PKCS12. Keystore Password The password used to access the keystore. Key Alias The alias of the key to be used for the SSL/TLS connection. Here is an example of how you can configure the Keystore Configuration element in JMeter: Keystore Configuration + Keystore File: path/to/keystore.jks + Keystore Type: JKS + Keystore Password: mypassword + Key Alias: mykey By configuring the Keystore Configuration element, you can specify the keystore and certificates to be used for SSL/TLS connections, allowing JMeter to establish secure connections with the application under test. Additionally, you can also specify the truststore configuration, which defines the trusted certificates that JMeter will use to verify the identity of the server. Truststore File The path to the truststore file, which can be in JKS (Java KeyStore) or PKCS12 format. Truststore Type The type of truststore, which can be either JKS or PKCS12. Truststore Password The password used to access the truststore. Here is an example of how you can configure the Truststore Configuration element in JMeter: Truststore Configuration + Truststore File: path/to/truststore.jks + Truststore Type: JKS + Truststore Password: mypassword By configuring both the keystore and truststore, you can establish secure SSL/TLS connections with the application under test, allowing you to test scenarios that require mutual authentication or client-side certificates. -
What is difference between elements under test plan directly VS as a sub child indrectly. Eg. java request under test plan directly vs under thread group ( means under test plan hierarchy indirectly).
these are diff levels, you can have multiple thread groups in a test plan, So if a request/element is added in a test plan, it will get executed as part of the test plan run, else you can add it inside a thread group and run the thread group
Hi Sir, I tried to do with Dataset config and i am able to see only first name and last name in the result not showing the name entered in the file Thanks in advance Shinsad
Shinsad Here’s how to fix the issue in JMeter where `${First Name}` and `${Last Name}` are not showing correctly: --- ### Step 1: Check CSV Data Set Config 1. Verify the CSV file: ``` First Name,Last Name John,Doe Jane,Smith ``` 2. Ensure the Variable Names in the CSV Data Set Config match exactly: - Set Variable Names: `First Name,Last Name` (case-sensitive). - Use comma as the delimiter if your CSV file uses commas. --- ### Step 2: Use Correct Syntax in Samplers - In your HTTP Sampler, use: ``` ${First Name} ${Last Name} ``` Make sure there are no extra spaces or typos. --- ### Step 3: Add a Debug Sampler (Optional) 1. Right-click Thread Group > Add > Sampler > Debug Sampler. 2. Run the test and check the variables in the View Results Tree to confirm if `${First Name}` and `${Last Name}` are being correctly read. --- ### Step 4: Verify the CSV Data - Ensure the CSV file is properly formatted (no extra spaces or blank rows). - Avoid special characters in the file name or column headers. --- ### Step 5: Run the Test Again After fixing the CSV and variable syntax, run the test, and it should show the correct values in the request: `Request John Doe` (or other names from the file). Let me know if this works ,
@@RaghavPal Sir now its working Thanks for your quick reply sir i am learning lots of automation from your website sir its really helping me to do something even i am a pure manual testing perosn
Hi raghav, I've recorded the jmeter script from blaszemeter plugin and imported and JMETER and ran the script. I'm consistently getting login failure due to "Csrf token validation failed" . Can you please explain how to resolve this issue ?
@@RaghavPal 2020-06-12 15:17:58,460 INFO o.a.j.s.FileServer: Set new base='D:\apache-jmeter-5.3\bin\JMeter Workspace' 2020-06-12 15:17:58,475 INFO o.a.j.e.StandardJMeterEngine: Running the test! 2020-06-12 15:17:58,475 INFO o.a.j.s.SampleEvent: List of sample_variables: [] 2020-06-12 15:17:58,481 INFO o.a.j.p.j.s.JavaSampler: Created class: org.apache.jmeter.protocol.java.test.JavaTest. Uses tearDownTest: 2020-06-12 15:17:58,482 INFO o.a.j.g.u.JMeterMenuBar: setRunning(true, *local*) 2020-06-12 15:17:58,900 INFO o.a.j.e.StandardJMeterEngine: Starting ThreadGroup: 1 : Thread Group 2020-06-12 15:17:58,900 INFO o.a.j.e.StandardJMeterEngine: Starting 1 threads for group Thread Group. 2020-06-12 15:17:58,900 INFO o.a.j.e.StandardJMeterEngine: Thread will continue on error 2020-06-12 15:17:58,901 INFO o.a.j.t.ThreadGroup: Starting thread group... number=1 threads=1 ramp-up=1 delayedStart=false 2020-06-12 15:17:58,902 INFO o.a.j.t.ThreadGroup: Started thread group number 1 2020-06-12 15:17:58,902 INFO o.a.j.e.StandardJMeterEngine: All thread groups have been started 2020-06-12 15:17:58,905 INFO o.a.j.t.JMeterThread: Thread started: Thread Group 1-1 2020-06-12 15:17:58,906 INFO o.a.j.s.FileServer: Stored: D:/apache-jmeter-5.3/bin/JMeter Workspace/testdata1.csv 2020-06-12 15:17:59,228 INFO o.a.j.t.JMeterThread: Thread is done: Thread Group 1-1 2020-06-12 15:17:59,229 INFO o.a.j.t.JMeterThread: Thread finished: Thread Group 1-1 2020-06-12 15:17:59,229 INFO o.a.j.e.StandardJMeterEngine: Notifying test listeners of end of test 2020-06-12 15:17:59,229 INFO o.a.j.s.FileServer: Close: D:/apache-jmeter-5.3/bin/JMeter Workspace/testdata1.csv 2020-06-12 15:17:59,230 INFO o.a.j.g.u.JMeterMenuBar: setRunning(false, *local*)
Hi Amir, You can use post-processor extractor elements. this will help th-cam.com/video/7-NcyZuUQnw/w-d-xo.html th-cam.com/video/3w0x6u4-6ng/w-d-xo.html stackoverflow.com/questions/34463412/how-to-save-response-in-a-variable-in-jmeter
Hi Raghav. Thanks for all the nice videos. I am following them and hope to brush-up jmeter in sometime. But I am facing a problem that the orangeHRM site is not accepting Admin/admin123 credentials. Can you tell any other such real-life like login application?
Great work sir, very nice of you to share this quality content. By the way do you have an idea how to encrypt credentials on HTTP authorization manager?
Hi, Don't have a direct ans. This info can help bz.apache.org/bugzilla/show_bug.cgi?id=34321 www.jmeter-archive.org/How-to-mask-encrypt-values-sent-as-an-HTTP-request-parameter-td3200142.html
Hi Veena, for counters check this - www.blazemeter.com/blog/how-use-counter-jmeter-test The random variable config element is used to generate random numeric values within a range of specified minimum and maximum values. - it can be used whenever you need to generate any random values for e.g. You have a test where the input data is a number and you want to use a diff random number everytime. In this scenario instead of using a csv file or another way of hard coding, you can use this. examples.javacodegeeks.com/enterprise-java/apache-jmeter/jmeter-random-variable-example/
Hi, I have dedicated my life to the mission of education. I keep 90% of all my teaching free for everyone so all can get this knowledge and share further. Can see here - automationstepbystep.com/online-courses/
Good morning sir - Sir i have a query that i have e mailed you on your mail id (raghavpal.automation@gmail.com) along error screen shot and csv file. Issue Description - while retrieving the data from csv file tool shows the first name last name instead of my name i.e Amit sharma that i have saved in csv file.
@@RaghavPal Ok Sir - the thing is while i saved my csv file with inserting some details like first name and last name and after onwards when i am executes the command through j meter it shows Request ${firstname} ${lastname} instead of the name that i have saved in my csv file i.e first name is Amit and last name is sharma ok one more thing sir going forward in case we need to share the error screen shot so how can we share?
Hi Amit, I will need to check how you have setup the CSV data set config. You can email me raghav.qna@gmail.com. I do not generally recommend emails as, the response on mails can get delayed
Raghav is best teacher always. His teachings are spoon feeding. Thank you so much for wonderful videos
Thanks for the kind words .. Keep learning Venkat
Raghav is great! Thank you so much for your detailed explanations of how to use JMeter. Following your training has worked much better with my style of learning. I really do appreciate all your effort to transfer your knowledge to us.
Great to know this Susan, Wish you all the best. Never Stop Learning
i just tried same as your methood to login OrangeHRM but i found 7 result are passed and 7 are failed
please let me know where i was wrong
Ali, will be difficult to say without looking at your tests and setup.. I will suggest to check all the steps again and also see some online examples
Hi Raghav! Can you please elaborate all the config elements discussed in this video with some demo examples/urls for better understanding?
I will plan for this Kshipra
@@RaghavPal Thanks!!
hi raghav, i am not able to save my test plan on jmeter and according to this video when i click on browse i get the following error on my log
ERROR o.a.j.JMeter: Uncaught exception in thread Thread[AWT-EventQueue-0,6,main]
java.lang.NoClassDefFoundError: Could not initialize class org.apache.jmeter.gui.util.FileDialoger
what should i do
thanks
Hi Himanshu, pls check if this helps stackoverflow.com/questions/57190107/jmeter-why-get-error-when-try-to-save-test-plan/57194888
@@RaghavPal hi Raghav this worked!! Thank you
hi raghav,i recorded website actives form bad boy and exported jmx file .now when i import the same file in jmeter getting this error:-CannotResolveClassException: node and Detail:com.thoughtworks.xstream.mapper.CannotResolveClassException: node
Hi Deepak, badboy is not stable, you can try JMeter HTTP Test Script recorder or Chrome blazemeter extenstion. th-cam.com/video/zn1DSUZ6t64/w-d-xo.html
What if we need random number upto infinity or else 64bit or else 32 bit should we just skip value as blank or should we have to specify maximum value
can try, can check the documentation too, OR use randomNum function
sir in this video for csv data set config, my second test also got failed. dont know the reason as it is not able to authenticate username and pwd. I tried to put usernname and pwd in HTTP authorization manager but that did not worked also ..its still failing ...my all encoding field is also checked..
Hi Neha, will have to see your setup
Nice video.... but it is better for us if you use light theme of jmeter in all tutorials
Noted Nawaz, I cannot change the already created videos, but will try this on new videos
Thank you so much Raghav for the amazing videos! God bless you
You're welcome Sunil, Thanks for the wishes
Hi Raghav, In the previous videos I didnt come across Format for Refereing the variables. Please, do explain it once.
I will check and add
In which video did we learn how to use curly brackets ?
Hi Javlon, where is it referred
@@RaghavPal You mentioned we had learned how to use curly brackets in one of the previous videos.
But I have been watching all the video on the beginner series but haven't come across that video
Hi Javlon, it may be in Functions & Variables, I do not remember very well as it has been some time I created this playlist, You can check all here automationstepbystep.com/
@@RaghavPal bro how can I get in touch with you ?
Can write here or if something personal can email me
sir Raghav , cannot open template option,pls any help?
Hi Hazim, can be some diff in new version, Can check with this video - th-cam.com/video/SoW2pBak1_Q/w-d-xo.html
@@RaghavPal sir Raghav when i add plazemeter-citrex plugin it opened the template but i did sow one option for citrix , and the other options didnt appeard. are there be another issue ? thanks
not sure on that, will need to check online
Hi Raghav..
Can you explain about config elements>keystore configuration in detail
Thank you
Dhana
In JMeter, the Keystore Configuration is a type of Config Element that allows you to specify a keystore containing certificates and private keys to be used for SSL/TLS connections. This is particularly useful when testing applications that require mutual authentication or client-side certificates
The Keystore Configuration element is used to define the keystore that JMeter will use to establish SSL/TLS connections. You can configure the keystore by specifying the following properties:
Keystore File
The path to the keystore file, which can be in JKS (Java KeyStore) or PKCS12 format.
Keystore Type
The type of keystore, which can be either JKS or PKCS12.
Keystore Password
The password used to access the keystore.
Key Alias
The alias of the key to be used for the SSL/TLS connection.
Here is an example of how you can configure the Keystore Configuration element in JMeter:
Keystore Configuration
+ Keystore File: path/to/keystore.jks
+ Keystore Type: JKS
+ Keystore Password: mypassword
+ Key Alias: mykey
By configuring the Keystore Configuration element, you can specify the keystore and certificates to be used for SSL/TLS connections, allowing JMeter to establish secure connections with the application under test.
Additionally, you can also specify the truststore configuration, which defines the trusted certificates that JMeter will use to verify the identity of the server.
Truststore File
The path to the truststore file, which can be in JKS (Java KeyStore) or PKCS12 format.
Truststore Type
The type of truststore, which can be either JKS or PKCS12.
Truststore Password
The password used to access the truststore.
Here is an example of how you can configure the Truststore Configuration element in JMeter:
Truststore Configuration
+ Truststore File: path/to/truststore.jks
+ Truststore Type: JKS
+ Truststore Password: mypassword
By configuring both the keystore and truststore, you can establish secure SSL/TLS connections with the application under test, allowing you to test scenarios that require mutual authentication or client-side certificates.
-
@@RaghavPal thank you for the detailed explanation.
What is difference between elements under test plan directly VS as a sub child indrectly. Eg. java request under test plan directly vs under thread group ( means under test plan hierarchy indirectly).
these are diff levels, you can have multiple thread groups in a test plan, So if a request/element is added in a test plan, it will get executed as part of the test plan run, else you can add it inside a thread group and run the thread group
Very good stuff. Thanks!
Most welcome
Hi Sir,
I tried to do with Dataset config and i am able to see only first name and last name in the result not showing the name entered in the file
Thanks in advance
Shinsad
Shinsad
Here’s how to fix the issue in JMeter where `${First Name}` and `${Last Name}` are not showing correctly:
---
### Step 1: Check CSV Data Set Config
1. Verify the CSV file:
```
First Name,Last Name
John,Doe
Jane,Smith
```
2. Ensure the Variable Names in the CSV Data Set Config match exactly:
- Set Variable Names: `First Name,Last Name` (case-sensitive).
- Use comma as the delimiter if your CSV file uses commas.
---
### Step 2: Use Correct Syntax in Samplers
- In your HTTP Sampler, use:
```
${First Name} ${Last Name}
```
Make sure there are no extra spaces or typos.
---
### Step 3: Add a Debug Sampler (Optional)
1. Right-click Thread Group > Add > Sampler > Debug Sampler.
2. Run the test and check the variables in the View Results Tree to confirm if `${First Name}` and `${Last Name}` are being correctly read.
---
### Step 4: Verify the CSV Data
- Ensure the CSV file is properly formatted (no extra spaces or blank rows).
- Avoid special characters in the file name or column headers.
---
### Step 5: Run the Test Again
After fixing the CSV and variable syntax, run the test, and it should show the correct values in the request:
`Request John Doe` (or other names from the file).
Let me know if this works
,
@@RaghavPal Sir now its working Thanks for your quick reply sir
i am learning lots of automation from your website sir its really helping me to do something even i am a pure manual testing perosn
Hi raghav, I've recorded the jmeter script from blaszemeter plugin and imported and JMETER and ran the script. I'm consistently getting login failure due to "Csrf token validation failed" . Can you please explain how to resolve this issue ?
Hi Sumit, you will need to add token in your request. Check this - sqa.stackexchange.com/questions/33648/login-with-jmeter-for-performance-testing
@@RaghavPal Thanks Sir. Btw your explanations of all JMETER concepts are amazing.
I followed your steps, but in the tree result, it didnt show what i type in csv, instead it shows the $function name, can you tell what i did wrong?
Hi Axel, do you have any. logs or details for this
@@RaghavPal 2020-06-12 15:17:58,460 INFO o.a.j.s.FileServer: Set new base='D:\apache-jmeter-5.3\bin\JMeter Workspace'
2020-06-12 15:17:58,475 INFO o.a.j.e.StandardJMeterEngine: Running the test!
2020-06-12 15:17:58,475 INFO o.a.j.s.SampleEvent: List of sample_variables: []
2020-06-12 15:17:58,481 INFO o.a.j.p.j.s.JavaSampler: Created class: org.apache.jmeter.protocol.java.test.JavaTest. Uses tearDownTest:
2020-06-12 15:17:58,482 INFO o.a.j.g.u.JMeterMenuBar: setRunning(true, *local*)
2020-06-12 15:17:58,900 INFO o.a.j.e.StandardJMeterEngine: Starting ThreadGroup: 1 : Thread Group
2020-06-12 15:17:58,900 INFO o.a.j.e.StandardJMeterEngine: Starting 1 threads for group Thread Group.
2020-06-12 15:17:58,900 INFO o.a.j.e.StandardJMeterEngine: Thread will continue on error
2020-06-12 15:17:58,901 INFO o.a.j.t.ThreadGroup: Starting thread group... number=1 threads=1 ramp-up=1 delayedStart=false
2020-06-12 15:17:58,902 INFO o.a.j.t.ThreadGroup: Started thread group number 1
2020-06-12 15:17:58,902 INFO o.a.j.e.StandardJMeterEngine: All thread groups have been started
2020-06-12 15:17:58,905 INFO o.a.j.t.JMeterThread: Thread started: Thread Group 1-1
2020-06-12 15:17:58,906 INFO o.a.j.s.FileServer: Stored: D:/apache-jmeter-5.3/bin/JMeter Workspace/testdata1.csv
2020-06-12 15:17:59,228 INFO o.a.j.t.JMeterThread: Thread is done: Thread Group 1-1
2020-06-12 15:17:59,229 INFO o.a.j.t.JMeterThread: Thread finished: Thread Group 1-1
2020-06-12 15:17:59,229 INFO o.a.j.e.StandardJMeterEngine: Notifying test listeners of end of test
2020-06-12 15:17:59,229 INFO o.a.j.s.FileServer: Close: D:/apache-jmeter-5.3/bin/JMeter Workspace/testdata1.csv
2020-06-12 15:17:59,230 INFO o.a.j.g.u.JMeterMenuBar: setRunning(false, *local*)
Pls show me the syntax you are referring in the exact request setup
@@RaghavPal i know its late but I already solved it, thanks for the help your tutorials are awesome
How can we save data from the response and save it in a variable?
Hi Amir, You can use post-processor extractor elements. this will help
th-cam.com/video/7-NcyZuUQnw/w-d-xo.html
th-cam.com/video/3w0x6u4-6ng/w-d-xo.html
stackoverflow.com/questions/34463412/how-to-save-response-in-a-variable-in-jmeter
Any video to learn how to refer variable?
Hi Payal, you can check in JMeter playlists here - automationstepbystep.com/
Hi Raghav. Thanks for all the nice videos. I am following them and hope to brush-up jmeter in sometime. But I am facing a problem that the orangeHRM site is not accepting Admin/admin123 credentials. Can you tell any other such real-life like login application?
HI Rupesh, I checked this with credentials Admin | admin123 and it is working
If you still face issues can use any other website
can you please let me know how i can connect Mysql server with SSH in jmeter?
Hi Amit, I have not checked and will have to see this online
@@RaghavPal No , problem thanks
Great work sir, very nice of you to share this quality content. By the way do you have an idea how to encrypt credentials on HTTP authorization manager?
Hi, Don't have a direct ans. This info can help
bz.apache.org/bugzilla/show_bug.cgi?id=34321
www.jmeter-archive.org/How-to-mask-encrypt-values-sent-as-an-HTTP-request-parameter-td3200142.html
Hi Sir,Can you please tell me a real time use of counter and random variable config element.
Hi Veena, for counters check this - www.blazemeter.com/blog/how-use-counter-jmeter-test
The random variable config element is used to generate random numeric values within a range of specified minimum and maximum values. - it can be used whenever you need to generate any random values for e.g. You have a test where the input data is a number and you want to use a diff random number everytime. In this scenario instead of using a csv file or another way of hard coding, you can use this. examples.javacodegeeks.com/enterprise-java/apache-jmeter/jmeter-random-variable-example/
Sir , how to use
HtmlUnit Driver Config Elements
Hi Sagar, I will check and will try to create a session. For now you can take help from here - jmeter-plugins.org/wiki/HtmlUnitDriverConfig/
hi Raghav - will you please share your contact details, as i am unable to export jmx file through blaze meter
Hi Amit, you can let me know here the issues you are facing. Can also try this - converter.blazemeter.com/
@@RaghavPal - thanks Raghav its done now, actually i need to login into blazemeter to export the file through jmx..
thank you so much!!
Sir why are u giving these videos for free ?
Please reply
Hi, I have dedicated my life to the mission of education. I keep 90% of all my teaching free for everyone so all can get this knowledge and share further. Can see here - automationstepbystep.com/online-courses/
Hi Raghav is this video badic learners or mid learners,I don’t have any experience in j meter do you’ve any vid that I can learn from basics .thanks
@@RaghavPal thank u so much, teachers like u are blessing for students.
You can start from scratch here - automationstepbystep.com/online-courses/
Thanks
Change word Meter to Jmeter in the title. Otherwise another good tutorial :)
Done Muhtadi . Thanks
Good morning sir -
Sir i have a query that i have e mailed you on your mail id (raghavpal.automation@gmail.com) along error screen shot and csv file.
Issue Description - while retrieving the data from csv file tool shows the first name last name instead of my name i.e Amit sharma that i have saved in csv file.
Hi Amit, you can describe the issue here in detail, I may not be able to communicate through email
@@RaghavPal Ok Sir - the thing is while i saved my csv file with inserting some details like first name and last name and after onwards when i am executes the command through j meter it shows Request ${firstname} ${lastname} instead of the name that i have saved in my csv file i.e first name is Amit and last name is sharma
ok one more thing sir going forward in case we need to share the error screen shot so how can we share?
Hi Amit, I will need to check how you have setup the CSV data set config.
You can email me raghav.qna@gmail.com. I do not generally recommend emails as, the response on mails can get delayed
@@RaghavPal - Sent sir