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


9

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

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


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.


4

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


4

You are running the JMeter on your local machine. The load on your local machine comes from creating the requests to be sent to the server and handling the responses from the server. You may want to check for example this blog post for performance tuning tips, such as running real load tests in non-gui mode.


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

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

'Also JMeter concurrent threads are not "concurrent users" as real-life people do pauses between actions on web pages. If you don't set any pauses in your tests then 20 concurrent threads will stand for something like 200-250 concurrent users.' Yes, I am in an argument with a client about this fact. They are thinking 50 Threads = 50 Users. But there are no ...


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

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


3

You should show them a report in which you include Response Time (if there is any kind of SLA with client that each of the 13000 users will get a response in X seconds). If this doesn't matter in how much time users are getting response then leave this value. Based on the result of Response Time mark your test as Pass or Fail in your report. If your ...


3

Option 1: You can keep the user count as 1 and Loop count as 100 in your thread group. This way your script will be executed 100 times, without concurrency of users and one user at a time. you can use CSV file if you want to change the user login credentials and other data at each loop starting i.e. different data for different user. Option 2: Another ...


3

First ask your client that 'How many users their website intend to support?' From client you should get the number of users during Peak Load (Y) and Normal Load (X) and their expected Response Time, some clients say make it as fast as possible, but never go for this wording, ask him about the numbers. Then start running your script from 1 to X to Y in an ...



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