Tag Info

Hot answers tagged

38

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 ...


12

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 ...


7

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 ...


7

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.


6

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. ...


6

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 ...


5

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


5

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

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

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 ---- ...


4

Please see the following link: http://jmeter.apache.org/usermanual/test_plan.html#thread_group The 'number of threads' are equivalent to the number of concurrent users that you are looking for. In your scenario above, you have 20 concurrent threads (users) and each thread will run 10 times.


3

There are no tools that can provide you client-side rendering times. Client side rendering is not a measurable value, unless all of the devices accessing the system are identical in terms of hardware and network access to the SUT. However, It is completely viable to do a stopwatch test of the total page rendering time, as long as you communicate to the ...


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

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 ...


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

'10000 users' using jmeter is pretty tough on single machine considering given configuration, the maximum number of threads supported by jmeter will be 300 to 400 depending on your script, eventually jmeter will get stuck with 'OutOfMemoryError' and it will create a very large dump file. it would be best to use distributed jmeter and simulate distributed ...


3

Out of box JMeter provides the following scripting languages for BSF: JavaScript via Mozilla Rhino Beanshell via Beanshell Given var statement it looks like JavaScript is being used. By the way, the language needs to be selected in the "Language" dropdown, otherwise BSF PreProcessor will fail with the "unsupported language" exception, take a look ...


3

It depends on what your test is doing. If it's something long enough - it will be 20, if it's something very short - it'll be 1. JMeter offers several options to control the load. In particular the most commonly used elemends are: Synchronizing Timer - to pause threads unless certain number will be reached and fire them all at the same time. Constant ...


3

First use the xpath extractor and extract the string from title the xpath would be //title Give the reference name say "t" and default as "Not Found" Next use in the if controller give condition as "${t}" == "Google" add a sampler in it which hits yahoo.com.(Make sure you use https in protocol inside sampler) Add a View Results Tree in the Thread Group ...


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 ...


3

I have put together a really simple article of doing performance testing with Jmeter over here - http://testcy.co.in/performance-testing-jmeter. Even novice users with not much technical knowledge of code can do performance testing using this method. For more tutorials, here you go, http://www.tutorialspoint.com/jmeter/jmeter_tutorial.pdf ...


3

This is a very strong "yes". You might want to limit yourself a little in the overall validation, but checking response codes only is a strong fail in my opinion. Additionally just checking the result by checking a single phrase or word is not enough. Update: This response answers the topic question: "Should load test validate functionality?" and does not ...


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

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 tried my hand with Gatling, and I would rate it way way over Jmeter. Biggest advantage is you get to write some code for a load test- introduces type safely, re-usability and maintainability. Scala is not hard to learn for a java developers. You can generate higher load without actually choking your own machine. Performance of Jmeter itself decreases ...


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 ...



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