Tag Info

Hot answers tagged

31

Looking into Jmeter User's Manual will be indeed good as first step (Getting Started, Building a Test Plan, Building a Web Test Plan). Several step-by-step guidelines about Jmeter setup and usage for performance/load testing you can find here: - Jmeter articles and tutorials: Load Testing your Applications with Apache JMeter Using JMeter Effective load ...


11

Similar questions have been asked a number of times. The general consensus is that UI automation tools such as Selenium are not a good choice for load testing. There are a number of reasons why, but the main one is that it is a LOT slower. You can easily spin up thousands of concurrent requests in a second in a tool like JMeter which to reproduce in ...


8

I have had some luck using Grinder. It is Java based but you can also write your scripts in Jython or Clojure. You said that you would like to take advantage of your team's current Selenium scripts and expertise performance testing. You did not describe your regression test scripts, but you may want to reconsider whether they are appropriate. In ...


6

Imagine a jackhammer with a Phillips-head screwdriver welded onto the handle. You could, in theory, use this modified jackhammer for screwing things together, but you probably wouldn't want to. JMeter is a tool for performance testing. Selenium is a tool for functional testing. I talk about the differences between the two kinds of testing here.


5

You could also check out Gatling, which is an open source stress tool based on akka. On the Gatling homepage, you'll find a direct comparison of how your test specification will look in Gatling vs. in JMeter. This might help you decide between these too. If you want to create massive amounts of load, I think there's nothing better than akka as an engine. ...


5

JMeter thread can be stopped with standard JMeter sampler Test Action. There are 3 options: Pause, Stop and Stop Now.


5

Java The Apache JMeter™ desktop application is open source software, a 100% pure Java application designed to load test functional behavior and measure performance. It was originally designed for testing Web Applications but has since expanded to other test functions. A lot of Java applications start with a j, like jEdit and it often indicates ...


4

Does your company have a firewall proxy? I've run into this same issue with non-Vaddin apps, and resolved the issue by launching Jmeter with proxy info. From the command line, it looks like this: jmeter.bat -H proxyDomain -P proxyPort -u proxyUsername -a proxyPassword


4

Based on the answer and comments I had received what I wound up doing was: Use a Once Only Controller with a BeanShell Sampler to read the file into an array, then when I need to pull that data I just use a BeanShell PreProccessor with: import java.util.Random; Random random = new Random(); vars.put("MyChosenVariable", vars.get("AvailChoices_" + ...


4

JMeter is an excellent choice for your requirements. JMeter has a loop controller: http://jmeter.apache.org/usermanual/component_reference.html#Loop_Controller, you may want to add a counter or simply use a user defined variable. Both options will work. The easiest is using counters - Thread Group -- Loop A --- Counter 1 (Var name: C1) --- Loop B ---- ...


3

Randomizing the file BEFORE use is a much better approach. It will much more efficiently (especially in the case of significant amount of entries) to randomize the order of entries in your CSV file before the test - and then read prepared data sequentially, in way you like (via CSV Data Set e.g.). You can do the preparation using e.g. perl script or even ...


3

Try recording your test script using the blazemeter's chrome extension. Once you have recorded the script download the jmx file and load it in jmeter and run your test. UPDATE (from comments): The script is not chrome-specific. It records the script in jmx which is the file format in which the jmeter test plans are saved, so once recorded you can edit it ...


3

AirieFenix, welcome to SQA. Here are some possible problems: Your JMeter machine ran out of resources. Your server is overwhelmed. An intermediary (e.g. a proxy server or a load balancer on a DMZ machine) between your JMeter machine and the server is overwhelmed or is intentionally throttling network traffic. Here are some ways to narrow things down: ...


3

Resolved this by using JMeter's Duration Assertion as a child to the HTTP Request I wanted to time setting the Duration to Assert in milliseconds to the longest time allowable and Appy to as Main sample only. When this time is exceded the assert fails and the test gets marked as failed.


3

With Jmeter you can record both HTTP/HTTPS traffic, also there is Jmeter Chrome extension which can record traffic without configuring JMeter. To record web traffic in Jmeter: add Recording Controller into Test Plan add HTTP Proxy Server into WorkBench click Start button. open browser network settings change proxy settings to localhost:8080 remove ...


3

First you need to define what the "breaking point" is. There are a number of possibilities. The obvious problem would be if the web server itself crashes and stops responding, but there are a number of problems that can occur well before that point that in most cases would still be considered "broken". Some other problems that could tell you your ...


2

Finally I found the solution to the problem I was facing. I just had to figure out on which requests I had to place the viewState extractors. I was actually placing extractors to every request where viewState was there in the response and using the extractor's reference in the next request.


2

I ll suggest Jmeter for Performance... As the name indicates Jmeter is one of the Java tools which is used to load testing client/server applications. Earlier it was used for testing Web Applications only however now-a-days its being used for other test functions. It is typically used to measure performance and to load test functional behavior of ...


2

Have you added an HTTP Cookie Manager? Without one of these JMeter will not store any cookie information after you have logged in so your next request will not be as an authenticated user. To add an HTTP Cookie Manager: Right click on Test Plan Select Add -> Config Element -> HTTP Coookie Manager That all being said an HTTP 500 error implies ...


2

I want to add that is it possible to use Selenium for performance testing. Example: you have application with Web-UI and you want to measure UI reaction with one user but dealing with huge database. In this case JMeter is a bad choice, because it can't process Ajax requests. I've worked with such situation on my past project, and for such volume testing ...


2

(disclaimer: I'm the Gatling project lead dev) It currently seems unefficient to use Webdriver for load tests, even with a huge grid. If you want to reduce the cost of maintaining functional tests AND load tests, you can build a system where you obtain your load tests base from your functional tests: plug a recording system on your functional tests, such ...


2

I experienced issues when trying to scale to large numbers of users with Selenium Grid. I ended up going with Funkload because: It is significantly easier to scale and run tests quickly (without random hang-ups of browser instances) It has an easy-to-use recorder of http requests It makes it easy to load test API's by implementing the webunit Python ...


2

I find that using a combination of both gives you the most realistic results. As the posters have already mentioned Selenium requires a large number of servers to get a similar load to tools such as jmeter. However if you incorporate the browsermob proxy into your selenium tests ...


2

Bad boy is best and very simple tool to integrate with J-meter you just need to capture test scenario in bad bou tool and than from file menu "expor it to j-meter", so .jmx file get created which you can use with j-meter


2

I have tried it and at times gotten some use out of it, the problem I have found when doing this is that often the scenarios I want to use for Functional Tests don't exploit enough of the system to really give me any meaningful performance metrics. My functional tool also doesn't allow this as it was chosen for its purpose, while my load test tool was ...


2

Typically on a Web application an idle user will consume almost no server resources. The constraint will be the amount of memory or database space used to store the users session. If the server can therefore support 2000 users you shouldn't have any problem. That said a more real concern should be the impact on performance of the server due to the extra ...


2

Agree with Andy here and think you need to take great care ensuring that the test reflects what may actually happen. First I'd look at session timeout and memory release. Ensure that your first batch of users remain active preferably doing something useful say every 30 seconds. This will ensure no session timeouts and also give you some measurable ...


2

It depends on what do you mean by stay logged. To simulate 1000+ unique virtual users you need to provide separate username/password combination. It's likely that you will also need a HTTP Cookie Manager to represent user cookie. In regards to Ultimate Thread Group, the Hold load bit means that test threads will be looping over for specified amount of ...


2

jmeter I know it sounds like I'm beating a dead horse here, but this is the most commonly used open source tool. There is documentation all over the internet about using and setting it up. Additionally, if your company is a java shop, there are probably many developers who could help your team get started.


2

Is this a real-world question, or an academic one? Are you trying to find the answer for your particular application that you are testing? Or are you looking for a general formula as an answer? If you have an application that is already in production, then you can analyze the logs and determine the usage pattern of your 2000+ users. That will tell you how ...



Only top voted, non community-wiki answers of a minimum length are eligible