InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
How Can You Reduce Resource Requirements In Jmeter? |
|
Answer» Below are some suggestion to reduce resource requirements:
Below are some suggestion to reduce resource requirements: |
|
| 2. |
What Are Regular Expressions In Jmeter? |
|
Answer» Regular EXPRESSIONS are used to search and manipulate text, BASED on patterns. JMeter interprets forms of regular expressions or patterns being used throughout a JMeter test plan, by including the pattern matching software Apache Jakarta ORO. Regular expressions are used to search and manipulate text, based on patterns. JMeter interprets forms of regular expressions or patterns being used throughout a JMeter test plan, by including the pattern matching software Apache Jakarta ORO. |
|
| 3. |
Where Can Functions And Variables Be Used? |
|
Answer» Functions and VARIABLES can be written into any FIELD of any TEST COMPONENT. Functions and variables can be written into any field of any test component. |
|
| 4. |
What Are Jmeter Functions? |
|
Answer» JMeter functions are SPECIAL values that can POPULATE fields of any Sampler or other element in a test tree. ${__functionName(var1,var2,VAR3)} JMeter functions are special values that can populate fields of any Sampler or other element in a test tree. ${__functionName(var1,var2,var3)} |
|
| 5. |
What Are The Monitor Tests? |
|
Answer» USES of monitor tests are:
Uses of monitor tests are: |
|
| 6. |
Are The Test Plans Built Using Jmeter Os Dependant? |
|
Answer» TEST PLANS are usually SAVED in thr XML FORMAT, hence they have nothing to do with any particular OS. You can run those test plans on any OS where JMeter can run. Test plans are usually saved in thr XML format, hence they have nothing to do with any particular OS. You can run those test plans on any OS where JMeter can run. |
|
| 7. |
How Do You Ensure Re-usability In Your Jmeter Scripts? |
Answer»
|
|
| 8. |
What Is The Execution Order Of Test Elements? |
|
Answer» FOLLOWING is the execution order of the TEST plan elements:
Following is the execution order of the test plan elements: |
|
| 9. |
What Are Pre-processor And Post-processor Elements? |
|
Answer» A Pre-Procesor is something that will happen before a sampler executes. They are often used to modify the settings of a Sample REQUEST just before it runs, or to update variables that are not extracted from response text. A Post Processor executes after a sampler finishes its execution. This ELEMENT is most often used to process the response data, for EXAMPLE, to retrieve particular VALUE for later use. A Pre-Procesor is something that will happen before a sampler executes. They are often used to modify the settings of a Sample Request just before it runs, or to update variables that are not extracted from response text. A Post Processor executes after a sampler finishes its execution. This element is most often used to process the response data, for example, to retrieve particular value for later use. |
|
| 10. |
What Are Listeners? |
|
Answer» Listeners let you view the results of Samplers in the form of tables, graphs, trees or simple text in some log files. They PROVIDE visual ACCESS to the data gathered by JMeter about the test cases as a Sampler component of JMeter is EXECUTED. Listeners can be ADDED anywhere in the test, including directly under the test plan. They will collect data only from ELEMENTS at or below their level. Listeners let you view the results of Samplers in the form of tables, graphs, trees or simple text in some log files. They provide visual access to the data gathered by JMeter about the test cases as a Sampler component of JMeter is executed. Listeners can be added anywhere in the test, including directly under the test plan. They will collect data only from elements at or below their level. |
|
| 11. |
What Is Configuration Element? |
|
Answer» Configuration Elements allow you to create DEFAULTS and variables to be used by Samplers. They are used to add or MODIFY REQUESTS made by Samplers. They are EXECUTED at the start of the scope of which they are part, before any Samplers that are located in the same scope. THEREFORE, a Configuration Element is accessed only from inside the branch where it is placed. Configuration Elements allow you to create defaults and variables to be used by Samplers. They are used to add or modify requests made by Samplers. They are executed at the start of the scope of which they are part, before any Samplers that are located in the same scope. Therefore, a Configuration Element is accessed only from inside the branch where it is placed. |
|
| 12. |
What Are Controllers And Its Types? |
|
Answer» JMeter has TWO types of Controllers: Samplers Controllers : Samplers allow JMeter to send specific types of requests to a server. They simulate a user's request for a page from the target server. For example, you can add a HTTP Request SAMPLER if you need to perform a POST, GET, DELETE on a HTTP service Logical Controllers : Logic Controllers let you control order of processing of Samplers in a THREAD. Logic Controllers can change the order of request coming from any of their child elements. Some examples are: ForEach CONTROLLER, While Controller, Loop Controller, IF Controller, Run Time Controller, Interleave Controller, Throughput Controller, Run Once Controller. JMeter has two types of Controllers: Samplers Controllers : Samplers allow JMeter to send specific types of requests to a server. They simulate a user's request for a page from the target server. For example, you can add a HTTP Request sampler if you need to perform a POST, GET, DELETE on a HTTP service Logical Controllers : Logic Controllers let you control order of processing of Samplers in a Thread. Logic Controllers can change the order of request coming from any of their child elements. Some examples are: ForEach Controller, While Controller, Loop Controller, IF Controller, Run Time Controller, Interleave Controller, Throughput Controller, Run Once Controller. |
|
| 13. |
What Is Thread Group? |
|
Answer» THREAD Group elements are the beginning POINTS of your TEST plan. As the name suggests, the thread group elements control the NUMBER of threads JMETER will use during the test. Thread Group elements are the beginning points of your test plan. As the name suggests, the thread group elements control the number of threads JMeter will use during the test. |
|
| 14. |
List Some Of The Test Plan Elements In Jmeter.? |
|
Answer» FOLLOWING is a list of some of the test PLAN ELEMENTS:
Following is a list of some of the test plan elements: |
|
| 15. |
What Is A Test Plan In Jmeter? |
|
Answer» A Test PLAN defines and provides a layout of how and what to test. For example the WEB application as well as the client server application. It can be viewed as a container for RUNNING tests. A complete test plan will consist of one or more elements such as thread groups, logic controllers, sample-generating controllers, listeners, timers, assertions, and configuration elements. A test plan must have at LEAST one thread GROUP. A Test Plan defines and provides a layout of how and what to test. For example the web application as well as the client server application. It can be viewed as a container for running tests. A complete test plan will consist of one or more elements such as thread groups, logic controllers, sample-generating controllers, listeners, timers, assertions, and configuration elements. A test plan must have at least one thread group. |
|
| 16. |
List Some Of The Features Of Jmeter.? |
|
Answer» Following are some of the features of JMeter:
Following are some of the features of JMeter: |
|
| 17. |
What Are The Protocols Supported By Jmeter? |
|
Answer» The protocols SUPPORTED by JMeter are:
The protocols supported by JMeter are: |
|
| 18. |
What Are The Benefits That Jmeter Offers For Performance Testing? |
|
Answer» JMETER offers benefits on performance testing like
JMeter offers benefits on performance testing like |
|
| 19. |
Explain What Is Post-processor? |
|
Answer» To PERFORM any action after MAKING a request, Post- processor is used. For example, if JMeter sends an http request to the WEB server, and if you WANT JMeter to stop sending the request if the web server shows an error, then you will use post-processor to perform this action. To perform any action after making a request, Post- processor is used. For example, if JMeter sends an http request to the web server, and if you want JMeter to stop sending the request if the web server shows an error, then you will use post-processor to perform this action. |
|
| 20. |
Explain What Is The Role Of Timer In Jmeter? |
|
Answer» With the help of timer, JMeter can delay the TIME between each REQUEST, which a thread MAKES. It can solve the overload problem of the server. With the help of timer, JMeter can delay the time between each request, which a thread makes. It can solve the overload problem of the server. |
|
| 21. |
In Jmeter Is It Necessary To Call Embedded Resources Explicitly? |
|
Answer» You can eliminate all embedded RESOURCES from being EXPLICITLY called. Requests have a checkbox at the bottom that SAYS “retrieve embedded resources.” It would grab all CSS, JPG, etc. It is a brilliant way to find resources and broken LINK in a web App. You can eliminate all embedded resources from being explicitly called. Requests have a checkbox at the bottom that says “retrieve embedded resources.” It would grab all CSS, JPG, etc. It is a brilliant way to find resources and broken link in a web App. |
|
| 22. |
What Is Distributed Load Testing? How It Can Be Achieved? |
|
Answer» Distributed load testing is the process through which numerous SYSTEMS can be used for simulating load of a LARGE number of users. By using the master-slave configuration, JMeter can do DISTRIBUTE load testing. Distributed load testing is the process through which numerous systems can be used for simulating load of a large number of users. By using the master-slave configuration, JMeter can do distribute load testing. |
|
| 23. |
List Out Few Jmeter Listeners? |
|
Answer» Some of the JMeter Listeners are:
Some of the JMeter Listeners are: |
|
| 24. |
Explain How You Can Capture The Script Of The Authentication Window In Jmeter? |
|
Answer» Normally, you can capture SCRIPT by recording.
Normally, you can capture script by recording. |
|
| 25. |
Explain How You Can Perform Spike Testing In Jmeter? |
|
Answer» By synchronizing, timer JMETER spike TESTING can be achieved. Synchronizing timer, blocks THREAD until a SPECIFIC amount of THREADS has been blocked and then release them all together thus creating large instantaneous load. By synchronizing, timer JMeter spike testing can be achieved. Synchronizing timer, blocks thread until a specific amount of threads has been blocked and then release them all together thus creating large instantaneous load. |
|
| 26. |
Explain How You Can Reduce The Resource Requirement In Jmeter? |
|
Answer» To reduce the resource requirements in JMETER
To reduce the resource requirements in JMeter |
|
| 27. |
Explain What Is Assertion In Jmeter? What Are The Types Of Assertion? |
|
Answer» ASSERTION HELPS to verify that your server under test returns the expected results Some commonly USED Assertion in JMeter are
Assertion helps to verify that your server under test returns the expected results Some commonly used Assertion in JMeter are |
|
| 28. |
Explain What Is Test Fragment? |
|
Answer» Test fragment is also a type of element LIKE Thread GROUP element. The only difference is test fragment is not implemented UNLESS it is REFERENCED by either a Module CONTROLLER or an Include controller. Test fragment is also a type of element like Thread Group element. The only difference is test fragment is not implemented unless it is referenced by either a Module controller or an Include controller. |
|
| 29. |
Explain What Is A Timer In Jmeter And What Are The Types Of It? |
|
Answer» A JMETER THREAD by default will send requests CONTINUOUSLY without any PAUSE. To get a pause between the request, Timers are used. Some of the Timers used are Constant Timer, Gaussian Random Timer, Synchronizing Timer, UNIFORM Random Timer and so on. A JMeter thread by default will send requests continuously without any pause. To get a pause between the request, Timers are used. Some of the Timers used are Constant Timer, Gaussian Random Timer, Synchronizing Timer, Uniform Random Timer and so on. |
|
| 30. |
Explain What Is Configuration Elements? |
|
Answer» A CONFIGURATION element works PARALLEL with a SAMPLER. To set up defaults and VARIABLES for later use by samplers configuration elements can be used. At the start of the scope, these elements are processed before any samplers in the same scope. A configuration element works parallel with a Sampler. To set up defaults and variables for later use by samplers configuration elements can be used. At the start of the scope, these elements are processed before any samplers in the same scope. |
|
| 31. |
What Does “contain” And “matches” Indicates In The Regular Expression? |
|
Answer» In the REGULAR expression, CONTAINS indicates that the regular expression matched at least some part of the target. While MATCHES means the regular expression matched the WHOLE target. So, ‘alphabet’ is “matched” by ‘AL.*t.’ In the regular expression, contains indicates that the regular expression matched at least some part of the target. While matches means the regular expression matched the whole target. So, ‘alphabet’ is “matched” by ‘al.*t.’ |
|
| 32. |
Mention The Execution Order Of Test Elements? |
|
Answer» The TEST plans elements EXECUTION order is
The test plans elements execution order is |
|
| 33. |
Explain What Are Pre-processor Elements? List Some Of The Pre-processor Elements? |
|
Answer» A pre-processor is something that will HAPPEN before SAMPLER executes. To configure the SAMPLE request PRIOR to its EXECUTION or to update variables that are not extracted from response text pre-processor elements are used. Some of the pre-processor elements are:
A pre-processor is something that will happen before sampler executes. To configure the sample request prior to its execution or to update variables that are not extracted from response text pre-processor elements are used. Some of the pre-processor elements are: |
|
| 34. |
Mention What Are The Types Of Processor In Jmeter? |
|
Answer» The TYPES of PROCESSOR in JMETER are:
The types of processor in JMeter are: |
|
| 35. |
Whether The Test Plans Built Using Jmeter Are Os Dependent? |
|
Answer» USUALLY, test plan are saved in their XML FORMAT, so there is NOTHING to do with any particular O.S. It can be run on any OS where JMETER can run. Usually, test plan are saved in their XML format, so there is nothing to do with any particular O.S. It can be run on any OS where JMeter can run. |
|
| 36. |
Explain What Is Samplers And Thread Groups? |
|
Answer» THREAD group: For any test plan, JMeter is the beginning part of thread group ELEMENTS. It is an IMPORTANT element of JMeter, where you can set number of users and time to load all the users given in the thread group Samplers: Sampler generates one or more sample results; these sample results have many attributes like elapsed time, DATA size, etc. Samplers allow JMeter to SEND specific types of requests to the server, through samplers, thread group decides which type of request it need to make. Some of the useful samplers are HTTP request, FTP request, JDBC request and so on. Thread group: For any test plan, JMeter is the beginning part of thread group elements. It is an important element of JMeter, where you can set number of users and time to load all the users given in the thread group Samplers: Sampler generates one or more sample results; these sample results have many attributes like elapsed time, data size, etc. Samplers allow JMeter to send specific types of requests to the server, through samplers, thread group decides which type of request it need to make. Some of the useful samplers are HTTP request, FTP request, JDBC request and so on. |
|
| 37. |
Mention What Are Regular Expressions In Jmeter? |
|
Answer» Based on the PATTERN, regular EXPRESSION are USED to search and manipulate text. JMeter is USEFUL in interpreting forms of regular expression or patterns being used throughout a JMeter test plan. Based on the pattern, regular expression are used to search and manipulate text. JMeter is useful in interpreting forms of regular expression or patterns being used throughout a JMeter test plan. |
|
| 38. |
Explain Where You Can Use Functions And Variables? |
|
Answer» VARIABLES and functions can be WRITTEN into any field of any TEST component. Variables and functions can be written into any field of any test component. |
|
| 39. |
Explain How Jmeter Works? |
|
Answer» JMeter acts LIKE a group of users sending REQUESTS to a target server. It collects response from target server and other statistics which show the PERFORMANCE of the application or server via GRAPHS or TABLES. JMeter acts like a group of users sending requests to a target server. It collects response from target server and other statistics which show the performance of the application or server via graphs or tables. |
|
| 40. |
What Is Jmeter? |
|
Answer» JMETER is one of the JAVA tools which is used to PERFORM load testing client/server applications. APACHE JMeter is open source software, a 100% pure Java desktop application designed to load test functional behavior and measure performance of the application. It was originally designed for testing Web Applications but has SINCE expanded to other test functions. JMeter is one of the Java tools which is used to perform load testing client/server applications. Apache JMeter is open source software, a 100% pure Java desktop application designed to load test functional behavior and measure performance of the application. It was originally designed for testing Web Applications but has since expanded to other test functions. |
|