Questions tagged [jmeter]

Apache JMeter, a Java-based open source tool, was crafted to evaluate performance and simulate heavy loads. Initially created specifically for assessing the functionality of web applications, it has now diversified its capabilities to encompass various test functions too.

Encountering org/openqa/selenium/remote/SessionNotFoundException error while executing JMeter tests in Jenkins

Recently, I encountered an issue when trying to run web app JMeter tests using the Firefox Driver in Jenkins. I was able to successfully execute the tests in non-GUI mode on the terminal of the Jenkins server. I could also run the tests successfully on th ...

To successfully extract the transaction name, request name, iteration number, and user names utilizing the Selenium WebDriver sampler within JMeter, is a key priority

I am trying to retrieve the names of requests and transactions from my results. My goal is to display the transaction name, request name, iteration count, and the user number passed in my code using the Selenium Webdriver Sampler. Can you please share some ...

Tips on setting up shared functions in JMeter for scripts to utilize across various threads

Currently I am working with selenium and JMeter, and I have developed several groovy methods. However, a major obstacle I am encountering is the need to define these methods in each individual sampler. Is there a more efficient way to centrally store and ...

Encountering an Issue with File Upload Functionality in Jmeter Using Web Driver

Click here for the image Issue with Method Invocation sendKeys: encountered at Line 31 of file inline evaluation. Error message: "ElementNotInteractableException: element not interactable." Seeking assistance from anyone familiar with this issue. ...

Encountering an error in JMeter with Selenium/WebDriver: class org.openqa.selenium.support.ui cannot be resolved

Operating System: Ubuntu 20.04.6 Java Version: openjdk 17.0.8.1 2023-08-24 JMeter Version: v 5.6.2 Selenium/WebDriver Support Version: 4.13.0.0 Groovy Script: import org.openqa.selenium.support.ui as ui; WDS.sampleResult.sampleStart() WDS.browser ...

Discover the ultimate guide to efficiently extracting data from extensive JSON files using either the powerful combination of regular expressions and the Json Path Extract

I have the following JSON body. How can I extract the values of StudentId, TermID, and other fields? Here is the JSON body: [{"Key" : "Results", "ResultsCollection" : [{"Key" : "IS.S2.SES.FSA.LoadStudentProfile('51483081','HCOL','JC','0')", "Name" : "Josh ...

Discover the effective approach for executing JMeter to effortlessly display the absent elements

I have two separate GET APIs that return response codes containing an ID number and a corresponding title. For API_1, here are some sample responses (with 100 IDs): { "result": "OK", "obj": { "list" : [ { "id" : 9 ...

Encountering an error in the response body while attempting to send body data from an external file using J

I am facing an issue where I need to send data in the request body from an external file within jmeter, but every time I attempt to do this, I receive an ERR in the response body. Below is my post method request body: ${__FileToString(/Users/public/${__eva ...

What is the best way to handle remote connections while utilizing the Selenium WebDriver Plugin in JMeter within a Docker environment?

I am currently using Selenium WebDriver Plugin with JMeter within a Docker environment to perform tests on an external webpage using Selenium in Java. However, I encounter the following message when running the JMeter Script (.jmx): Only local connections ...

Tips for maintaining an open browser using Selenium WebDriver 4 and Groovy in JMeter

I'm currently using a JMeter script to open functional Firefox browsers, but I've encountered an issue where the browsers close once the script finishes running. Here is the code I am using: WDS.sampleResult.sampleStart()     def display = WDS.vars.ge ...

A Guide to Conducting Load Testing Using Node JS and MongoDB

What is the best way to conduct load testing with NodeJS and MongoDB using Jmeter? Our goal is to assess the performance of NodeJS and Mongo Db. ...

Guide to Retrieving Response Data and Converting it into HTTP Header Manager in JMeter

After running the Login sampler, I received the following result: [Login Sampler Result Data][1] In this output, I need to extract "access_token":"91kLM68tdMBoDFRURArvdmwYgWV9Nr2sHYDwivTM" and store the value "91kLM68tdMBoDFRURArvdmwYgWV9Nr2sHYDwivTM" ...

JMeter's WebDriver's Javascript Interpreter encountering issue with accessing the second tab window

I am attempting to execute a WebDriver Sampler using the given code: var pkg = JavaImporter(org.openqa.selenium); //WebDriver classes var support_ui = JavaImporter(org.openqa.selenium.support.ui.WebDriverWait); //WebDriver classes var wait = new support_u ...

Tips for retrieving Latency and Rendering time with Webdriver sampler in Jmeter

Can anyone assist me with extracting the latency and rendering time values of a web application using Webdriver sampler in jmeter? If possible, please provide some sample webdriver sampler codes to retrieve these values. Anticipated outcomes: 1) Obtain ...

How to use regular expressions to retrieve the ID of the object with the status "waiting" in a JSON array

Looking to extract the ID of an object from a JSON response using regular expressions. The JSON response contains an array of objects as shown below: ... { "Id":"01", "Subject":"Sub", .... "Status":"Completed" ... }, { "Id":"02", "Subject":"Sub", ...

Finding the right XPath for a specific code in WebDriverSampler

In my current project, I am dealing with a page that contains several fields that need to be edited using WebSamplerDriver. The challenge I face is that the id values of these fields are not consistent and tend to change periodically. This makes it difficu ...

Performing Load Testing using JMeter

After creating a test case using Selenium WebDriver and JUnit, I found myself needing to test it for over 100 users. However, due to limitations with my memory, I am unable to open that many browsers at once. I attempted to use threads in the application, ...

What is the process for exporting JMeter data into a JSON format?

Our team utilizes JMeter for running load tests and we are interested in exporting the data results, such as throughput, latency, and requests per second, to JSON format. Can you please provide guidance on how to accomplish this task, either by saving it ...

Having trouble with your Selenium WebDriver JUnit test?

I encountered an error in my script. Could this indicate a missing jar file that needs to be included in the library, or is it something else? ...

Tips for conducting Performance Testing using Selenium

I have been trying out new things lately, specifically focusing on selenium for the past 4 months. Can selenium be used for performance testing? If so, how can it be done? I would appreciate any information provided. ...

I've been endeavoring to compare the content IDs from two APIs using Jmeter

I am faced with a challenge where I have two APIs that contain the same content but have different URLs. My goal is to compare all the contents from both APIs using jmeter. So far, I have utilized the json extractor by setting the path as $..contentid and ...

Transforming the JSON body request from Postman into a Jmeter body request

const today = new Date(); const time = today.getTime(); pm.environment.set('time', time); let eventArray = []; for(let i = 1; i <= 50; i++) { let t = time + (i * 1000); eventArray.push({ "eid": i, "time": t }); } const data = ...

JMETER and Selenium WebDriver are experiencing issues with executing multiple threads efficiently

Currently, I am attempting to execute a test for 5 - 10 users using WebDriver Sampler within JMeter. I have successfully configured Chrome Driver and included the necessary WebDriver Sampler code. Interestingly, when running the test for only 1 user, every ...

Automating the WebDriver script in JMeter with advanced tools

Are there any tools available that can assist in creating automation scripts for WebDriver within JMeter? ...

Is it possible to process HTML and JavaScript as a request in JMeter?

After receiving a response, I noticed that the HTML body contains a hidden form along with an internal JavaScript function to submit the form (view snapshot here). Is there a method in JMeter to execute JavaScript code that directly submits a form? I am ...

JMeter's performance testing continues uninterrupted while utilizing WebDriver

Currently, I am utilizing the latest version of JMeter 3.3 to execute a Selenium WebDriver test. So far, everything appears to be in order. I have configured only one thread with a one-second ramp up and one loop count. However, once the WebDriver executi ...

The JMeter WebDriver sampler fails to execute when the test is being executed through Jenkins

Having trouble getting the JMeter - Selenium Webdriver sampler to run when executing a JMeter Test through a Jenkins job. Strange thing is, the Selenium Webdriver sampler runs perfectly when the test is executed directly from the JMeter instance. Does an ...

Guide to monitor and analyze end-to-end performance for enhancing the client experience

My current challenge involves finding the most effective way to monitor and analyze end-to-end performance trends between software releases. When I refer to "end to end," I am focusing on the complete experience for users accessing an application through a ...

Error message: org.apache.jorphan.util.JMeterException: Unable to execute bsh method: evalSourced script: inline evaluation of:

After upgrading from selenium-server-standalone-2.53.0 to selenium-server-standalone-3.1.0 in the %Jmeter%lib folder, I encountered the following error: Response message: org.apache.jorphan.util.JMeterException: Error invoking bsh method: eval Sourced fil ...

Testing the efficiency and effectiveness of a meteor-based application's performance

Recently, I was tasked with conducting a rapid load test on one of our innovative meteor-based node applications. Much to my surprise, the application does not utilize traditional HTTP/REST based communication but rather relies on the cutting-edge DDP pro ...

Conduct a JMeter stress test on a Next.js application to push the limits of available ports

I am completely new to stress testing, just letting you know. A bit of background information about the project, not the question itself: I have a web app built in nextjs14. A client has requested that it be able to support 400-500 simultaneous users conn ...

Having difficulty making changes to a Selenium Webdriver script in Jmeter

Currently facing an issue with Jmeter. Our configuration involves WDS invoking the URL, passing credentials to thread groups, and then threads to the database. However, I now need to edit the WDS script for the new sprint release. The problem arises as I a ...

Create a standard regular expression in JMeter's regex extractor feature

I encountered a code snippet in my HTML response that looks like this: 003cdiv idu003d"d1f15ddf10691ed7%2?604?-1form From this snippet, I managed to extract the ID value which is d1f15ddf10691ed7%2?604?-1 using the following regular expression 003 ...

The issue of JMeter WebDriver failing to recognize variable values

I'm currently facing some confusion while using JMeter with Selenium. My scenario involves having two Webdriver Samplers for different pages and a JSR223 Sampler to set up data, such as vars.put("loanAmount", "50000"); and other variables. Interesti ...

When attempting to pass a value using the JSON Extractor feature in JMeter, I found that only the default value was successfully passed

My issue with passing the correct value from the JSON Extractor to the next call in my JMeter script may stem from an expression problem. https://i.stack.imgur.com/fFuw7.jpg https://i.stack.imgur.com/JlG6q.jpg This is how the Response JSON appears: {"u ...

Timing the execution of each step in JUnit

Struggling with a task for the past 2 days that involves running a JUnit test on JMeter. Here's the code snippet: public class LoadTest5 extends TestCase { private WebDriver driver; public LoadTest5(){} public LoadTest5(String testName){ super( ...

Begin the execution of JMeter using a JUnit test

Can a recorded JMeter script, used to test the load of multiple user actions, be integrated into a Selenium/JUnit test case? I want to run the Selenium/JUnit test case with Java and receive performance results in the JUnit report, but most resources only ...

Getting started with Jmeter Web Driver: launching WDS within a pre-existing Chrome session

To validate a web request, I must launch Jmeter and link it to an existing Google Chrome session. The necessary components have been included in Jmeter: jp@gc - Chrome Driver Config jp@gc - WebDriver Sampler However, I am stuck on finding the correct code ...