Question: How would you go about automatic recording of your browser action into JMeter?
Answer: We would go for automatic recording of our browser action into JMeter through

  • Bad boy
  • Proxy server

Question: What is throughput?
Answer: Throughput is the amount of data user receives from server at given second. It is representing in kb/sec.

Question: What is Response time?
Answer: Response time means the time taken to receive page from server.

Question: What is “Hit per second”?
Answer: Hit per second means display the no of hit made on server by user per second.

Question: How does JMeter handle SSL Exception?
Answer: JMeter Http samplers will configure to accept all certificates. It could be trusted or un-trusted. Packages are in JMeter’s class path and system. Properties.

Question: What are shortcut key for “start”, “stop” & “shutdown”?
Answer:

  • For Start => Ctrl + r
  • Stop => Ctrl + .
  • Shutdown => Ctrl + ,
Question: What is Elapse time?
Answer:  Elapsed time means the time just before sending the request to just after the last response has been received.

Question: What is Latency?
Answer:  Latency means before sending the request to just after the first response has been received.

Question: What is Median?
Answer: Median means the time in the middle of a set of results.

Question: What is 90% Line?
Answer: The maximum time taken for the fastest 90 % of the samples.

Question: What is remote testing and How to do with JMeter?
Answer: To simulate enough users to stress on server we use remote JMeter engine from a single JMeter client.

Step1: Start Server (jmeter.bat)
Step2: Add ip to client’s properties file
Step3: Start JMeter client from a GUI client

Question: JMeter keep getting “Out of memory” ,What could be the issue?
Answer:  It is because of using lot of listeners and can be resolved by modify jmeter.bat.
Set HEAP = -XMS256m to XMS256m

Question: Does JMeter process dynamic pages (i.e. JavaScript & Applets)?
Answer:  No it doesn't support JavaScript and Applets.

Question:What is IP snooping? Does JMeter support it?
Answer:  IP snooping is the ability to emulate the behaviour of different IP address assigning to a system. IP snooping is not available in JMeter.

Question: What is Correlation and How to do with JMeter?
Answer:  The taste of substituting values in dynamic data to enable successful playback is known as Correlation. It is done by using manual correlation with the help of Regular Expression Extractor.

Question: What is Parameterization?
Answer:  The ability to use different values in scripts and to create data driven Test Scenarios. It reduces size of scripts.

Question: How can we test database server using JMeter?
Answer:  Pre-Requisite for this:

  • Copy .jar file containing in the database drive and paste it in lib folder of JMeter.
  • A valid database schema.
  • Valid non-empty database tables
Step1: Add Thread Group to Test plan.
Step2: Add JDBC Connection Configuration.
Step3: Add JDBC Request.
Step4: ADD Listener.
You may add Assertions to the sampler to verify it returns. “Save” & “Run” the Test plan.

Question: How can we test FTP Server using JMeter?
Answer:  Pre-Requisite for this:

  • A running FTP Server.
  • A valid path to the shared file in FTP.
  • Valid non-empty files in FTP.
  • A valid user-level access to the file.

Step1: Add Thread Group to Test plan.
Step2: Add FTP Request Default.
Step3: Add FTP Request.
Step4: ADD Listener.

“Save” and “Run” the Test plan.

Question: What are the extension of “Test Script”, “Test Report”, & “Test log” in JMeter?
Answer: 

  • Test Script => .jmx
  • Test Report => .jtl
  • Test log => .log

Question: How to save Workbench?
Answer:  Workbench can’t save with Test plan. It can be saving indirectly.

Step1: Right click on Workbench.
Step2: Save selection as.
Step3: Name of Workbench.
Step4: “Save”.

Question: How to get response time for each request in a Thread group.
Answer:  Response time can be received from the listed listeners:

  • View Result Tree
  • Summary Report
Question: What kind of protocols or different server JMeter can support?
Answer:  JMeter can support list of server and protocol:

  • Web-HTTP, HTTPS
  • SOAP
  • JDBC
  • LDAP
  • JMS
  • Mail-POP and IMAP
Question: What are JMeter properties & Variables?
Answer:  JMeter properties are defined in jmeter.Properties. It is global to JMeter.e.g. Remote hosts define the servers that JMeter will try to run remotely. JMeter variables are local to each thread. The value may be same for each thread or they may be different.
e.g: Regular Expression Extractor

Question: Explain about HTTP Request Methods?
Answer:  Request methods specify the operation that the client has requested.
GET: It is to retrieve information from a specified URL.
POST: It is used to send parameters & data.

Question: How to handle error in JMeter?
Answer:  Solution is “Error Handling”.
By default JMeter only typically HTTP error response code.
e.g: HTTP 4XX or 5XX error

Question: Use Response Assertion on HTTP sampler and add “Result status Action Handler” from post processor element.
Answer:  We can define in “Thread group” also to take action on error.
By Regular Expression Extractor error can be handling.

Question:Does JMeter support .net Technology?
Answer: Yes, it supports .net technology.

Question: What do you mean by client side metrics and server side metrics?
Answer:

1) List of Client side performance metrics are:

  • Response time
  • Pass-fail status
  • Throughput
  • Hit/sec etc.

2) List of server side performance metrics:

  • Application & OS level
  • CPU, Memory ,Network, I/O, SWAP
Question: Can we save the logs in JMeter, if yes then explain?
Answer:  We can save the logs in JMeter because when we run script errors come and then .log file creates in JMeter. So if we want to save that we have to save that file by giving save as “name”. We have to save that because while we run another script previous log file has been deleted.

Also by adding Listener (view results tree) we can save the logs. There log display option is present which we have to configure.

Question: What is the meaning of cookies and cache, explain?
Answer:
Cookies: It is a kind of data which is generated by web browser. It is also saved by web browser
Purpose: To minimize the response time.

Cache: It is the mechanism to store temporary internet files (image files, html pages).
Purpose: To increase the speed of internet surfing.

Question: Why we check both cache and cookies in JMeter?
Answer:  To get the realistic scenario of the application we check both cache and cookies in Jmeter.