Re: Iteration Number in JSR223 Groovy string

2024-04-03 Thread Tong Sun
oovy code fresh each time it is > hit. Have a play about with it. I used vars.getObject() to return the > variable as its actual type because vars.get() in groovy always returns it > as a string. > > -Original Message- > From: Tong Sun > Sent: Tuesday, April 2, 2024 6:34 PM >

Re: Iteration Number in JSR223 Groovy string

2024-04-02 Thread Tong Sun
On Tue, Apr 2, 2024 at 1:51 PM Dmitri T wrote: > I have bad news for you, given you're not capable of understanding what > does "caching would only cache first replacement." phrase means even > with the help of online translation tools and LLM you won't last long in > IT so you should consider

Re: Iteration Number in JSR223 Groovy string

2024-04-02 Thread Tong Sun
built-in JMeter variables and should behave the same way, right? On Tue, Apr 2, 2024 at 1:09 PM Dmitri T wrote: > Tong Sun wrote: > > JMeter has a built-in variable ${__jm__Thread Group__idx} to retrieve the > > current iteration, and I want to replace the `Thread Group` > > usin

Iteration Number in JSR223 Groovy string

2024-04-02 Thread Tong Sun
JMeter has a built-in variable ${__jm__Thread Group__idx} to retrieve the current iteration, and I want to replace the `Thread Group` using ${__threadGroupName}. So this comes natural to me: "Iteration Number is ${__V(__jm__${__threadGroupName}__idx)}" But when I try it, I always get "0".

Re: jmeter-5.6.3 and response body viewing

2024-02-26 Thread Tong Sun
Yeah, our company is using a rather old jmeter-5.4.3. Thanks for the quick fix. On Mon, Feb 26, 2024 at 11:31 AM Dmitri T wrote: > Tong Sun wrote: > > Hi, > > > > I tried to upgrade to jmeter-5.6.3 but found that its response body is > > showing in a single

jmeter-5.6.3 and response body viewing

2024-02-26 Thread Tong Sun
Hi, I tried to upgrade to jmeter-5.6.3 but found that its response body is showing in a single line, ie, no automatic word wrapping any more. This is very inconvenient for us as all our normal return data are huge when returned correctly while being short when there's something wrong. Seeing

Will JMeter load its plugins/libs repeatedly

2024-02-01 Thread Tong Sun
Will JMeter load its plugins/libs only at start up, thus having no impact during the test, or plugins/libs might somehow need to be loaded again (and again) during the test? Thanks

Re: JMeter timer scope strange behavior

2023-12-07 Thread Tong Sun
e beginning or end, is that right? If so, then what's causing > the significantly slowness with the no-timer block? > > [image: Inline image] > > On Thursday, December 7, 2023 at 10:58:40 AM EST, Tong Sun < > suntong...@gmail.com> wrote: > > > &

Re: JMeter timer scope strange behavior

2023-12-07 Thread Tong Sun
On Thu, Dec 7, 2023 at 10:50 AM Jun Zhuang wrote: > My apologies, my previous email was a mess, re-sending. > > - > > I am seeing unexpected behavior with the timer scoping. I am not using any > timer for requests in the 1st half of my test plan (DB operations only) and > only

Re: How to run specific calls at an interval of every 5 minutes

2023-04-24 Thread Tong Sun
On Mon, Apr 24, 2023 at 9:14 AM Sunil Malgaya wrote: > > JMeter experts, > > > > I have a need where I need to run a login call at the interval of 5 minutes > only (unlike every virtual user who keeps running them continuously). This > is how my test plan looks: > > > > S1_Simple controller_LOGIN

Refer to JMeter script path

2022-10-05 Thread Tong Sun
Hi, According to JMeter doc: JMeter also supports paths relative to the directory containing the current > test plan (JMX file). If the path name begins with "~/" (or whatever is > in the jmeter.save.saveservice.base_prefix JMeter property), then the > path is assumed to be relative to the JMX

Can UDV be thread specific

2022-09-06 Thread Tong Sun
Hi, I put 2 UDVs *inside *2 threads, but when I execute, I found my 1st thread is taking the 2nd UDV's value. Can UDV be thread specific, or is it always global?

JMeter If Controller, "Not" operator

2022-09-05 Thread Tong Sun
Hi, Does the JMeter If Controller has a "Not" operator? https://jmeter.apache.org/usermanual/component_reference.html#If_Controller I.e. can I use !${JMeterThread.last_sample_ok} ?

include controller: name by variable possible?

2022-09-05 Thread Tong Sun
Hi, Is it possible to use variables as the choice of include controller? I.e., what jmeter script to include is based on the content of the variable. Seems not possible, right?

Re: How to use __evalVar

2022-09-05 Thread Tong Sun
ot;query" variable > > > Suggested code change: > > > column="name" > table="customers" > query="select ${column}from ${table}" > log.info("${query}") > > > More information on Groovy scripting in JMeter - Apache Gro

How to use __evalVar

2022-09-04 Thread Tong Sun
Hi, >From https://jmeter.apache.org/usermanual/functions.html#__evalVar __evalVar > > The evalVar function returns the result of evaluating an expression stored > in a variable. > > This allows one to read a string from a file, and process any variable > references in it. For example, if the

Re: Jmeter version 5.5 - OS Process Sampler - Linux Redirection

2022-08-21 Thread Tong Sun
The redirection ">" sign is a shell feature. So wrap the whole thing in as a shell command, like: bash -c 'printf text3 > filename4' On Sun, Aug 21, 2022 at 4:09 AM Shay Ginsbourg wrote: > Hi, > > Using the OS Process Sampler on Linux, the redirection ">" sign keeps > failing. > > For

Re: Any ways to change the request response time?

2022-08-12 Thread Tong Sun
a Classes You Should Be Using with Groovy > <https://www.blazemeter.com/blog/jmeter-java-classes> article for more > information on this and other JMeter API shorthands available for the > JSR223 Test Elements > > > On 8/5/2022 3:35 PM, Tong Sun wrote: > > Hi,

Re: Any ways to change the request response time?

2022-08-05 Thread Tong Sun
with Groovy > <https://www.blazemeter.com/blog/jmeter-java-classes> article for more > information on this and other JMeter API shorthands available for the > JSR223 Test Elements > > > On 8/5/2022 3:35 PM, Tong Sun wrote: > > Hi, > > > > Is it possible to change

Any ways to change the request response time?

2022-08-05 Thread Tong Sun
Hi, Is it possible to change the request response time (via jsr223)? I need to fetch one important number, and instead of trying to create a way to report it somehow, I'm thinking the easiest way to report and track it is to set the fetched number as the request's response time. thanks

Re: jMeter script does not respond

2022-07-28 Thread Tong Sun
Hi Dmitri, By "adding to the HTTP sampler label", do you mean its "Name"? [image: image.png] Else, how to add to the HTTP sampler label? Thanks On Thu, Jul 28, 2022 at 11:13 AM Dmitri T wrote: > 1. Which thread - add *${__threadNum}* >

how to change the user defined variable?

2022-07-24 Thread Tong Sun
Hi, How do you change the user defined variable? The same question has been asked before, like under https://guide.blazemeter.com/hc/en-us/articles/207421395-Using-User-Defined-Variables, but I found no good answers. Unlike placing them under Thread Group or Sampler, I need to - define UDV

jmeter influxdb backend listener and querying

2022-07-19 Thread Tong Sun
So I added the standard jmeter influxdb backend listener, with default setting of percentiles: '90;95;99' and I can query the influxdb backend DB using: SELECT mean("pct90.0") FROM "$measurement_name" The question is, how to query its *mean *values? I tried the following but failed: SELECT

Re: Is this a bug? Cookies are in the Request Body...

2022-07-16 Thread Tong Sun
I'm so curious that I gave it a try myself, but I don't see the reported problem. Everything looks fine to me. One thing though, I put the Cookie Manager within Thread Group, not outside of it and under the Test Plan. If trying that still won't work for you, I'm afraid that you need to post your

Re: JMeter metrics lost in InfluxDB

2022-07-16 Thread Tong Sun
On Sat, Jul 16, 2022 at 7:20 AM Felix Schumacher wrote: > Am 16.07.22 um 00:43 schrieb Tong Sun: > > Hi, > > I'm sending my JMeter test results to InfluxDB, which is in a container in > an Azure VM (in the cloud). > > During the test I observed only 5 connection ti

Re: InfluxDB in docker container and its access URL

2022-07-15 Thread Tong Sun
On Fri, Jul 15, 2022 at 10:22 AM Tong Sun wrote: > >> . . . I had problems trying to connect from jmeter to InfluxDB using >> https://github.com/testsmith-io/jmeter-influxdb-grafana-docker as-is. >> >> > Wait, here > > https://github.com/testsmith-io

Re: InfluxDB in docker container and its access URL

2022-07-15 Thread Tong Sun
On Fri, Jul 15, 2022 at 9:54 AM Tong Sun wrote: > Hi Dmitri, > > Found your answer at > > https://stackoverflow.com/questions/72012407/cannot-see-jmeter-measurement-filter-in-influxdb > > which states: > > If you're running docker container*s* then I strongly doubt y

InfluxDB in docker container and its access URL

2022-07-15 Thread Tong Sun
Hi Dmitri, Found your answer at https://stackoverflow.com/questions/72012407/cannot-see-jmeter-measurement-filter-in-influxdb which states: If you're running docker container*s* then I strongly doubt your InfluxDB > URL of http://localhost:8086 is correct, you will have to use the > container

Re: Repeatedly trying to load included modules

2022-07-13 Thread Tong Sun
r case, the timing is not my focus at the moment. > Felix > Am 11.07.22 um 22:56 schrieb Tong Sun: > > Hi, > > Please take a look at my logs:https://www.diffchecker.com/7mROaakN > > Same script, one is all-in-one, the other (on the right) uses the include > controller

Repeatedly trying to load included modules

2022-07-11 Thread Tong Sun
Hi, Please take a look at my logs: https://www.diffchecker.com/7mROaakN Same script, one is all-in-one, the other (on the right) uses the include controller, which apparently repeatedly trying to load included modules, as the following two lines have been repeated 5 times: INFO

How to save test fragment properly

2022-07-07 Thread Tong Sun
Hi, On Sun, Apr 11, 2021 at 4:27 PM Tong Sun wrote: > On Tue, Nov 24, 2020 at 5:03 PM Tong Sun wrote: > > > > This is my first post here, and I don't know the policy on attaching > > files. So I put my file at > > > > https://dpaste.com/F3K6Y7ZV2 > > > &

JMeter Modularisation Strategy

2022-07-06 Thread Tong Sun
Hi, How do you modularize your JMeter? I'm thinking that the Include Controller is better than the Module Controller. However, for using the Include Controller, it bears the problem of how do you include other files? I'm thinking that relative paths are better than absolute paths, as it'll be

Labeling with sample_variables

2022-07-06 Thread Tong Sun
Hi, In https://github.com/johrstrom/jmeter-prometheus-plugin/issues/3, it says Jmeter allows for sample_variables to be populated and used in the > SimpleWriter listener class. We should also use this feature for labeling. This sounds like a very useful feature, but I cannot grasp how to make

Include controller overheads

2022-07-04 Thread Tong Sun
Hi, I'm learning to make use of the Include Controller, but found the following from https://martijndevrieze.net/2016/02/15/reusable-components-in-jmeter-part-2-include-controller/ the comment section. The test scripts then use include controllers to call these small external > .jmx files. > >

Re: Simulate Think Time

2022-07-01 Thread Tong Sun
t those requests executed without any delay, but only do Think Time after all those requests are done. How to achieve all of the above please? On Sun, Jun 5, 2022 at 12:15 PM Deepak Goel wrote: > *Uniform Random Timer* > > Deepak... > > On Sun, Jun 5, 2022 at 8:25 PM Tong Sun wro

JMeter standalone comments

2022-06-25 Thread Tong Sun
Hi, I know each item (control, request, etc) has a comment field. I view it as putting comments to the end of line in the source code. Is there any way to add a standalone comment, by (ab)using some *simplest *control? Kind of like putting comments on the line of its own in the source code.

JMeter Best Practices - Sharing variables between threads and thread groups

2022-06-14 Thread Tong Sun
Hi, In the JMeter Best Practices: https://jmeter.apache.org/usermanual/best-practices.html It says To "Share variables between threads and thread groups", there are various options: - Store the variable as a property - properties are global to the JMeter instance - Write variables to

Re: Help: Unable to connect to MS SQL server DB

2022-06-13 Thread Tong Sun
ich makes me wonder if the solution provided by MS is valid in this case > or where exactly is JM looking for the cacerts file? > On Monday, June 13, 2022, 10:32:37 AM EDT, Tong Sun > wrote: > > > Hi, just shooting in the dark, have you tried to replace the backslash "\&qu

Re: Help: Unable to connect to MS SQL server DB

2022-06-13 Thread Tong Sun
Hi, just shooting in the dark, have you tried to replace the backslash "\" with forward-slash "/" for your "C:\..." path? On Mon, Jun 13, 2022 at 10:20 AM Jun Zhuang wrote: > Hi my fellow JMeter users, > I am having trouble connecting to MS SQL server DB, I wonder if I can get > some pointers?

View Results Tree Behavior when running from command line

2022-06-10 Thread Tong Sun
Hi, Quick question, what would the View Results Tree behavior be when running from command line? I had an impression that it won't do anything even if it is enabled, is it so? thx!

Easy way to save the req/resp session

2022-06-07 Thread Tong Sun
Hi, Say I run my JMeter script using a single user for a single time, is there any easy way to save the whole session, both the requests and responses, including the headers, to some file for later inspection?

Re: Simulate Think Time

2022-06-06 Thread Tong Sun
ose Planit to > assure quality for their critical projects. See the reviews< > https://www.gartner.com/reviews/market/application-testing-services-worldwide/vendor/planit?months=12 > > > > > From: Tong Sun > Sent: Tuesday, June 7, 2022 10:06 AM

Re: Simulate Think Time

2022-06-06 Thread Tong Sun
; > > Deepak > > "The greatness of a nation can be judged by the way its animals are > treated > > - Mahatma Gandhi" > > > > +91 73500 12833 > > deic...@gmail.com > > > > Facebook:https://www.facebook.com/deicool > > LinkedIn:www

Re: Simulate Think Time

2022-06-06 Thread Tong Sun
hey choose Planit to > assure quality for their critical projects. See the reviews< > https://www.gartner.com/reviews/market/application-testing-services-worldwide/vendor/planit?months=12 > > > > > From: Tong Sun > Sent: Tuesday

Re: Simulate Think Time

2022-06-06 Thread Tong Sun
https://www.facebook.com/deicool > LinkedIn: www.linkedin.com/in/deicool > > "Plant a Tree, Go Green" > > Make In India : http://www.makeinindia.com/home > > > On Sun, Jun 5, 2022 at 8:25 PM Tong Sun wrote: > > > What's the best way to simulate Th

Simulate Think Time

2022-06-05 Thread Tong Sun
What's the best way to simulate Think Time? Say I need a random wait time between 2~8 seconds between each of my transactions, what's the best control to do that? Thanks!

Re: JMeter 5.4.3 unable to open jmx created in 5.2.1

2022-04-25 Thread Tong Sun
Interesting. How come it could happen? I mean, when a script I'm opening is using a plug-in that wasn't yet installed, JMeter would ask me whether to install it, then install all the missing components for me. It is not like that for you Steve? On Mon, Apr 25, 2022 at 8:15 AM Steve Kram wrote:

Why two jmeter executables for Linux?

2021-12-20 Thread Tong Sun
Hi, Why two pairs of jmeter executables for Linux? E.g., jmeter/bin/jmeter vs jmeter/bin/jmeter.sh or jmeter/bin/mirror-server vs jmeter/bin/mirror-server.sh I took a look at jmeter/bin/jmeter vs jmeter/bin/jmeter.sh and found them quite similar. What's the point of proving two almost

Re: Getting issue while sending the API request in 8443 port

2021-11-30 Thread Tong Sun
$ telnet elastic.moviuscorp.net 8443 Trying 169.57.62.3... Connected to elastic.moviuscorp.net. Escape character is '^]'. ^CConnection closed by foreign host. Note the IP that I get is different from yours. So maybe, just maybe, your POSTMAN is talking to an IP while your JMeter is talking to

Sharing the JDBC Connection between all the threads

2021-08-17 Thread Tong Sun
On Tue, Aug 17, 2021 at 5:06 AM Felix Schumacher < felix.schumac...@internetallee.de> wrote: > > Do you want to share the connections over all the threads? (This is not > the default in JMeter. Every thread/user has its own connection unless > configured otherwise) > Hi, Felix Can you

Re: Have JMeter Prepare SQL ONLY once and Execute Multiple times

2021-07-29 Thread Tong Sun
Hmm... - can the Prepared the SQL statement be saved once and used later? If not, - can the Prepared the SQL statement be saved once and used later outside JMeter? On Thu, Jul 29, 2021 at 11:38 AM Jeff Lutzow wrote: > Cannot seem to get JMeter to NOT prepare the statement every time. > > > >

Composite Graph for none-GUI mode

2021-07-27 Thread Tong Sun
On Tue, Jul 27, 2021 at 7:55 AM Philippe Mouawad wrote: > >- https://jmeter-plugins.org/wiki/CompositeGraph/ > > Interesting. Thanks! is such Composite Graph for GUI only mode? Any way to get such Graph even when using none-GUI mode? Thx!

Re: Showing JMeter cmd line parameters in HTML Dashboard Report

2021-06-26 Thread Tong Sun
+1, threads, ramp up time, loop are very important information for the documentation. On Sat, Jun 26, 2021 at 11:02 AM Prateek Dua wrote: > Hi Team, > > Need your help / suggestion if any on below problem statement > > Use case : Have to show JMeter parameters threads, ramp up time, loop ( >

Re: Comparison between navigation times registered by JMeter and other tools

2021-05-26 Thread Tong Sun
On Wed, May 26, 2021 at 3:37 PM Felix Schumacher wrote: > > Can you describe the test elements, that you are using? What is inside the > transaction that takes eight seconds? I think in such a situation, the best way forward is to test a (simple & reliable) public service using JMeter and HP

Re: Script wide validation

2021-05-26 Thread Tong Sun
On Wed, May 26, 2021 at 11:49 AM glin...@live.com wrote: > > Tong Sun wrote > > I know currently JMeter doesn't have script-wide validation > > I don't think this statement is correct, JMeter Assertions obey JMeter > Scoping Rules > <https://jmeter.apache.or

Script wide validation

2021-05-26 Thread Tong Sun
Hi, I know currently JMeter doesn't have script-wide validation, a feature available in other testing tools like MS VS, that a single script-wide validation rule can be used to check every request in the whole script. This is something I miss moving from MS VS to JMeter. Since all our returns

Re: This is a valid jmx file, but will turn empty when saved

2021-04-11 Thread Tong Sun
On Tue, Nov 24, 2020 at 5:03 PM Tong Sun wrote: > > Hi, > > This is my first post here, and I don't know the policy on attaching > files. So I put my file at > > https://dpaste.com/F3K6Y7ZV2 > > It's a valid jmx file (search.jmx), which can be included from e.g., >

Re: Starting Jmeter without the logo

2021-04-11 Thread Tong Sun
On Sun, Apr 11, 2021 at 4:49 AM Felix wrote: > > > Am 10.04.21 um 22:39 schrieb Tong Sun: > > On Sat, Apr 10, 2021 at 2:03 PM Felix Schumacher wrote: > > > >> https://bz.apache.org/bugzilla/show_bug.cgi?id=65232 > >> > >> A fix has been appl

Re: Starting Jmeter without the logo

2021-04-10 Thread Tong Sun
On Sat, Apr 10, 2021 at 2:03 PM Felix Schumacher wrote: > https://bz.apache.org/bugzilla/show_bug.cgi?id=65232 > > A fix has been applied to trunk. Are you able to test it and report, whether > it fixes your (first) problem? Thanks a lot for the quick response and fix. I've tried building

Re: Starting Jmeter without the logo

2021-04-10 Thread Tong Sun
On Sat, Apr 10, 2021 at 12:30 PM Felix Schumacher < felix.schumac...@internetallee.de> wrote: > > > Am 10.04.21 um 18:21 schrieb Tong Sun: > > On Sat, Apr 10, 2021 at 6:02 AM Felix Schumacher < > > felix.schumac...@internetallee.de> wrote: > >> > >&g

Re: Starting Jmeter without the logo

2021-04-10 Thread Tong Sun
On Sat, Apr 10, 2021 at 6:02 AM Felix Schumacher < felix.schumac...@internetallee.de> wrote: > > > Am 10.04.21 um 09:23 schrieb Adrian Sp: > > Hi, > > > > It's an open source project. Just check the code and see how it works > > under the hood if you feel comfortable with this. > > Apart from the

[OT] Associate JMeter with .jmx files under Mac

2021-03-15 Thread Tong Sun
Hi, In windows' term, associating JMeter with .jmx files means double-clicking .jmx files in file explorer will launch jmeter to open the file. I'd assume it's a quite common request under Mac as well. Has anybody managed to do that? thx

Re: [OT] Using JMeter source with Java 15 (openjdk)

2021-03-05 Thread Tong Sun
On Fri, Mar 5, 2021 at 2:39 PM Tong Sun wrote: > > On Fri, Mar 5, 2021 at 10:53 AM Vladimir Sitnikov > wrote: > > > > Hi, > > > > Have you tried ./gradlew runGui ? > > An alternative option is to use ./gradlew createDist which would copy all > >

[OT] Using JMeter source with Java 15 (openjdk)

2021-03-05 Thread Tong Sun
On Fri, Mar 5, 2021 at 10:53 AM Vladimir Sitnikov wrote: > > Hi, > > Have you tried ./gradlew runGui ? > An alternative option is to use ./gradlew createDist which would copy all > the dependencies, so you could launch JMeter with bin/jmeter. > > Please find the commands at >

Re: Building JMeter from source with Java 8

2021-03-05 Thread Tong Sun
On Fri, Mar 5, 2021 at 9:38 AM glin...@live.com wrote: > > I think these "autostyleApply -PmaxCheckMessageLines=50 -PmaxFilesToList=10 > -PminLinesPerFile=4" profiles are causing troubles, you should be able to > build JMeter like: > > > gradlew -x test build -q Thanks glinius, that actually

Re: Building JMeter from source with Java 8

2021-03-05 Thread Tong Sun
On Fri, Mar 5, 2021 at 9:03 AM Tong Sun wrote: > > Hi, > > I'm having trouble building JMeter from source and I have no idea why. > I'm using Java 8. > > $ groovy -v > Groovy Version: 3.0.3 JVM: 1.8.0_261 Vendor: Oracle Corporation OS: M

Building JMeter from source with Java 8

2021-03-05 Thread Tong Sun
Hi, I'm having trouble building JMeter from source and I have no idea why. I'm using Java 8. $ groovy -v Groovy Version: 3.0.3 JVM: 1.8.0_261 Vendor: Oracle Corporation OS: Mac OS X $ gradlew -v Gradle 6.7

Exiting the jsr223 sampler

2021-02-25 Thread Tong Sun
Hi, Quick & simple question, how to stop the jsr223 script from reaching the following processing code (B), return, exit, or ...? if (A) exit B I just want the jsr223 script not to process the following code, B, not to stop the whole thread execution, of which it's the only hits I've found

Re: How to handle Concurrent sessions for single user id in Jmeter

2021-02-22 Thread Tong Sun
On Mon, Feb 22, 2021 at 5:31 AM Harshal Kulkarni wrote: > > Hello Team, > > I am working on load testing of one application using Jmeter 5.1.1. > Unfortunately, client can not provide multiple test user IDs, so we have > only 3 test user IDs. I want to load test with 50 concurrent users load. >

Re: JTL file for PerfMon Metrics Collector for JMeterPluginsCMD

2021-02-04 Thread Tong Sun
On Thu, Feb 4, 2021 at 10:50 AM Tong Sun wrote: > > Hi, > > JMeterPluginsCMD supports PerfMon Metrics Collector for generating > graphs out of JTL files, as per the doc. > > But I don't know what its JTL file should be in order to get it working. Found it, https://groups.go

JTL file for PerfMon Metrics Collector for JMeterPluginsCMD

2021-02-04 Thread Tong Sun
Hi, JMeterPluginsCMD supports PerfMon Metrics Collector for generating graphs out of JTL files, as per the doc. But I don't know what its JTL file should be in order to get it working. Anyone can help please? - To unsubscribe,

Bug? JMeter is not using the default groovy

2021-02-02 Thread Tong Sun
Hi, I've already set the default groovy version, but it seems that JMeter insists something of its own: $ groovy --version Groovy Version: 2.4.12 JVM: 1.8.0_261 Vendor: Oracle Corporation OS: Mac OS X $ jmeter -f -n -t $jmxf.jmx Creating summariser CStarting

Re: Mark error in JSR223 steps

2020-12-31 Thread Tong Sun
Thanks Felix I've been banning my head on the wall for a few days. Thanks for helping & resolving the issue. Happy New Year! - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail:

Re: Mark error in JSR223 steps

2020-12-30 Thread Tong Sun
but that didn't work either -- itself generated another exception. So do I have to `new` a SampleResult before making use of the class? If so, how can JMeter know to use my own newed SampleResult as the result? On Wed, Dec 30, 2020 at 12:02 PM Tong Sun wrote: > > Thanks a lot Mari

Re: Mark error in JSR223 steps

2020-12-30 Thread Tong Sun
r" > } > > Regards, > Mariusz > > On Wed, 30 Dec 2020 at 16:40, Tong Sun wrote: > > > Hi, > > > > My JSR223 steps have problems, some even have exceptions, but viewing > > from View Result Tree, they are all green and correct. > > >

Mark error in JSR223 steps

2020-12-30 Thread Tong Sun
Hi, My JSR223 steps have problems, some even have exceptions, but viewing from View Result Tree, they are all green and correct. How to mark those JSR223 steps that have problems red and failed? I tried to throw an exception, but that killed the whole thread. thx

Re: How to print Java stack trace in JMeter

2020-12-23 Thread Tong Sun
On Wed, Dec 23, 2020 at 1:19 PM Felix Schumacher wrote: > > > Am 23.12.20 um 19:16 schrieb Tong Sun: > > Hi, > > > > Most people would have some Java code to support JMeter test scripts. > > How to print stack trace for the Java code when something went wr

How to print Java stack trace in JMeter

2020-12-23 Thread Tong Sun
Hi, Most people would have some Java code to support JMeter test scripts. How to print stack trace for the Java code when something went wrong? I tried: try { // some code } catch(Error e) { log.error("Error: $e") log.info("${org.codehaus.groovy.runtime.StackTraceUtils.sanitize(new

Re: Best approach to use groovy/grapes cache jar files

2020-12-23 Thread Tong Sun
e painful doing it this way, > I prefer building my supporting utils (java or groovy) in external IDE > project eg. IntelliJ (Gradle/Maven) and pack it as jar. You meant building one single fat jar to include them all, all those third-party jar files? > On Wed, 23 Dec 2020 at 17:55, T

Best approach to use groovy/grapes cache jar files

2020-12-23 Thread Tong Sun
Hi, - Most people would have some Java code to support JMeter test scripts. - Those Java code would most probably need to be built on third party libs - Those third party libs are downloaded and cached automatically by groovy/grapes in its cache. So the question is what is the best approach to

Re: Issue with Recording Scripts in JMeter

2020-12-18 Thread Tong Sun
On Fri, Dec 18, 2020 at 8:18 AM Nandini Sathanur wrote: > > Thanks Elke. > > I have tried launching JMeter through cmd with the same command as an > administrator. > When I do that, my application URL does not launch at all. I see - *The > page cannot be displayed *error*.* What's the "details"

Re: Prepare dynamic csv test data in setup thread

2020-12-16 Thread Tong Sun
On Wed, Dec 16, 2020 at 7:37 AM glin...@live.com wrote: > > Everything is possible, just make sure to: > > 1. Use setUp Thread Group > > which is executed *before* other thread groups > 2. If you want

Thread Groups based initialization for each thread group

2020-12-15 Thread Tong Sun
Hi, I need to do some initialization for each thread group before they start, by calling several groovy functions. I know there is a setup thread group, which is run once before all thread groups, but how can I do setup once for each thread group? Say for the following groovy script,

Prepare dynamic csv test data in setup thread

2020-12-15 Thread Tong Sun
Hi, I want to - prepare dynamic csv test data in setup thread - and use the generated .csv data for all other thread groups - ideally, the name of the .csv is better be changed in the setup thread as well. How much of the above steps are possible? Point 2 & 3 seems to be impossible to me at

Using Test Plan variables to define another Test Plan variable

2020-12-07 Thread Tong Sun
I've defined the following variables on the Test Plan: HOST www.example.com URL${__P(URL, __V(https://${HOST}/api/path))} I.e., I want to define a Test Plan variable from the previously defined existing Test Plan variable(s), if URL is not defined/overwritten on cli.

Re: How to set system property within JMeter

2020-12-02 Thread Tong Sun
Yes, thanks a lot!

Re: How to set system property within JMeter

2020-12-01 Thread Tong Sun
On Tue, Dec 1, 2020 at 11:21 AM glin...@live.com wrote: > > You can set a JMeter Property via __setProperty() function > like: > > > > ${__setProperty(foo,bar,)} > > will create a JMeter property "foo" with the value of "bar"

How to set system property within JMeter

2020-12-01 Thread Tong Sun
Hi, I need to set a system property programmatically *within* JMeter. How can I do that? in https://www.blazemeter.com/blog/apache-jmeter-properties-customization the Option 3 is to use JMeter __P, but It seems that I can only read system property from __P(), but cannot set it, correct? thx

This is a valid jmx file, but will turn empty when saved

2020-11-24 Thread Tong Sun
Hi, This is my first post here, and I don't know the policy on attaching files. So I put my file at https://dpaste.com/F3K6Y7ZV2 It's a valid jmx file (search.jmx), which can be included from e.g., https://dpaste.com/DB5TEMNSW Everything is OK, except that when open the search.jmx file and