Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 

Repository files navigation

JMeterForMe

https://university.blazemeter.com/
On mac brew info jemeter to get path : /opt/homebrew/jmeterCellar/jmeter/5.6.3/bin/jmeter
On Installing Jmeter you would see the below files in installation location

  1. /bin: Contains Jmeter script file for starting Jmeter
  2. /docs: Jmeter documentation files
  3. /extras: related extra files
  4. /lib/: Contains the required java library for Jmeter
  5. /lib/ext: contains the core jar files for JMeter and the protocols
  6. /lib/junit: Junit library use for JMeter
  7. /printable_docs:

Old Style

Download plugins from https://jmeter-plugins.org/ 
Unzip and place the files in ./lib/ext  
Remember to quit and restart j-meter  

New Style

Options -->Plugins Manager 
This available only after placing the plugins manager described in above method. 

J-meter

http://jmeter.apache.org/download_jmeter.cgi 

First Building Blocks

1. Test Plan  
	a. Enable the "Run the thread groups to run consecutively" to run them in sequence.  
2. Thread Groups  
	a. Determine the # of virtual users (10)    
	b. Ramp up in seconds (60)  
	c. If there are multiple thread groups under test plan they get executed parallelly.  
3. Samplers  
		i. HTTP Request  
			1) www.demoblaze.com  
			2) Method : GET  
			3) Body  
			4) Params  
			5) Headers, etc  
		ii. TCP Sampler    
		iii. JDBC Request   
		iv. SSH Command  
4. Timers
	a. Constant timers
		i. Delay : 300 milli seconds
	b. Uniform random timer
	c. Precise Through put timer
	d. Constant Through put timer,etc
5. Assertions
	a. Response assertion
	b. Json assertion
	c. Xpath assertion
	d. Size assertion
	e. Bean shell assertion
	
6. Pre/Post Processors
	a. Preprocessors to ex: to get data from DB before the sampler is run
	b. Post processor to extract data from post headers like session variables etc. so that they can be used further
7. Listeners
	a. View Results Tree
		i. Load Time
		ii. Connect Time
		iii. Latency
		
	b. Summary Report
		i. Throughput : The number of requests that are processed per min or sec or hours.
		ii. Average : Average response time taken by all the sampler
	c. Aggregate Report
	d. Backend Listener		

Configuration Elements

1. HTTP Request Defaults
	a. Holds the global variables like common hostname, parameters that can be used by subsequent requests  in the Thread Group.
2. HTTP Header Manager
	a. Let's you add or override http headers.
3. HTTP Cache Manager
	a. Is used to add caching functionalities.
4. HTTP Cookie Manager
5. DNS Cache Manager

Logic Controllers

Serves as a storage device by grouping the samplers logically by pages/transactions(likes Actions in UFT)
    1. Simple Controller
    2. Transaction Controller

Performance Metrics

Using Test Record Template
    1. File-->Template-->Test Record Template
    2. Right click on Test Script Recorder and Enable
    3. Set up windows proxy to listen on 8080 ..if the application is to be on localhost.
        a. Start -->Internet Options-->Connections-->LAN Settings -->Address(localhost) and port 8080.
        b. Go to chrome --> Settings-->Security-->Manage Certificates-->Import the CA Certificate.
    4. Click Start to record.

Concurrency Thread Group

Ultimate Thread Group
SetupThreadGroup
TearDownThreadGroup

JmeterFunctions

1. ${__functionName(var1,var2,var3)}
	a. Tools-->Function Helper Dialog
2. Traffic Moderating Controls
	a. Throughput Controller
		i. 50% Browse
		ii. 20% Search
		iii. 30% Adding items
	b. Weight Switch Controller
		i. 20% for one controller
		ii. 30% to another controller
		iii. 50% to another controller
3. Throughput Controlling Elements
	a. Constant Throughput Timer
	b. Throughput shaping Timer
	c. ${__tstFeedback(tsName,start,max,spare)} //Throughput Shaping Timer Feedback
4. Code Reuse Controller
	a. Module Controller
	b. Include Controller

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors