1.
Which of the following Extractors allows the user to extract values from an XML/HTML response?
Correct Answer
A. Regular Expression Extractor
Explanation
The correct answer is Regular Expression Extractor. This extractor allows the user to extract specific values from an XML/HTML response by using regular expressions. Regular expressions are powerful tools that can be used to match and extract patterns from text, making them suitable for extracting values from structured data like XML or HTML. XPath Extractor and CSS Selector/JQuery Extractor are also used for extracting values from HTML/XML responses, but they use different syntax and techniques compared to regular expressions.
2.
Jmeter does not support
Correct Answer
D. Monkey Testing
Explanation
JMeter does not support Monkey Testing. Monkey Testing is a form of random testing where inputs are generated randomly without any specific test case in mind. JMeter is primarily designed for load testing, functional testing, and distributed testing. It allows users to simulate heavy loads on servers, test the functionality of web applications, and distribute the load across multiple machines. However, Monkey Testing is not a feature provided by JMeter.
3.
Jmeter is not used for
Correct Answer
A. Accessibility Testing
Explanation
JMeter is not used for Accessibility Testing. JMeter is primarily used for load testing and performance testing of web applications. It simulates multiple users accessing the application simultaneously to measure its performance under different loads. Accessibility testing, on the other hand, focuses on ensuring that the application is accessible to users with disabilities and complies with accessibility standards. This type of testing requires specialized tools and techniques that are not provided by JMeter.
4.
Stress testing is not possible by Jmeter?
Correct Answer
B. False
Explanation
False. This statement is incorrect. JMeter is a widely used tool for stress testing and can simulate heavy loads on a server, network, or object to measure its performance under different conditions. It allows users to create and execute various types of tests, including stress testing, to analyze the system's behavior and identify any bottlenecks or performance issues. Therefore, stress testing is possible by JMeter.
5.
Jmeter can be used to test performance of
Correct Answer
C. Both static and dynamic
Explanation
JMeter is a performance testing tool that can be used to test the performance of both static and dynamic resources. Static resources refer to files that do not change, such as HTML, CSS, and image files, while dynamic resources refer to files that are generated by a server or application in real-time, such as web pages with dynamic content or API responses. JMeter allows testers to simulate multiple users accessing these resources simultaneously, measure response times, and identify performance bottlenecks. Therefore, JMeter is a versatile tool that can be used for testing the performance of both static and dynamic resources.
6.
Select INVALID timer in Jmeter
Correct Answer
D. Continue Timer
Explanation
The "Continue Timer" is not a valid timer in JMeter. JMeter provides various timers to simulate different types of user behavior and think time between requests. The "Continue Timer" option does not exist in JMeter's list of timers. The correct answer is "Continue Timer".
7.
Select controller which makes the user request run with a specified number of times
Correct Answer
B. Loop controller
Explanation
The Loop controller is the correct answer because it allows the user to specify the number of times a request should be executed. This controller is used to create loops within the test plan, enabling the user to repeat a set of requests a specific number of times. By using the Loop controller, the user can control the flow and repetition of requests in their performance testing scenarios.
8.
Which of the following is not a JMeter Sampler?
Correct Answer
D. Monitor Results
Explanation
The Monitor Results is not a JMeter Sampler because it is used for monitoring and collecting performance metrics of the server under test, rather than simulating user actions or generating load. It allows users to analyze server performance by collecting data such as response time, throughput, and error rate.
9.
Which assertion is not used in Jmeter?
Correct Answer
D. Web
Explanation
The assertion "Web" is not used in JMeter. JMeter is primarily used for performance testing and load testing of web applications. It provides various built-in assertions like Duration and Size to validate the performance and behavior of the web application under different scenarios. However, there is no specific assertion called "Web" in JMeter.
10.
Logic Controllers determine
Correct Answer
C. The order in which user request are executed
Explanation
Logic Controllers determine the order in which user requests are executed. This means that they prioritize and sequence the requests based on predefined logic and rules. By determining the order, the logic controllers ensure that the user requests are processed in a systematic and organized manner, optimizing the efficiency and effectiveness of the system.
11.
Select INVALID controller in Jmeter
Correct Answer
B. Static controller
Explanation
A static controller in JMeter is used to group and organize Samplers and other elements within a test plan. It does not have any logic or functionality, but rather serves as a container for other elements. In this context, selecting a static controller as an "INVALID" controller would not have any impact on the test plan execution. It would simply act as a placeholder without affecting the behavior or results of the test.
12.
Select controller which makes the user request run specified number of times
Correct Answer
A. Loop controller
Explanation
The Loop controller is the correct answer because it allows the user request to run a specified number of times. It is used to control the number of iterations or loops in a test plan. By adding the Loop controller, the user request can be repeated a certain number of times, ensuring that it is executed repeatedly according to the desired number of iterations. This is useful for load testing or simulating multiple users accessing the system.
13.
Select testing which uses multiple systems to perform stress testing.
Correct Answer
C. Distributed Testing
Explanation
Distributed testing is the correct answer because it involves using multiple systems to perform stress testing. In distributed testing, the workload is distributed across multiple systems to simulate real-world scenarios and test the system's performance under heavy loads. This type of testing helps identify any bottlenecks or performance issues that may occur when multiple systems are accessing the application simultaneously. Load testing, functional testing, and web application testing do not necessarily involve the use of multiple systems for stress testing.
14.
Timer which delays each user request for a random amount of time.
Correct Answer
A. Gaussian Random Timer
Explanation
A Gaussian Random Timer is the correct answer because it delays each user request for a random amount of time, following a Gaussian distribution. This means that the delay times will be randomly distributed around a mean value, with the majority of delays falling close to the mean. This type of timer is useful for simulating realistic user behavior, where there is a natural variation in response times.
15.
Which applications can be tested using Jmeter?
Correct Answer
D. All of the above
Explanation
JMeter is a popular open-source tool for load testing and performance testing. It can be used to test various types of applications including TCP, IMAP, and LDAP. TCP (Transmission Control Protocol) is a widely used protocol for transmitting data over networks. IMAP (Internet Message Access Protocol) is a protocol used for accessing and retrieving email messages. LDAP (Lightweight Directory Access Protocol) is a protocol used for accessing and managing directory information services. Therefore, JMeter can be used to test all of these applications.
16.
You are running a load test. After Login request, all samples are failing due to the session timeout. How do you solve this scenario?
Correct Answer
C. Add Cache Manager
Explanation
In this scenario, adding a Cache Manager would be the correct solution. The Cache Manager in load testing helps to simulate the caching behavior of a browser, which can help in handling session timeouts. By adding the Cache Manager, the load test will be able to store and retrieve certain resources, such as session cookies, from the cache, reducing the chances of session timeouts and allowing the samples to pass successfully.
17.
Which of the following platforms isn’t supported by JMeter?
Correct Answer
C. REACT OS
Explanation
JMeter is a performance testing tool that is primarily designed to work on Windows, Linux, and MAC OS X operating systems. REACT OS is not supported by JMeter. REACT OS is an open-source operating system that aims to be compatible with Windows applications and drivers. However, since JMeter does not specifically mention support for REACT OS, it can be inferred that it is not supported by JMeter.
18.
What kind of applications can be tested using JMeter?
Correct Answer
D. All of the above
Explanation
JMeter is a powerful tool that can be used to test various types of applications. It supports testing of websites, web services (both REST and SOAP), and databases (JDBC). Therefore, the correct answer is "All of the above" as JMeter can be used to test all these types of applications effectively.
19.
They provide visual access to the data gathered by JMeter
Correct Answer
A. Listener
Explanation
Listeners in JMeter provide visual access to the data gathered during performance testing. They allow users to view and analyze the results of the test in various formats such as tables, graphs, and trees. Listeners help in monitoring the performance of the application under test by displaying metrics like response time, throughput, and error rates. They are essential for identifying bottlenecks, analyzing performance trends, and making informed decisions for optimizing the application's performance.
20.
This lets us set default values that our Request controllers use
Correct Answer
A. Configuration Elements
Explanation
Configuration Elements allow us to set default values that our Request controllers use. They provide additional functionality and configuration options to our test plan. By using Configuration Elements, we can define variables, add HTTP headers, set cookies, and configure other settings that will be applied to all the requests within the test plan. This helps in simplifying the test plan setup and ensures consistent behavior across multiple requests.
21.
Allows the user to create _______________-that can be referenced anywhere in the Thread Group
Correct Answer
C. Counters
Explanation
Counters in JMeter allow the user to create variables that can be referenced anywhere in the Thread Group. Counters are used to generate unique values for each user or thread in a test plan. They can be used to simulate real-world scenarios where different users perform different actions simultaneously. By using counters, the user can create unique identifiers or incrementing values that can be used in requests, assertions, or any other part of the test plan.
22.
Following are the XML Assertions: Find valid
Correct Answer
D. //retunr/message='Success'
Explanation
The correct answer is "//retunr/message='Success'". This XPath expression is searching for a valid XML element with the tag name "retunr" and a child element with the tag name "message" and a value of "Success". The double slashes "//" indicate that the element can be anywhere in the XML document.
23.
Find below WebApplication XML Code
<html>
<head>
<title>AdactIn.com - Hotel Reservation System</title>
</head> <body></body> </html>
Find xpath assertion for above code
Correct Answer
A. //head/title/text()=‘AdactIn.com - Hotel Reservation System’
Explanation
The correct answer is "//head/title/text()=‘AdactIn.com - Hotel Reservation System’". This is the correct XPath assertion because it accurately identifies the desired element in the XML code. It specifies that the XPath should select the text content of the "title" element within the "head" element, and that the text content should be equal to "AdactIn.com - Hotel Reservation System".
24.
If we want to have each thread pause for the same amount of time between requests, use this timer.
Correct Answer
A. Constant Timer
Explanation
The Constant Timer is the appropriate choice in this scenario because it allows each thread to pause for the same amount of time between requests. This ensures that the timing of the requests is consistent and controlled. The other timers mentioned, such as the Uniform Random Timer and Gaussian Random Timer, introduce randomness into the timing, which may not be desired in this case. The Constant Throughput Timer is used to maintain a constant throughput of requests, rather than controlling the timing between requests.
25.
Which is not an attribute of setting up FTP Request
Correct Answer
D. Local file contents
Explanation
Local file contents is not an attribute of setting up FTP Request. When setting up an FTP Request, you need to provide the domain name or IP address of the FTP server, the file name to retrieve, and the credentials of the FTP account user. These attributes are necessary to establish a connection with the FTP server and retrieve the desired file. However, the local file contents are not relevant at this stage as it pertains to the file that will be saved or manipulated on the local machine after it has been retrieved from the FTP server.
26.
This element is purely for code re-use within Test Plans
Correct Answer
A. Test Fragment
Explanation
A Test Fragment is a reusable element in Test Plans that allows for code re-use. It can contain multiple elements such as Samplers, Config Elements, and Post-processors. Test Fragments are useful when there is a need to reuse a set of elements across multiple test plans. They can be included in a test plan by using a Module Controller.
27.
-----------------------------means that the regular expression matched the whole target
Correct Answer
A. Matched
Explanation
The term "matched" in the context of regular expressions means that the regular expression has successfully found a match for the entire target string. It indicates that the regular expression pattern has been applied to the target string, and the pattern has been found in its entirety without any leftover or unmatched characters. Therefore, "matched" is the correct answer as it accurately describes the result of a successful match between the regular expression and the target string.
28.
_________________is the process of extracting some values from the response of a step and referring it into the request of other subsequent step
Correct Answer
A. Correlation
Explanation
Correlation is the process of extracting some values from the response of a step and referring it into the request of other subsequent step. This allows for the transfer of relevant data between steps, ensuring that the subsequent steps have the necessary information to execute successfully.
29.
How will you save recorded responses in JMeter?
Correct Answer
C. Add View Results Tree to Http Test Script Recorder
Explanation
To save recorded responses in JMeter, you need to add the "View Results Tree" listener to the "Http Test Script Recorder". This listener allows you to view the recorded responses in a tree-like structure, providing detailed information such as request and response data, headers, and response time. By adding this listener to the Http Test Script Recorder, you can easily save and analyze the recorded responses for further analysis and testing purposes.
30.
Which of the following defines Assertions in JMeter?
Correct Answer
C. Set the criteria for a test to pass
Explanation
Assertions in JMeter are used to set the criteria for a test to pass. They allow testers to define specific conditions that need to be met during the test execution. These conditions can include checking for the presence of certain text, verifying the response code, or validating the response time. Assertions help in ensuring the correctness and reliability of the test results by validating the expected behavior of the application being tested.