Tuesday, May 7, 2013

Script Recording & HTTP Request

Script Recording & HTTP Request

  • Your accessing the scenario on the Browser, automatically the script will be inserting in the Recording Controller
  • Once record the script is over, we need to Stop the HTTP proxy Server (Refer above screen shot)
HTTP Request:
  1. It is script a window, whatever page has recorded at recording time; it show the URLS in path and ITEMDATA in parameters
  2. It captures all GET and POST methods
  3. In this request helpful to identify the correlation values and parameterization values.

HTTP Proxy Server Creation in JMeter

HTTP Proxy Server Creation in JMeter

  • If you want to record the script, it is a communicator between web Browser and Recording Controller.
  • Right click on work bench and select Add -> Non – Test Element -> HTTP Proxy Server

Proxy Server Screen Shots:


 
 

 

How to configure Proxy Server:

  • Give the port settings as 8080
  • Select target Controller as Thread Group -> Recording Controller
  • Click Start Button From HTTP Proxy

Browser Settings:

  • Set the Proxy server settings in Browser
  • Open IE->Tools->Internet Options-> Connections-> LAN Settings-> Check Proxy Server
  • Give address as local host and port as 8080
  • Before going to record the Script, we need to start the HTTP Proxy Server

Recording Controller Creation in JMeter

  • Recording controller is a place, it shows what ever HTTP Requests are recorded
  • Here it will record the all the HTTP requests.


 

What is Thread Group In Jmeter

Thread group elements are the beginning points of any test plan. All controllers and samplers must be under a thread group. Other elements, e.g. Listeners, may be placed directly under the test plan, in which case they will apply to all the thread groups. As the name implies, the thread group element controls the number of threads JMeter will use to execute your test. The controls for a thread group allow you to:
  1. Set the number of threads
  2. Set the ramp-up period
  3. Set the number of times to execute the test
  4. Each thread will execute the test plan in its entirety and completely independently of other test threads. Multiple threads are used to simulate concurrent connections to your server application.

Creation Of Virtual Users In Jmeter

Thread (users) Creation:
A Thread Group defines the group of Virtual users, will execute with multiple users load on the server.

Right click on the test plan -> Add -> Threads -> Thread Group

And also you can use the below listed thread groups too when comparing to Thread Group it have some more additional features.

Monday, May 6, 2013

Jmeter Components


JMeter Components

Jmeter have two type of components they are
1. Test Plan
2. Work Bench



Test Plan:
The test plan is used to create Thread (Vuser), Recording the script, Customize the script like Correlation, Parameterization, Assertions (Text check points), Design Schedules and collect logs.

Work Bench:
Work Bench is a temporary window it is used to assign the HTTP Proxy Server.

How to Add Plugin and Opening of JMeter Tool

Plugin Adding Into JMeter Tool:

1. Before going to Jmeter, We need to add the Plug-In
2. Copy Plug-In -> in the path of D:/JMeterPlugins-0.5.3 and Plug-In is JMeterPlugins.Jar
3. Paste the Plug-In-> D:/apache-jmeter-2.7/lib/ext

Apply the above process in your local mechine to add plugin to Jmeter tool.

How to Open Jmeter:
Click the Jmeter MS-DOS Batch file or Jmeter batch file in the path of D:/apache-jmeter-2.7/bin

JMeter Plugin and Installation Process

JMeter Plugin and Installation Process

Download Jmeter form the site Apache JMeter -Apache-Jmeter-2.7
Plug in: Jmeter-Plugins-0.5.3
Java: JDK 1.5 or above
Command Line Execution-Apache-ant-1.8.4

For HTTPS Communication: BadBoyInstaller-2.1.3_beta_2
If your using Jmeter Software in your application, Java must be installed in your PC

JAVA Installation:
Once you have been installed we need to set the path in your PC
1. Copy the path: C:/ProgramFiles/Java/JDK1.5.0/bin
2. Go to MyComputer Properties->Advance->Environment Variables->select path in system variables -> Click Edit-> Paste the path ->Then press OK -> OK -> OK

About JMeter Tool

JMeter

The Apache JMeter desktop application is open source software, a 100% pure Java application designed to load test functional behaviour and measure performance. It was originally designed for testing Web Applications but has since expanded to other test functions.
Apache JMeter may be used to test performance both on static and dynamic resources(files, Servlets, Perl scripts, Java Objects, Data Bases and Queries, FTP Servers and more).

It can be used to simulate a heavy load on a server, network or object to test its strength or to analyse overall performance under different load types. You can use it to make a graphical analysis of performance or to test your server/script/object behaviour under heavy concurrent load

About Performance Testing


Performance Testing

In software engineering, performance testing is in general testing performed to determine how a system performs in terms of responsiveness and stability under a particular workload. It can also serve to investigate, measure, validate or verify other quality attributes  of the system, such as scalability, reliability and resource usage