Tag Info

Hot answers tagged

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


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

'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

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

You need to refine your scripts for the unwanted requests as per below mentioned ways First you should exclude all the static content (like CSS, images, js files, .properties files, .ico etc.) from your recording, as requests for these samples should be from cache and keeping these requests will only make your script lengthy and heavy. So, in your HTTP ...


2

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


2

In regards to you screenshots in general and Summary Report in particular, as per The Load Reports guide the explanation of the report fields is: # Samples is the number of samples with the same label. Average is the average time of a set of results. Min is the shortest time for the samples with the same label Max is the longest time for the samples with ...


2

I would recommend JMeter as: Price JMeter: free and open source MSVS: Test Professional costs around $2000 per developer. OS supported JMeter: any MSVS: Windows only Protocols supported JMeter: HTTP, FTP, JDBC, SOAP, TCP, JMS, SMTP, POP3, IMSP MSVS: HTTP However if your company has Microsoft products based development infrastructure, like Team ...


2

First of all, it is not a good idea to include external resources into your load test. You need to performance test your server, not code.jquery.com (unless you need to test code.jquery.com itself) I would suggest to filter everything external like scripts, banners, etc. as it doesn't make any sense due to not having control of external resources ...


2

Your I just need them to execute each HTTP request once. stanza conflicts with the scenario described as the thread, representing a virtual user will be shut down when there is nothing more to do and there are no requests/loops defined. In regards to having separate test plans: there is no need to have different test plans as you can have different thread ...


2

This greatly depends on the system you are running jMeter on and how heavy the test is. Your system does not look heavy enough for 10k concurrent users, from the jMeter documentation I get the feeling 1k is the target limit for each machine. Have a look at http://jmeter.apache.org/usermanual/remote-test.html for running your tests from multiple remote ...


2

Can you please elaborate your question, i.e. which common listeners you are talking about like:- Aggregate Report View Results in tree View Results in table and which fields explanations you need like:- Number of Samples (# Samples) Average 90% line Because JMeter has lots of listeners and a performance tester needs to summarize his/her report in a ...


2

You can capture the server utilization by yourself too either use the Jmeter plugin http://jmeter-plugins.org/wiki/StandardSet/ this will provide you the CPU, Memory, Network I/O etc. utilization of the server and then you can check whether any of these things are creating bottleneck for you. may be you will find that on increasing the number of users ...


2

First of all check JMeter Glossary for definition of basic load testing terms In regards to median and average, as per The Load Reports guide #Samples is the number of samples with the same label. Average is the average time of a set of results. Median is a number which divides the samples into two equal halves. Half of the samples are ...


2

JMeter produces some basic fields/result_field. JMeter doesn't create everything you see in different types of Listeners. You can give this a try. Create a plan Generate atleast 100 samples (As large amount of data is required for some listeners), using a single sampler (request) Use as many Listeners as you want of different types (say 15 types of ...


1

If you just started with JMeter, then I will suggest you to first go through this link https://jmeter.apache.org/usermanual/jmeter_proxy_step_by_step.pdf It will help you a lot in starting with JMeter. Secondly, as you are new to JMeter, then you should go with the Recording option provided by JMeter, using that you will not need to add Sample Requests by ...


1

Here are few potential problems along with possible workarounds: You're hitting hardware limits, i.e. server doesn't have enough CPU, RAM, Network or Disk IO to handle 20 users. It may be tested via PerfMon plugin Errors are caused by network connection between JMeter and Application Under Test issues. Check Connect and Latency metrics. If points 1 and 2 ...


1

Good you found a bottleneck, now as with all automated test failures you can question, is it the test, the code or the infrastructure. We cannot answer your situation for you. I would advice to have a developer and a server-admin nearby when performing load tests. The server-admin should monitor and configure the infrastructure and when the infrastructure ...


1

JSON is a lightweight format, while XML is a considered a heavy weight format. So, to transmit the same amount data, you'll need fewer bytes in JSON,which may improve the performance if you are sending lots of data. It is also considered more "human readable" than XML. As for how you know if a server is sending JSON data, it should say so in the mime ...


1

There are only 2 or 3 steps but while recording the plan some 20 samples are generated. This is because when you record a test then not only your actions but along with that all the static content which is being used for completing your request gets recorded. So you will see lots of requests for images, style sheets, Java script files etc. in your ...


1

Ramp-up period is the time required for all threads representing virtual users to start. I.e: This is configuration of test plan: Number of Threads (users): 100 Ramp-up Period (in seconds): 10 Loop Count : No <== It means that every 0.1 second (=ram-up period/number of threads) a new thread starts giving 100 running threads after 10 seconds. ...


1

...a bit of necroposting. When you use Extractor component you have to correctly set Field to check value. In your case it will be URL: HTTP Sampler Regular Expression Extractor Reference Name: GUID Regular Expression: Guid=(.+?)& Template: $1$ Match No (0 for Random): 1 ...


1

ClassNotFoundException occurs if: a) the jar containing the class definition is not present. b) there exists some duplicate definition of a class. The error: java.lang.ClassNotFoundException: org.apache.jmeter.JMeter means that the jar file is missing/corrupted, due to which you're getting this error message. You can try these methods: Check if ...


1

Not sure what language is being used in opkey, JMeter's WebDriver Sampler currently supports only JavaScript via JSR223 / Mozilla Rhino See The WebDriver Sampler: Your Top 10 Questions Answered to learn how to implement the most common activities in JavaScript. I believe that some refactoring will be still required, however using regex replacements if may ...


1

For the moment it is not possible to record these scripts. There is Selenium IDE project which can record browser actions and export the recording into several programming languages, however supported languages list doesn't include JavaScript. Besides Selenium IDE produces quite "dirty" code. So I would suggest developing scripts from scratch. A lot of code ...


1

The question seems to imply that you need to check whether the page is correct during the performance test. There is a price to be paid for checking correctness during a performance test: these tools are optimized for performance testing rather than functional testing, and so you may have to go through more effort to check a page's correctness than you ...


1

Good luck in your intention. The most popular proprietary/paid performance testing tools as for now are: HP LoadRunner Borland Silk Performer Microsoft Visual Studio Load Testing Framework Each tool has free trial so you should be able to perform your own assessment, Loadrunner seems to be the most popular one. In regards to free/open source tools, ...



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