load-testing

Using variables used in BSF post-processor as a parameter in another sampler

為{幸葍}努か 提交于 2019-12-24 06:45:46
问题 I have a BSF post-processor added to a sampler. The script in the post-processor is: var array = JSON.parse(prev.getResponseDataAsString()); array.forEach(function(object) { OUT.println("patient_id: "+object.patientId); OUT.println("fname: "+object.fname); OUT.println("lname: "+object.lname); }); now i want to use object.patientId, object.fname, object.lname values as parameters in another request's parameters. E.g. Thread Group - Sampler1 BSF Post-Processor - Sampler2 I want to use the

Jmeter include controller relative path

荒凉一梦 提交于 2019-12-24 05:22:12
问题 We are using Jmeter-maven-plugin and created a maven project in eclipse. My test file (MainTest.jmx) is in src/test/jmeter folder, in this test we used "include controller" to reuse test fragments. These fragments are stored in src/test/jmeter/fragments. We tried following relative path in include controller ../fragments/FragmentA.jmx src/test/jmeter/fragments/FragmentA.jmx Tried propertiesUser option in pom.xml <propertiesUser> <fragments.directory>src/test/jmeter/fragments</fragments

How to send JSON data from csv file in POST method?

∥☆過路亽.° 提交于 2019-12-24 03:25:51
问题 In my project I am using Jmeter for load testing. I have created a test plan as follows: Login to the application using a csv file which has 10 unique username and password (successfully done) A regular expression extractor will get the session id from the response which will be used in the next sampler for submitting a request. (sessionId extracted successfully) The next sampler will submit a request. This sampler accepts two parameters: sessionId & licenseRequest. A little details for the

Load testing authenticated users

最后都变了- 提交于 2019-12-24 03:05:33
问题 I want to do load testing with Visual Studio but i don't get the idea how to setup load testing with authenticated users . Imagine my scenario. This should be a quite common problem: a website where you need to authenticate with username and password . Perform a action that is only allowed for a authenticated user What i have done so far: i have already written UI tests with Selenium: (this is working quite nice) UPDATE: My Selenium test class: I want to use this code with the load test. This

Is it possible to persist WebTestContext across ASP.NET load test session?

时光总嘲笑我的痴心妄想 提交于 2019-12-24 01:49:16
问题 I want to load test an enterprise Web application (which I did not build), using a Visual Studio 2010 Ultimate Load Test. I want each virtual user to log in at the beginning, and log out at the end of their run of random tests. I can properly configured the load test to do so. However, there is a complication. The session key is injected into the URL, like this: http://ProductName/(S(ilv3lp2yhbqdyr2tbcj5mout))/System/Container.aspx I converted the Visual Studio WebTests to coded tests, and

Load Testing in VS2010 doesn't seem to report results

你说的曾经没有我的故事 提交于 2019-12-23 16:56:39
问题 I do the following: Create a Web Performance Test. Browse around cnn.com while the recorder records the steps. Create a Load Test. Go through the wizard, attach the Web Perf Test created in the previous step. Run the Load Test. It seems to run fine with all kinds of colorful statistics and I can see requests going out via TcpView utility. The screen looks like this, while running: When it's all done, I get a blank screen without any results (see below). Am I missing something simple? 回答1:

Is there a cheaper way to do load testing than upgrading to Visual Studio 2010 Ultimate

做~自己de王妃 提交于 2019-12-23 09:15:04
问题 I have a Visual Studio 2010 Professional license so Ultimate is a long way off and all I want it for is load testing for a few weeks or so. Is there a cheaper way of getting just the load testing part of VS2010 ultimate or an alternate load testing tool with decent metrics of how the load testing is doing? I'd like to know pages/sec, page speed, database connections and less important: CPU, memory, errors. 回答1: I have always found that the Radview Webload tool gives a good alternative but you

How do i get my CSV file?

房东的猫 提交于 2019-12-23 05:21:17
问题 I have done the following changes in the jmeter.properties file : jmeter.save.saveservice.output_format=csv jmeter.save.saveservice.assertion_results_failure_message=true jmeter.save.saveservice.default_delimiter=| But still I could not find where my .csv file. Can anyone please help me. 回答1: Please see first answers to these posts: How to save JMeter Aggregate Report results to a CSV file using command prompt? How do I save my Apache jMeter results to a CSV file?. In addition to your

Can anyone post an example of how to enable SSL in Tsung?

℡╲_俬逩灬. 提交于 2019-12-22 09:39:48
问题 I'm load testing a CouchDB server from another machine using Tsung, and need to establish a secure connection. Unfortunately, I've not been able to find an example of the syntax in the documentation or online... Any help would be greatly appreciated! 回答1: In tsung.xml: <servers> <server host="HOSTNAME_HERE" port="443" type="ssl"></server> </servers> References from the current Tsung documentation: 6.2. Clients and Server > Basic setup: Type can be tcp , ssl , udp (for IPv6, use tcp6 , ssl6 or

Spring load testing

半城伤御伤魂 提交于 2019-12-22 08:19:14
问题 I've implemented a testing unit using spring (mock mvc), and I'm looking for a tool to run this unit in many threads/processes (so it will act as load testing for my server). I've seen applications like the grinder and jmeter but I don't want to re-write the entire unit, but just to use the existing one. Any ideas? 回答1: JMeter is able to execute existing JUnit tests via JUnit Request sampler, all you need to do is to drop jar(s) with your test along with dependencies somewhere in JMeter