filmov
tv
JMeter tutorial for beginners
Показать описание
#jmeter #tutorial #beginners
00:00 - JMeter setup
10:18 - JMeter recording
16:27 - JMeter csv config
29:06 - Blazemeter performance testing
----------------------------------------------------------------------------------------------------------------------------------------
Episode 1
Steps To Setup & Run Load Testing with JMeter:
1. Download JMeter Binaries and unzip it:
2. Under bin folder, run below script:
3. Test Plan will be created by default, rename it accordingly.
4. Under Test Plan, add the Thread (Users), select Thread Group and set the Thread Properties according to your testing.
- 1 thread is equivalent to 1 user
- Ramp-up period in Thread Properties is the total time. If you specify 10 users and ramp-up 10 seconds, means there will be 1 sec gap between each user.
5. Under Thread Group, add the Sampler and choose the request you want to test (HTTP/SMTP/JDBC/etc). For this video I use HTTP Sampler.
- Set the server name, port number, and path in the sampler properties
6. Under the Sampler, add the Listener. For this video I use View Result in Table.
7. Click Run
----------------------------------------------------------------------------------------------------------------------------------
Episode 2
Steps To Do Recording in JMeter:
1. Open your JMeter GUI (under bin folder):
2. Under Test Plan, add Non-Test Element and choose HTTP(s) Test Script Recorder.
3. Setup Manual Proxy in your browser. In Firefox, it's under Network Settings, select Manual Proxy Configuration and set the same port like in JMeter.
4. Under Test Plan, add Thread Group
5. Under Thread Group, add Logic Controller and choose Recording Controller.
(You can add some other Recording Controller based on the pages that you want to test)
6. Navigate back to HTTP(s) Test Script Recorder and select Target Controller (where you want to save the recording).
7. Click Start and open the website URL that you want to test.
---------------------------------------------------------------------------------------------------------------------------------------
Episode 3
Steps to use CSV in JMeter to test login page:
1. Create your JMX file through recording
- Remove unnecessary request
- You can tick "Retrieve All Embedded Resources" under Advanced tab if you want the embedded resources to be triggered
2. Under Threads Group, add Config Element and choose CSV Data Set Config
- Variable Names : var1,var2,etc (same variable that we will set in HTTP Request - separated by comma)
- Delimiter : , (same delimiter that we use in csv file)
- Recycle on EOF : False
- The rest can use default value
3. Set the variables in HTTP request parameters (from the recording)
- Format: ${var1}
4. Under HTTP Request, add Listener and choose View Results Tree
--------------------------------------------------------------------------------------------------------------------------------------------
Episode 4
To Run JMX File in BlazeMeter, you have to create the account in BlazeMeter:
00:00 - JMeter setup
10:18 - JMeter recording
16:27 - JMeter csv config
29:06 - Blazemeter performance testing
----------------------------------------------------------------------------------------------------------------------------------------
Episode 1
Steps To Setup & Run Load Testing with JMeter:
1. Download JMeter Binaries and unzip it:
2. Under bin folder, run below script:
3. Test Plan will be created by default, rename it accordingly.
4. Under Test Plan, add the Thread (Users), select Thread Group and set the Thread Properties according to your testing.
- 1 thread is equivalent to 1 user
- Ramp-up period in Thread Properties is the total time. If you specify 10 users and ramp-up 10 seconds, means there will be 1 sec gap between each user.
5. Under Thread Group, add the Sampler and choose the request you want to test (HTTP/SMTP/JDBC/etc). For this video I use HTTP Sampler.
- Set the server name, port number, and path in the sampler properties
6. Under the Sampler, add the Listener. For this video I use View Result in Table.
7. Click Run
----------------------------------------------------------------------------------------------------------------------------------
Episode 2
Steps To Do Recording in JMeter:
1. Open your JMeter GUI (under bin folder):
2. Under Test Plan, add Non-Test Element and choose HTTP(s) Test Script Recorder.
3. Setup Manual Proxy in your browser. In Firefox, it's under Network Settings, select Manual Proxy Configuration and set the same port like in JMeter.
4. Under Test Plan, add Thread Group
5. Under Thread Group, add Logic Controller and choose Recording Controller.
(You can add some other Recording Controller based on the pages that you want to test)
6. Navigate back to HTTP(s) Test Script Recorder and select Target Controller (where you want to save the recording).
7. Click Start and open the website URL that you want to test.
---------------------------------------------------------------------------------------------------------------------------------------
Episode 3
Steps to use CSV in JMeter to test login page:
1. Create your JMX file through recording
- Remove unnecessary request
- You can tick "Retrieve All Embedded Resources" under Advanced tab if you want the embedded resources to be triggered
2. Under Threads Group, add Config Element and choose CSV Data Set Config
- Variable Names : var1,var2,etc (same variable that we will set in HTTP Request - separated by comma)
- Delimiter : , (same delimiter that we use in csv file)
- Recycle on EOF : False
- The rest can use default value
3. Set the variables in HTTP request parameters (from the recording)
- Format: ${var1}
4. Under HTTP Request, add Listener and choose View Results Tree
--------------------------------------------------------------------------------------------------------------------------------------------
Episode 4
To Run JMX File in BlazeMeter, you have to create the account in BlazeMeter: