Re: Export to Curl from Jmeter?

2023-07-06 Thread David Luu
An online search seems to indicate JMeter <> curl interaction is one-way with curl to JMeter, and not the other way around? Until someone enhances JMeter or has some plugin that will get you responses as curl https://jmeter.apache.org/usermanual/curl.html https://www.seleniumtests.com/2016/12/rec

Sharing API test data between functional API tests and jmeter API performance tests?

2018-08-02 Thread David Luu
This isn't specifically a jmeter question but relates to it. Granted in this scenario, jmeter could also be used as for the functional API tests, but in general it's not often used that way. Some product suites for commercial tools might provide some integration for this, but say you use open sour

Re: Trying to POST protobuf data with JMeter

2018-06-20 Thread David Luu
I'm unaware of details of protobuf particularly with HTTP, but if you were to make an HTTP request using a REST/API client/tool (or custom scripting) or a browser based REST client, what would it actually look like for what you send, and/or rather what does the raw data look like when you sniff it

Re: New backend listener client for sending data to SignalFx

2017-12-06 Thread David Luu
Curious to how many people have tried this new plugin at the moment. Feedback would be good obviously. On Sun, Dec 3, 2017 at 12:30 AM, Dmitry Pavlov wrote: > Hello, > > I've created a separate plugin for sending data to SignalFx > (timeseries data collector as a service).

Re: Weighted (frequency of) random execution of samplers in a test plan? Similar to locust.io option

2017-08-01 Thread David Luu
FYI, also got feedback in another JMeter forum: http://www.sqaforums.com/forums/jmeter/155871-weighted-frequency-random-execution-samplers-test-plan-similar-locus.html that pointed me to https://jmeter-plugins.org/wiki/WeightedSwitchController/ On Sat, Jul 29, 2017 at 6:12 PM, David Luu wrote

Re: Weighted (frequency of) random execution of samplers in a test plan? Similar to locust.io option

2017-07-29 Thread David Luu
t; > > > > > > >On Sat, Jul 29, 2017 at 4:44 PM, Felix Schumacher < > >felix.schumac...@internetallee.de> wrote: > > > >> Am 27.07.2017 um 03:35 schrieb David Luu: > >> > >>> JMeter has random controller, and I was wondering

Weighted (frequency of) random execution of samplers in a test plan? Similar to locust.io option

2017-07-26 Thread David Luu
JMeter has random controller, and I was wondering how one would set up weighted ratios of different samplers executing at different frequency in the random draw. For example comparing to the option available in locust.io by specifying the ratio of execution frequency: http://docs.locust.io/en/lat

Enable/disable components (like listeners) from CLI?

2016-07-14 Thread David Luu
It's nice and easy to enable/disable components in GUI mode. Is there any solutions for CLI mode? I've so far used jmeter properties that I set in CLI, that are preset with a default value into jmeter variables in test plan to handle this for CLI. Unfortunately, this only works for components that

Re: CLI based listener and/or modding the Summariser in jmeter core?

2016-07-13 Thread David Luu
ust save your > results and load it in the listener of your choice . > > On Tue, Jul 12, 2016 at 5:12 PM, David Luu wrote: > > > I've not really used listeners beside aggregate graph/report, view > results > > tree, and some jmeterplugins.org ones. Came to know listen

CLI based listener and/or modding the Summariser in jmeter core?

2016-07-12 Thread David Luu
I've not really used listeners beside aggregate graph/report, view results tree, and some jmeterplugins.org ones. Came to know listeners don't work in CLI mode (e.g. https://www.blazemeter.com/blog/top-2-techniques-get-jmeter-test-results-non-gui-mode ) I recently came across an interesting post:

backend listener & graphite use?

2016-07-12 Thread David Luu
Has anyone used the backend listener specifically with graphite? Would be nice to see some documentation/tutorial/blog about it. It seems most of the tutorials and blog posts about the feature use influxdb with grafana. Even the official jmeter docs has section on influxdb + grafana, yet the graph

Re: JMeter test plan parameterization - setting loop count to be indefinite?

2016-06-02 Thread David Luu
test right now - but if I remember -1 was infinite - try it out. > If it doesnt work then you'd have to use a while controller inside your > test that could react based on passed parameters - whether it wanted to > continue or stop after awhile > > regards > deeepak > >

Re: Global code-based config element - defined/executed once then shared across threads/thread groups?

2016-06-01 Thread David Luu
up will "set" data into this object and the rest of the > test can get it > - you could write a custom function if you wanted to make it easy to get > the data. > > regards > deepak > > On Wed, Jun 1, 2016 at 5:16 PM, David Luu wrote: > > > Is there any f

beanshell and javascript not for use with intensive load testing?

2016-06-01 Thread David Luu
Just noticed this reading some stuff in the best practices section: http://jmeter.apache.org/usermanual/best-practices.html#jsr223 "For intensive load testing, the recommended scripting language is one whose ScriptingEngine implements the Compilable interface. Groovy scripting engine implements Co

JMeter test plan parameterization - setting loop count to be indefinite?

2016-06-01 Thread David Luu
I've set up and used parameterized loop count, and it's also documented as a best practice: http://jmeter.apache.org/usermanual/best-practices.html#parameterising_tests. But I was wondering if there's a way to tell JMeter to run the loop indefinitely, similar to what's provided in the GUI - a check

Global code-based config element - defined/executed once then shared across threads/thread groups?

2016-06-01 Thread David Luu
Is there any facility in JMeter already to define code/script based configuration once for threads or thread groups to then use later on? Meaning a single execution is done to dynamically generate the needed test data (and utility methods) at test startup, then this whole config "object" is referen

Best way to entering property value that contains commas for a property function call?

2016-04-18 Thread David Luu
I define some user defined variables whose values are JMeter properties with a default value: ${__P(myproperty,defaultValue)} I notice you run into issue when the default value is a string that contains commas. JMeter would fail to interpret it and return the the whole line above literally as the

Re: JMeter test plan path on remote servers for distributed testing

2015-10-08 Thread David Luu
local and distributed mode without absolute paths. I'm currently using this method to get JMeter script path: org.apache.jmeter.services.FileServer.getFileServer().getBaseDir(); On Thu, Oct 8, 2015 at 3:34 PM, sebb wrote: > On 8 October 2015 at 22:45, David Luu wrote: > > For t

JMeter test plan path on remote servers for distributed testing

2015-10-08 Thread David Luu
For the distributed testing approach with remote JMeter servers, the test plan is sent to the remote servers from the client controller but not the data files. But I tend to use paths relative to the JMeter test plan for data files, so I was wondering, where the test plan is sent/stored to on the

Re: Anyone know how to log to JMeter from a Java sampler/class?

2015-09-30 Thread David Luu
-2.0.jar. I also had to find jorphan-2.6.jar online which didn't seem to be already within JMeter libs. On Wed, Sep 30, 2015 at 6:35 PM, David Luu wrote: > I hope this is not more of a JMeter developer mailing list question. If > so, please let me know. > > I'm using a JMeter

Anyone know how to log to JMeter from a Java sampler/class?

2015-09-30 Thread David Luu
I hope this is not more of a JMeter developer mailing list question. If so, please let me know. I'm using a JMeter plugin: https://github.com/BrightTag/kafkameter as such with that plugin, I'm implementing a custom message generator in Java for the plugin to use to generate load. For the most par

Re: Howto rewrite Java in JavaScript(Rhino engine)

2015-02-18 Thread David Luu
think maybe it's better to use pure Java code with Beanshell sampler as > sebb mentioned. > On 19/02/15 09:52, David Luu wrote: > >> Unless the WebDriver sampler API/design has changed in newer versions and >> you're using an older version, perhaps you are not using

Re: Howto rewrite Java in JavaScript(Rhino engine)

2015-02-18 Thread David Luu
Unless the WebDriver sampler API/design has changed in newer versions and you're using an older version, perhaps you are not using it the correct way, or rather at least not the normal way? Have you tried using it the normal way? As suggested by the tutorial/documentation: http://jmeter-plugins.or

Re: JSON to string in javascript via BSF post processor, etc.? Seem to come across a problem. A bug? Any help or tips?

2014-11-25 Thread David Luu
e value can't be added to a JSON object in javascript BSF postprocessor/etc to then be stringified. I wonder then whether one would run into similar problem in Java via Beanshell, etc. I will look into that next. On Tue, Nov 25, 2014 at 12:08 PM, sebb wrote: > On 25 November 2014 at 19

Re: JSON to string in javascript via BSF post processor, etc.? Seem to come across a problem. A bug? Any help or tips?

2014-11-25 Thread David Luu
e is no error caught (works fine). Other than that, the error is a bit cryptic on the specifics of which Java class. David On Tue, Nov 25, 2014 at 1:01 AM, Felix Schumacher < felix.schumac...@internetallee.de> wrote: > Hello David, > > Am 25.11.2014 04:57, schrieb David Luu: > &

Re: JSON to string in javascript via BSF post processor, etc.? Seem to come across a problem. A bug? Any help or tips?

2014-11-24 Thread David Luu
oses. > > It's been awhile since I tried to see if JSON stringify support was there > (in rhino, yes?). I'll have to take another look at that. > > Good luck... > > Mark > > On Mon, Nov 24, 2014 at 8:57 PM, David Luu wrote: > > > I was wondering if an

JSON to string in javascript via BSF post processor, etc.? Seem to come across a problem. A bug? Any help or tips?

2014-11-24 Thread David Luu
I was wondering if anyone has dealt with JSON data and the need to stringify it at some point and doing this in JMeter, say with BSF sampler for javascript? Any tips on that would be appreciated. I gave it a try and noticed that JMeter, at least as of version 2.9 r1437961 that I'm using, seems to

Performing HTTP purge request for cache/proxy servers

2014-01-14 Thread David Luu
To purge the cache or proxy server as part of test setup (or teardown), one can do something like this in Java: http://stackoverflow.com/questions/12949457/how-do-i-do-http-purge-from-java I'm just wondering whether anyone has interfaced HTTP purge call with JMeter via Beanshell or any of the oth

Re: Query regarding Performance Testing of Server with Android base client

2013-12-20 Thread David Luu
Curious, I'm not aware of the whole mobile infrastructure details, so Android (and iOS) push notifications are HTTP based and can be captured with the proxy? Or does push notifications use a different network protocol? On Fri, Dec 20, 2013 at 3:21 AM, Flavio Cysne wrote: > You could load your

Re: JSON encoded URL problem

2013-03-05 Thread David Luu
I would think a preprocessor is best to deal with that. You could probably JSON/URL decode that back into the original string in the preprocessor. It doesn't have to be in Beanshell/Java, could be in Javascript with one of the other preprocessors. Whatever is easiest to decode the string. Like in P

Re: complex javascript actions in jmeter load test

2013-02-06 Thread David Luu
So based on the discussion, I take it the OP/Zippy has decided that integrating Selenium with JMeter (e.g. calling Selenium from JMeter) or running a Selenium test separately but in parallel/simultaneously as JMeter to assess browser DOM/AJAX rendering & response time is not acceptable? Because tho

Re: complex javascript actions in jmeter load test

2013-02-06 Thread David Luu
cation performance > monitoring from worldwide locations for free. > > > On Wed, Feb 6, 2013 at 6:17 AM, David Luu wrote: > > > Also, if the OP's intent is to want to test both server & client > > performance, then in terms of JMeter, the optimal approach is to run 2

Re: complex javascript actions in jmeter load test

2013-02-05 Thread David Luu
; > > tools > > > > - but they also need more resources as well as given how often a UI > > > changes > > > > as opposed to the HTTP request/response pair , sometimes JMeter > > > > scripts > > > are > > > > more resilient to c

Re: complex javascript actions in jmeter load test

2013-02-05 Thread David Luu
PM, Zippy Zeppoli wrote: > Will probably just buy BrowserMob. > Too bad there isn't an open source framework to already do this. > > Building this is a yak shave, and I need to be testing, not building a test > harness thats probably going to break on the next release. > >

Re: complex javascript actions in jmeter load test

2013-02-05 Thread David Luu
X call) > > 3) click on result to view order detail (AJAX) > > > > Pretty much a standard ecommerce transaction, but the interface is all > > javascript. > > > > On Mon, Feb 4, 2013 at 7:40 PM, Stott, Charlie wrote: > > > > > > -Origi

Re: complex javascript actions in jmeter load test

2013-02-04 Thread David Luu
ns in jmeter load test > > > > The problem is Selenium has no performance testing harness. > > Sucks that it seems BrowserMob (paid solution) is the only solid option. > > > > Until someone builds something with Phantom.js, but it seems JMeter isn't > > go

Re: complex javascript actions in jmeter load test

2013-02-04 Thread David Luu
at it seems BrowserMob (paid solution) is the only solid option. > > Until someone builds something with Phantom.js, but it seems JMeter isn't > going to cut it here. > > On Fri, Feb 1, 2013 at 5:40 PM, David Luu wrote: > > > You'll need to figure out what the compl

Re: complex javascript actions in jmeter load test

2013-02-01 Thread David Luu
You'll need to figure out what the complex javascript does. Does it make any AJAX requests, or is it all local client side processing/rendering? If it's all local, then there's no point testing it with JMeter, that's client side browser testing better done with Selenium. It won't impact the server

Re: Controller and Agent on different networks

2013-01-01 Thread David Luu
Controller is able to contact the agent > machine but not other way round. > > Regards, Yogesh > > -Original Message- > From: David Luu [mailto:manga...@gmail.com] > Sent: Sunday, December 30, 2012 4:49 AM > To: JMeter Users List > Subject: Re: Controller and Agent o

Re: Controller and Agent on different networks

2012-12-29 Thread David Luu
I don't know for sure but would imagine that is possible, provided that the agent on a different network can talk to the controller, and vice versa. If they can communicate with each other, it should work. For a quick check you could try pinging the IPs or scan/telnet the ports on those IPs used b

Re: How to force the port to be used in an HTTP Sampler?

2012-11-19 Thread David Luu
Shetty wrote: > HTTPSampler1 > +Regex Post Processor to extract out location header into variable > +BSH post processor - read port put in defaults etc if needed > HTTPSampler2 ${url}, ${port} > > > regards > deepak > > > > > On Mon, Nov 19, 2012 at 3:31 PM, Dav

Re: How to force the port to be used in an HTTP Sampler?

2012-11-19 Thread David Luu
T wrote: > > > You could build two different samplers and extract the redirect from the > > header if the address is dynamic. > > > > > -Original Message- > > > From: David Luu [mailto:manga...@gmail.com] > > > Sent: Monday, November 19, 2012 4:2

Re: How to force the port to be used in an HTTP Sampler?

2012-11-19 Thread David Luu
It's not totally clear from the original email, but I'm assuming the sampler was originally requesting an HTTP url on port 80 (specified specifically in port field or left at default). And the result of the request causes a redirect to HTTPS with specific addition of port 443 in URL, and that the

Re: HTTP binary response

2012-10-25 Thread David Luu
I believe there's some support for it in JMeter in terms of view results tree. I can see images, displayed in response tab in the view results tree. Images are binary data. You can also view PDF content as well, but it gets displayed as bunch of funky characters with some text rather than a rendere

Re: Altering HTTP-request headers

2012-10-16 Thread David Luu
Then perhaps my initial assumption of nesting a header manager under a sampler doesn't work, or there's a bug. I know there are issues with while loops like using a counter within the while loop controller as condition and increment at same time doesn't do what one intends when compared to coding a

Re: Altering HTTP-request headers

2012-10-15 Thread David Luu
e) > - BeanShell Pre-Processor (modify myHeaderVar variable value) > - HTTP Request Sampler 2 > - HTTP Header Manager (using variable myHeaderVar, for example) > - BeanShell Pre-Processor (modify myHeaderVar variable value) > > Regards. >

Re: Altering HTTP-request headers

2012-10-15 Thread David Luu
So you can set headers via HTTP Header Manager as a child of a HTTP request sampler? That's good to know, simpler setup. My alternate solution was to group setting the header (via HTTP Header Manager) and the sampler together as a logical unit (as children of) using a Simple Controller. On Mon, O

Re: Making HTTP requests with sending headers at a per request/sampler level

2012-10-10 Thread David Luu
Thanks for response, good to know of the HTTP Raw Request limitation. Just figured out workaround for what I wanted to do with regular HTTP sampler. Thought I'd share for novice JMeter users. Use Simple Controller as a grouper/segregator, and nest the HTTP Header Manager and any HTTP samplers that

Re: How to run tests as part of CI

2012-10-02 Thread David Luu
I once read an article about integrating JMeter tests with CI builds. Will have to look around for it. It may have been this one below, in either case, is useful info: http://blogs.atlassian.com/2009/10/automated_performance_testing_using_jmeter_and_maven/ On Tue, Oct 2, 2012 at 12:37 PM, rakesh

Re: User defined variables not following scope? Variable name collision otherwise found.

2012-09-24 Thread David Luu
Thanks, that worked for me. On Mon, Sep 24, 2012 at 5:57 PM, sebb wrote: > On 25 September 2012 00:15, David Luu wrote: > > Hi, > > > > Just ran into this today. My test has 2 thread groups, which perform near > > identical functions with slight differences.

Can't use relative path reference from test script for file uploads in HTTP sampler?

2012-09-24 Thread David Luu
I've been using various components of JMeter test plan and notice that writing table listerner results to file (I think, didn't use too much) and reading CSV dataset config can use relative path references, and it will be relative to the location of test plan script being run. But for file uploads

Does JMeter have access to test script filepath?

2012-09-24 Thread David Luu
Say you load and run JMeter test script. Does JMeter have a variable that references the test script's filepath? Asking because it would be useful to use within the test script itself w/o having to specify absolute file paths or having to pass in root file path at runtime via JMeter command line p

Re: What is best approach to design this kind of test?

2012-08-21 Thread David Luu
t; to use it , not sure what the current status is) > Option 3 > http://theworkaholic.blogspot.com/2010/11/jmeter-and-ajax-part-iii.html(and > if you need session information then there is stuff needed to be added > here) > > regards > deepak > > > > On Mon, Aug 20, 2012 at 5:33 PM, David Luu

HTTP POST to a redirected URL handled properly?

2012-08-10 Thread David Luu
Hi, This is first time I've come across this topic. By the way, I'm testing APIs that are under development so things might change, will follow up on them later but assuming correct server setup: I make POST to a URL and it returned 302 moved temporarily with new URL. The redirect is basically ch

Re: Testing flex protocol

2012-06-28 Thread David Luu
If it's not known/documented what the protocol used is, one can sniff the network traffic with a tool like Wireshark to determine the protocol (unless it's proprietary one not defined by Wireshark, which then just makes it TCP/IP or UDP packets). Are you talking about Flex client app to Flex/Flash

Re: Tool?

2012-05-16 Thread David Luu
For Windows, if you want good analysis and parsing of server performance logs, take a look at http://pal.codeplex.com/ you may still need to manually set up the perfmon logging yourself but this tool helps in analysis portion. On Wed, May 16, 2012 at 4:33 AM, Mark Collin wrote: > Nope, it's for

Re: Web-Interface to create Test-Plans

2012-05-15 Thread David Luu
7;re portable apps for the most part. On Tue, May 15, 2012 at 4:12 PM, sebb wrote: > On 15 May 2012 23:06, David Luu wrote: > > There is one case where web interface to create test plan is useful: > > > > Avoid need to download and run JMeter on Windows for the GUI mode to

Re: Web-Interface to create Test-Plans

2012-05-15 Thread David Luu
There is one case where web interface to create test plan is useful: Avoid need to download and run JMeter on Windows for the GUI mode to create test plan. Assume you are in non-MS/Windows shop, or you are like me and your computer has problems with Java (and hence can't load JMeter GUI in Windows

Re: SIP Performance testing using JMETER

2012-04-03 Thread David Luu
If you search for JMeter SIP, you'll find several posts here there made by the same author who wanted to develop a SIP extension for JMeter. But we haven't heard any updates since. Frankly, you'll have to build your own, or use whatever raw TCP/IP options JMeter has and parse/manipulate data from

Re: automatic correlation for jmeter

2012-03-02 Thread David Luu
Can you elaborate? What do you mean by automatic correlation utility, correlating what from JMeter to what? On Fri, Mar 2, 2012 at 8:08 AM, sginsbourg wrote: > Hi, > > Has anyone started creating an automatic correlation utility for jmeter and > would like to share some thoughts and code ? > > t

Re: Flash stops while Jmeter is recording

2012-02-27 Thread David Luu
You might not be able to do it effectively in JMeter. I answered a similar question a while back at a different forum. http://www.sqaforums.com/printthread.php?Cat=0&Board=UBB54&main=685893&type=thread Here's a rehash so you don't have to click on link: The following tips for Fiddler might also

Re: JMeter broke on my machine?

2012-02-13 Thread David Luu
window type set or echo %CLASSPATH% in windows) > > regards > deepak > > On Mon, Feb 13, 2012 at 10:17 AM, David Luu wrote: > > > Thanks for suggestion Flavio. I actually downloaded the latest v2.6 and > it > > too had same problem. Ran same 2.6 package on another m

Re: JMeter broke on my machine?

2012-02-13 Thread David Luu
> Try to get a newer 2.5.x jmeter version or download logkit jar directly. > > Hope it helps you. > Flávio Cysne > > 2012/2/10 David Luu > > > Hi, > > > > Was wondering if anybody might have ideas why JMeter broke on my machine. > > Was working fine las

JMeter broke on my machine?

2012-02-10 Thread David Luu
Hi, Was wondering if anybody might have ideas why JMeter broke on my machine. Was working fine last time I used it. I don't recall any major changes to Java on my machine. I only recently installed JDK and was playing with Beanshell (outside of JMeter) recently, don't think either should break JMe

Re: Recording Test Plan with Http Proxy server for regression tests

2011-11-28 Thread David Luu
So your problem is that you're afraid you might get too much data for JMeter to record as test plan if it doesn't periodically flush out past recordings? If there's no optimal solution for you in regards to JMeter (from input of others on this list), I can offer the following advice, which do requ

Re: How can I delete some of the samples from csv file and then generate report

2011-11-23 Thread David Luu
>> When I delete some records and use the file in Aggregate Graph listener >> only one sample is displayed to me and not all the samples > In that case the deletion must have been faulty. Also to note, one should also never delete or edit raw CSV data file, generated by a tool that you intend to

Re: Duplicate Cookie Header in Requests

2011-11-13 Thread David Luu
You recorded new test, and on Linux. Was original test also recorded via JMeter HTTP Proxy server and the recording controller? If yes, what browser was used to do the recording as well? Just wondering if the issue is kind of related to this article post: http://blog.netnerds.net/2006/04/asp-sust

Re: how to pick data from csv data into for loop http request

2011-11-05 Thread David Luu
You need to clarify your test. So I assume the single request in the middle reads from CSV file, no need to repeat/loop this single request where it is. But on next iteration or loop of the thread group (i.e. the test), you want to read the next CSV row? If this is the case, you can use the CSVRead

Re: Using Xpath

2011-11-05 Thread David Luu
What does your XPath query look like? And have you tested the response XML against your XPath externally like via a XPath query/test tool? On Sat, Nov 5, 2011 at 2:52 AM, jtester wrote: > Hi, > > I have the following response, i need to extract and parent > . When i use xpath --> response/trans

Re: How best to track start & end times during a test?

2011-11-03 Thread David Luu
Thanks for all the feedback. The debug sampler and JMeter function methods I can look into. I am using JMeter in GUI mode, so probably can't specify log file at runtime (don't want to parse the JMeter.log file either). On Thu, Nov 3, 2011 at 1:54 AM, Nermin CALUK wrote: > See if something like t

How best to track start & end times during a test?

2011-11-02 Thread David Luu
Was wondering how best to track/log start & end times for a load test within JMeter, in case one doesn't adamantly (and manually) note down the times. Still important even when you have a fixed test duration as you need to know what times the test ran to correlate logs. I notice that JMeter's tabu