Re: How can I generate a dynamic work load by jMeter?

2021-03-24 Thread Jmeter Tea
Hello,
What do you mean by "killing processes of jMeter"? can you give more
details?
Currently JMeter doesn't support reducing threads, maybe only using
Beanshell server
https://stackoverflow.com/questions/66469483/jmeter-reduce-threads-on-runtime

On Wed, Mar 24, 2021 at 9:31 AM Jerry  wrote:

> Dear all:
> Thank you all for reading this mail.
> I want to create a dynamic server load using jMeter, but it seems like it
> can only set a fixed number of threads in a test plan. I wrote a program to
> control the jMeter which can change the total number of threads among the
> processes by creating new processes or killing processes of jMeter. But I
> found that the jMeter process had a long time between its process started
> and began to send requests to the server, which makes it difficult to
> create a real time dynamic server load.
> Besides, after I found that the jMeter can work in server mode, I changed
> my mind and tried to control jMeter that works in server mode. I want to
> know if there are any sdks that I can use to send test plans to a jMeter
> Server and control it to send requests with a dynamic number of threads (or
> static number is also work).
> Thanks a lot for your replies and advice.
>
> Jerry
>


Re: Setting failure tolerance on maven jmeter plugin goal

2021-03-23 Thread Jmeter Tea
Hello,

You can try to use JMeter AutoStop plugin
https://jmeter-plugins.org/wiki/AutoStop/
"AutoStop used when you want to stop test on some runtime criteria.
Currently 3 criteria available: average response time, average latency and
error rate"
You can add JMeter plugin to maven
https://github.com/jmeter-maven-plugin/jmeter-maven-plugin/wiki/Adding-Excluding-libraries-to-from-the-classpath
"You can add any additional Java libraries to JMeter's lib/ext directory by
using the  configuration element"
You can ignore stopping at first failure by default
https://github.com/jmeter-maven-plugin/jmeter-maven-plugin/wiki/Test-Results-File-Format#6
" If you don't want the maven execution to stop you can tell the plugin to
ignore failures using the  configuration"

On Tue, Mar 23, 2021 at 2:15 PM Désilets, Alain <
alain.desil...@nrc-cnrc.gc.ca> wrote:

>
>
> On 2021-03-23, 3:22 AM, "glin...@live.com"  wrote:
>
> ==
>  As of current  JMeter Maven Plugin version 3.3.0
> <
> https://mvnrepository.com/artifact/com.lazerycode.jmeter/jmeter-maven-plugin/3.3.0
> >
> it is not possible, you can try raising an enhancement request via
> Issues
> 
> section
> =
>
> Thanks for the answer. I will create an enhancement request.
>
> Alain
>
>
>
>


Re: Exiting the jsr223 sampler

2021-02-25 Thread Jmeter Tea
Hello,

You can throw Exception, as:
if(A) {
throw new Exception("a");
}
But usually you just put B in else,as:
 if (A) {

} else {
B
}
or one if nothing to do when A == true:
if (!A) {
   B
}


On Thu, Feb 25, 2021 at 4:21 PM Tong Sun  wrote:

> 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 from the internet so far.
>
> thanks
>
> -
> To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
> For additional commands, e-mail: user-h...@jmeter.apache.org
>
>


Re: JSON path Tester usability issue

2021-02-07 Thread Jmeter Tea
Hi Shay,

To create JMeter bug use
https://bz.apache.org/bugzilla/enter_bug.cgi?product=JMeter

FYI

On Sun, Feb 7, 2021 at 2:18 PM Shay Ginsbourg  wrote:

> What's the link to the correct Bugzilla ?
>
> thanks,
> Shay
>
>
>
>
>
> I think it would be best to open an ehancement issue on bugzilla. Mails
> with such ideas tend to get lost :)
>
> And if anyone would like to submit a patch to implement this, even better.
>
> Felix
>
> On Sat, Feb 6, 2021 at 12:32 PM Felix Schumacher <
> felix.schumac...@internetallee.de> wrote:
>
> > Am 31.01.21 um 11:56 schrieb Shay Ginsbourg:
> > > Hi,
> > >
> > >
> > >
> > > First of all, I wish the thank all the people that contributed to the
> > > release of 5.4.1.
> >
> > +1
> >
> >
> > >
> > >
> > >
> > > This is the best-ever release of Jmeter ! Well done !
> > >
> > >
> > >
> > > I’m currently installing it on the performance labs everywhere.
> > >
> > >
> > >
> > > One issue still remains regarding the JSON path Tester –
> > >
> > >
> > >
> > > While switching from TEXT to JSON path Tester, both the Sampler result
> > tab
> > > as well as the Request tab disappear.
> > >
> > >
> > >
> > > It would be much more usable having the JSON path Tester displayed
> inside
> > > the Response data tab, instead of hiding an above-mentioned couple of
> > tabs.
> >
> > I think it would be best to open an ehancement issue on bugzilla. Mails
> > with such ideas tend to get lost :)
> >
> > And if anyone would like to submit a patch to implement this, even
> better.
> >
> > Felix
> >
> > >
> > >
> > >
> > > Thank you very much,
> > >
> > >
> > >
> > > Shay
> > >
> > >
> > >
> > >
> >
> > -
> > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
> > For additional commands, e-mail: user-h...@jmeter.apache.org
> >
> >
>
> --
>
>
> Sincerely,
>
>
>
> *Shay Ginsbourg*
>
> *Performance, Automation, and Load Testing Expert. *
>
> *​Regulatory Affairs Consultant​ for Medical Software​.*
>
> *(Since 2008)*
>
>
>
> *Ginsbourg.co.il*
> 
>
>
> Formerly QA Manager of LoadRunner at Mercury Interactive
>
>
>
> M.Sc. cum laude in Bio-Medical Engineering
>
> M.Sc. in Mechanical Engineering
>
>
> Mobile:  +972(0)54-6690915
> Email: sginsbo...@gmail.com
>
> Visit my personal page on LinkedIn at:
> http://www.linkedin.com/in/shayginsbourg
>


Re: Darklaf Intellij JMeter 5.4 exception

2020-12-07 Thread Jmeter Tea
It seems ok,
I notice that on High Contrast Dark I can't see the (unmarked) log
[image: image.png]
It's written black letters on black background

FYI

On Mon, Dec 7, 2020 at 2:58 PM Philippe Mouawad 
wrote:

> Hello,
> Can you check the next build:
> https://ci-builds.apache.org/job/JMeter/job/JMeter-trunk/
>
> And if the issue is ok , confirm.
> If the issue with CellHintPopupListener persists, please create a new
> ticket or paste the stacktrace here.
>
> Thanks
>
> On Mon, Dec 7, 2020 at 1:56 PM Jmeter Tea  wrote:
>
> > Thanks, that's great, notice there's also NPE  on
> > CellHintPopupListener.java:208
> >
> > On Mon, Dec 7, 2020 at 2:52 PM Philippe Mouawad <
> > philippe.moua...@gmail.com>
> > wrote:
> >
> > > Hello,
> > > I created this ticket:
> > >
> > >- https://bz.apache.org/bugzilla/show_bug.cgi?id=64961
> > >
> > >
> > > Regards
> > >
> > >
> > > On Mon, Dec 7, 2020 at 1:10 PM Philippe Mouawad <
> > > philippe.moua...@gmail.com>
> > > wrote:
> > >
> > > > Hello,
> > > > Could you create a ticket and attach a simple Test case ?
> > > >
> > > > Thanks
> > > >
> > > > On Mon, Dec 7, 2020 at 12:23 PM Jmeter Tea 
> > wrote:
> > > >
> > > >> My test running on Java 8, Windows 7,
> > > >> I ran a test using UI (simple API requests) for an hour and got 300
> > > >> similar
> > > >> exceptions.
> > > >> I have also exceptions when switching between Look&Feels as:
> > > >> 2020-12-07 13:12:26,344 ERROR o.a.j.g.a.ActionRouter: Error
> processing
> > > >> org.apache.jmeter.gui.action.LookAndFeelCommand@11015ca0
> > > >> java.lang.NullPointerException: null
> > > >> at
> > > >>
> > > >>
> > >
> >
> javax.swing.plaf.basic.BasicEditorPaneUI.cleanDisplayProperties(BasicEditorPaneUI.java:275)
> > > >> ~[?:?]
> > > >> at
> > > >>
> > > >>
> > >
> >
> javax.swing.plaf.basic.BasicEditorPaneUI.uninstallUI(BasicEditorPaneUI.java:101)
> > > >> ~[?:?]
> > > >> at
> > > >>
> > > >>
> > >
> >
> com.github.weisj.darklaf.ui.text.dummy.DummyTextPaneUI.uninstallUI(DummyTextPaneUI.java:60)
> > > >> ~[darklaf-core-2.4.10.jar:2.4.10]
> > > >> at
> > > >>
> > > >>
> > >
> >
> com.github.weisj.darklaf.ui.text.bridge.DarkEditorPaneUIBridge.cleanDisplayProperties(DarkEditorPaneUIBridge.java:91)
> > > >> ~[darklaf-core-2.4.10.jar:2.4.10]
> > > >> at
> > > >>
> > > >>
> > >
> >
> com.github.weisj.darklaf.ui.text.bridge.DarkEditorPaneUIBridge.uninstallUI(DarkEditorPaneUIBridge.java:73)
> > > >> ~[darklaf-core-2.4.10.jar:2.4.10]
> > > >> at
> > javax.swing.JComponent.uninstallUIAndProperties(JComponent.java:700)
> > > >> ~[?:?]
> > > >> at javax.swing.JComponent.setUI(JComponent.java:675) ~[?:?]
> > > >> at javax.swing.text.JTextComponent.setUI(JTextComponent.java:342)
> > ~[?:?]
> > > >> at javax.swing.text.JTextComponent.updateUI(JTextComponent.java:352)
> > > >> ~[?:?]
> > > >> at
> > > >>
> > > >>
> > >
> >
> org.apache.jorphan.gui.DynamicStyle.collectComponents(DynamicStyle.java:197)
> > > >> ~[jorphan.jar:5.4]
> > > >> at
> > > >>
> > > >>
> > >
> >
> org.apache.jorphan.gui.DynamicStyle.collectComponents(DynamicStyle.java:217)
> > > >> ~[jorphan.jar:5.4]
> > > >> at
> > > >>
> > > >>
> > >
> >
> org.apache.jorphan.gui.DynamicStyle.collectComponents(DynamicStyle.java:217)
> > > >> ~[jorphan.jar:5.4]
> > > >> at
> > > >>
> > > >>
> > >
> >
> org.apache.jorphan.gui.DynamicStyle.collectComponents(DynamicStyle.java:217)
> > > >> ~[jorphan.jar:5.4]
> > > >> at
> > > >>
> > > >>
> > >
> >
> org.apache.jorphan.gui.DynamicStyle.collectComponents(DynamicStyle.java:217)
> > > >> ~[jorphan.jar:5.4]
> > > >> at
> > > >>
> > > >>
> > >
> >
> org.apache.jorphan.gui.DynamicSty

Re: Darklaf Intellij JMeter 5.4 exception

2020-12-07 Thread Jmeter Tea
Thanks, that's great, notice there's also NPE  on
CellHintPopupListener.java:208

On Mon, Dec 7, 2020 at 2:52 PM Philippe Mouawad 
wrote:

> Hello,
> I created this ticket:
>
>- https://bz.apache.org/bugzilla/show_bug.cgi?id=64961
>
>
> Regards
>
>
> On Mon, Dec 7, 2020 at 1:10 PM Philippe Mouawad <
> philippe.moua...@gmail.com>
> wrote:
>
> > Hello,
> > Could you create a ticket and attach a simple Test case ?
> >
> > Thanks
> >
> > On Mon, Dec 7, 2020 at 12:23 PM Jmeter Tea  wrote:
> >
> >> My test running on Java 8, Windows 7,
> >> I ran a test using UI (simple API requests) for an hour and got 300
> >> similar
> >> exceptions.
> >> I have also exceptions when switching between Look&Feels as:
> >> 2020-12-07 13:12:26,344 ERROR o.a.j.g.a.ActionRouter: Error processing
> >> org.apache.jmeter.gui.action.LookAndFeelCommand@11015ca0
> >> java.lang.NullPointerException: null
> >> at
> >>
> >>
> javax.swing.plaf.basic.BasicEditorPaneUI.cleanDisplayProperties(BasicEditorPaneUI.java:275)
> >> ~[?:?]
> >> at
> >>
> >>
> javax.swing.plaf.basic.BasicEditorPaneUI.uninstallUI(BasicEditorPaneUI.java:101)
> >> ~[?:?]
> >> at
> >>
> >>
> com.github.weisj.darklaf.ui.text.dummy.DummyTextPaneUI.uninstallUI(DummyTextPaneUI.java:60)
> >> ~[darklaf-core-2.4.10.jar:2.4.10]
> >> at
> >>
> >>
> com.github.weisj.darklaf.ui.text.bridge.DarkEditorPaneUIBridge.cleanDisplayProperties(DarkEditorPaneUIBridge.java:91)
> >> ~[darklaf-core-2.4.10.jar:2.4.10]
> >> at
> >>
> >>
> com.github.weisj.darklaf.ui.text.bridge.DarkEditorPaneUIBridge.uninstallUI(DarkEditorPaneUIBridge.java:73)
> >> ~[darklaf-core-2.4.10.jar:2.4.10]
> >> at javax.swing.JComponent.uninstallUIAndProperties(JComponent.java:700)
> >> ~[?:?]
> >> at javax.swing.JComponent.setUI(JComponent.java:675) ~[?:?]
> >> at javax.swing.text.JTextComponent.setUI(JTextComponent.java:342) ~[?:?]
> >> at javax.swing.text.JTextComponent.updateUI(JTextComponent.java:352)
> >> ~[?:?]
> >> at
> >>
> >>
> org.apache.jorphan.gui.DynamicStyle.collectComponents(DynamicStyle.java:197)
> >> ~[jorphan.jar:5.4]
> >> at
> >>
> >>
> org.apache.jorphan.gui.DynamicStyle.collectComponents(DynamicStyle.java:217)
> >> ~[jorphan.jar:5.4]
> >> at
> >>
> >>
> org.apache.jorphan.gui.DynamicStyle.collectComponents(DynamicStyle.java:217)
> >> ~[jorphan.jar:5.4]
> >> at
> >>
> >>
> org.apache.jorphan.gui.DynamicStyle.collectComponents(DynamicStyle.java:217)
> >> ~[jorphan.jar:5.4]
> >> at
> >>
> >>
> org.apache.jorphan.gui.DynamicStyle.collectComponents(DynamicStyle.java:217)
> >> ~[jorphan.jar:5.4]
> >> at
> >>
> >>
> org.apache.jorphan.gui.DynamicStyle.collectComponents(DynamicStyle.java:217)
> >> ~[jorphan.jar:5.4]
> >> at
> >>
> >>
> org.apache.jorphan.gui.DynamicStyle.collectComponents(DynamicStyle.java:217)
> >> ~[jorphan.jar:5.4]
> >> at
> >>
> >>
> org.apache.jorphan.gui.DynamicStyle.updateComponentTreeUI(DynamicStyle.java:159)
> >> ~[jorphan.jar:5.4]
> >> at org.apache.jorphan.gui.DynamicStyle.updateLaf(DynamicStyle.java:144)
> >> ~[jorphan.jar:5.4]
> >> at org.apache.jorphan.gui.JFactory.refreshUI(JFactory.java:68)
> >> ~[jorphan.jar:5.4]
> >>
> >> 2020-12-07 12:37:35,384 ERROR o.a.j.JMeter: Uncaught exception in thread
> >> Thread[AWT-EventQueue-0,6,main]
> >> java.lang.NullPointerException: null
> >> at
> >>
> >>
> com.github.weisj.darklaf.ui.cell.hint.CellHintPopupListener.repaint(CellHintPopupListener.java:208)
> >> ~[darklaf-core-2.4.10.jar:2.4.10]
> >> at
> com.github.weisj.darklaf.ui.tree.DarkTreeUI.update(DarkTreeUI.java:408)
> >> ~[darklaf-core-2.4.10.jar:2.4.10]
> >> at javax.swing.JComponent.paintComponent(JComponent.java:797) ~[?:?]
> >> at javax.swing.JComponent.paint(JComponent.java:1074) ~[?:?]
> >> at javax.swing.JComponent.paintChildren(JComponent.java:907) ~[?:?]
> >> at javax.swing.JComponent.paint(JComponent.java:1083) ~[?:?]
> >> at javax.swing.JViewport.paint(JViewport.java:737) ~[?:?]
> >> at javax.swing.JComponent.paintChildren(JComponent.java:907) ~[?:?]
> >> at javax.swing.JComponent.paint(JComponent.java:1083) ~[?:?]
> >> at javax.swing

Re: Darklaf Intellij JMeter 5.4 exception

2020-12-07 Thread Jmeter Tea
]
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
[?:?]
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
[?:?]
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
[?:?]
at java.awt.EventDispatchThread.run(EventDispatchThread.java:90) [?:?]


On Mon, Dec 7, 2020 at 1:13 PM Felix Schumacher <
felix.schumac...@internetallee.de> wrote:

> Can you give more details? Do you always get such an exception? Which Java
> version? OS? What where the steps, that led to this?
>
> Thanks
>  Felix
>
> Am 7. Dezember 2020 11:43:25 MEZ schrieb Jmeter Tea :
> >Hi
> >
> >I download JMeter 5.4 ,
> >I changed to Darklaf Intellij and while running test,
> >I'm getting exceptions:
> >2020-12-07 12:37:32,619 ERROR o.a.j.JMeter: Uncaught exception in
> >thread
> >Thread[AWT-EventQueue-0,6,main]
> >java.lang.NullPointerException: null
> >at
>
> >com.github.weisj.darklaf.ui.cell.hint.CellHintPopupListener.repaint(CellHintPopupListener.java:208)
> >~[darklaf-core-2.4.10.jar:2.4.10]
> >at
> >com.github.weisj.darklaf.ui.tree.DarkTreeUI.update(DarkTreeUI.java:408)
> >~[darklaf-core-2.4.10.jar:2.4.10]
> >at javax.swing.JComponent.paintComponent(JComponent.java:797) ~[?:?]
> >at javax.swing.JComponent.paint(JComponent.java:1074) ~[?:?]
> >at javax.swing.JComponent.paintChildren(JComponent.java:907) ~[?:?]
> >at javax.swing.JComponent.paint(JComponent.java:1083) ~[?:?]
> >at javax.swing.JViewport.paint(JViewport.java:737) ~[?:?]
> >at javax.swing.JComponent.paintChildren(JComponent.java:907) ~[?:?]
> >at javax.swing.JComponent.paint(JComponent.java:1083) ~[?:?]
> >at javax.swing.JComponent.paintToOffscreen(JComponent.java:5255) ~[?:?]
> >at
>
> >javax.swing.RepaintManager$PaintManager.paintDoubleBufferedImpl(RepaintManager.java:1643)
> >~[?:?]
> >at
>
> >javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(RepaintManager.java:1618)
> >~[?:?]
> >at
> >javax.swing.RepaintManager$PaintManager.paint(RepaintManager.java:1556)
> >~[?:?]
> >at javax.swing.RepaintManager.paint(RepaintManager.java:1323) ~[?:?]
> >at javax.swing.JComponent._paintImmediately(JComponent.java:5203)
> >~[?:?]
> >at javax.swing.JComponent.paintImmediately(JComponent.java:5013) ~[?:?]
> >at javax.swing.RepaintManager$4.run(RepaintManager.java:865) ~[?:?]
> >at javax.swing.RepaintManager$4.run(RepaintManager.java:848) ~[?:?]
> >at java.security.AccessController.doPrivileged(Native Method) ~[?:?]
> >at
>
> >java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
> >~[?:?]
> >at
> >javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:848)
> >~[?:?]
> >at
> >javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:823)
> >~[?:?]
> >at
> >javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:772)
> >~[?:?]
> >at
>
> >javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1890)
> >~[?:?]
> >at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
> >~[?:?]
> >at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770) ~[?:?]
> >at java.awt.EventQueue$4.run(EventQueue.java:721) ~[?:?]
> >at java.awt.EventQueue$4.run(EventQueue.java:715) ~[?:?]
> >at java.security.AccessController.doPrivileged(Native Method) ~[?:?]
> >at
>
> >java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
> >~[?:?]
> >at java.awt.EventQueue.dispatchEvent(EventQueue.java:740) ~[?:?]
> >at
>
> >java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
> >[?:?]
> >at
>
> >java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
> >[?:?]
> >at
>
> >java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
> >[?:?]
> >at
> >java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
> >[?:?]
> >at
> >java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
> >[?:?]
> >at java.awt.EventDispatchThread.run(EventDispatchThread.java:90) [?:?]
> >
> >FYI
>


Darklaf Intellij JMeter 5.4 exception

2020-12-07 Thread Jmeter Tea
Hi

I download JMeter 5.4 ,
I changed to Darklaf Intellij and while running test,
I'm getting exceptions:
2020-12-07 12:37:32,619 ERROR o.a.j.JMeter: Uncaught exception in thread
Thread[AWT-EventQueue-0,6,main]
java.lang.NullPointerException: null
at
com.github.weisj.darklaf.ui.cell.hint.CellHintPopupListener.repaint(CellHintPopupListener.java:208)
~[darklaf-core-2.4.10.jar:2.4.10]
at com.github.weisj.darklaf.ui.tree.DarkTreeUI.update(DarkTreeUI.java:408)
~[darklaf-core-2.4.10.jar:2.4.10]
at javax.swing.JComponent.paintComponent(JComponent.java:797) ~[?:?]
at javax.swing.JComponent.paint(JComponent.java:1074) ~[?:?]
at javax.swing.JComponent.paintChildren(JComponent.java:907) ~[?:?]
at javax.swing.JComponent.paint(JComponent.java:1083) ~[?:?]
at javax.swing.JViewport.paint(JViewport.java:737) ~[?:?]
at javax.swing.JComponent.paintChildren(JComponent.java:907) ~[?:?]
at javax.swing.JComponent.paint(JComponent.java:1083) ~[?:?]
at javax.swing.JComponent.paintToOffscreen(JComponent.java:5255) ~[?:?]
at
javax.swing.RepaintManager$PaintManager.paintDoubleBufferedImpl(RepaintManager.java:1643)
~[?:?]
at
javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(RepaintManager.java:1618)
~[?:?]
at javax.swing.RepaintManager$PaintManager.paint(RepaintManager.java:1556)
~[?:?]
at javax.swing.RepaintManager.paint(RepaintManager.java:1323) ~[?:?]
at javax.swing.JComponent._paintImmediately(JComponent.java:5203) ~[?:?]
at javax.swing.JComponent.paintImmediately(JComponent.java:5013) ~[?:?]
at javax.swing.RepaintManager$4.run(RepaintManager.java:865) ~[?:?]
at javax.swing.RepaintManager$4.run(RepaintManager.java:848) ~[?:?]
at java.security.AccessController.doPrivileged(Native Method) ~[?:?]
at
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
~[?:?]
at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:848)
~[?:?]
at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:823)
~[?:?]
at javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:772)
~[?:?]
at
javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1890)
~[?:?]
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313) ~[?:?]
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770) ~[?:?]
at java.awt.EventQueue$4.run(EventQueue.java:721) ~[?:?]
at java.awt.EventQueue$4.run(EventQueue.java:715) ~[?:?]
at java.security.AccessController.doPrivileged(Native Method) ~[?:?]
at
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
~[?:?]
at java.awt.EventQueue.dispatchEvent(EventQueue.java:740) ~[?:?]
at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
[?:?]
at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
[?:?]
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
[?:?]
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
[?:?]
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
[?:?]
at java.awt.EventDispatchThread.run(EventDispatchThread.java:90) [?:?]

FYI


Re: GUI Usability Improvement - Zoom In/Out

2020-11-12 Thread Jmeter Tea
Ctrl + minus is already used as Collapse All

On Thu, Nov 12, 2020 at 10:01 AM Shay Ginsbourg 
wrote:

> Hi,
>
> Please add a couple of keyboard shortcuts, as follows:
>
> Ctrl + "+" for Jmeter Options -> Zoom In
> Ctrl + "-" for Jmeter Options -> Zoom Out
>
> Thank you very much for all your hard work!
>
> Sincerely,
> Shay
>


Re: Linux script files clarification

2020-11-09 Thread Jmeter Tea
Hello,

I found information in Getting Started page:
https://jmeter.apache.org/usermanual/get-started.html#running
For starters it's confusing to have 2 scripts without specific use case
Also the comment for the main script can be removed/explained "may not work
for all JVMs"

 Thank you for your reply

On Thu, Nov 5, 2020 at 7:39 PM Felix Schumacher <
felix.schumac...@internetallee.de> wrote:

>
> Am 05.11.20 um 13:53 schrieb Jmeter Tea:
> > The documentation about executing jmeter in linux isn't clear,
> >
> > What should be used in CLI? What JVM settings are problematic in each
> case?
>
> Looking at the history of those two files, it seems, that jmeter.sh was
> intended as a simple showcase and jmeter as the normal start script.
>
> The jmeter.sh file grew to almost the size and complexity of the jmeter
> script, but ended to be a wrapper of it. Currently jmeter.sh sets a few
> variables and calls jmeter internally.
>
> I use bin/jmeter exclusively and don't know, whether anyone use the
> jmeter.sh script.
>
> >
> > Spec:
> >
> > Un*x script files; should work on most Linux/Unix systems:
> > jmeterrun JMeter (in GUI mode by default). Defines some JVM settings
> which
> > may not work for all JVMs.jmeter.shvery basic JMeter script (You may need
> > to adapt JVM options like memory settings).
>
> If you start reading bin/jmeter from the bottom up, you will see, that
> there is an environment variable JMETER_COMPLETE_ARGS, which can be set
> to disable the generation of the internal ARGS environment variable.
> That variable is used by bin/jmeter.sh, but you can use it, too. This
> will disable all the special handling for memory settings, language
> settings or Java 9 module setup. You can specify whatever you want via
> the enviroment variables JVM_ARGS or JMETER_OPTS. JMETER_OPTS will be
> enhanced with MacOS specific stuff, if you run the shell script on MacOS.
>
> If you want to get rid of the memory specifc stuff, you can set the
> environment variables GC_ALGO and HEAP. They will get combined into the
> variable ARGS (if JMETER_COMPLETE_ARGS is NOT set) and then used to run
> JMeter.
>
> > Also why  setenv.sh isn't called in jmeter.sh?
>
> setenv.sh is sourced into bin/jmeter, which is called by bin/jmeter.sh
> so it will (or at least should) be called.
>
> Is there any specific reason for your question? Where did you look for
> information?
>
> Felix
>
> >
> > Thank you
> >
>
> -
> To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
> For additional commands, e-mail: user-h...@jmeter.apache.org
>
>


Linux script files clarification

2020-11-05 Thread Jmeter Tea
The documentation about executing jmeter in linux isn't clear,

What should be used in CLI? What JVM settings are problematic in each case?

Spec:

Un*x script files; should work on most Linux/Unix systems:
jmeterrun JMeter (in GUI mode by default). Defines some JVM settings which
may not work for all JVMs.jmeter.shvery basic JMeter script (You may need
to adapt JVM options like memory settings).
Also why  setenv.sh isn't called in jmeter.sh?

Thank you


Listener file for errors

2020-07-02 Thread Jmeter Tea
Hello

About Listeners, as View Results Tree, if we checked for errors (or
successes) then errors are saved

But if there's no errors in test, the file is still created (empty)

Can a file be created only if there is an error?

If not, can this be considered as enhancement?

Thank you


How to pause JMeter?

2020-05-26 Thread Jmeter Tea
Hello,

I'm executing JMeter task with several requests for a few hours on a server,

I want to be able to pause execution for a few seconds/minutes and resume
when server finish restarted or other maintenance

Is there a way to signal JMeter to pause and resume its execution?

Thank you


Re: jmeter download files' date

2020-05-20 Thread Jmeter Tea
You can keep the date, but other Apache products as tomcat and spark use
build date as files' date

On Tue, May 19, 2020 at 7:00 PM Vladimir Sitnikov <
sitnikov.vladi...@gmail.com> wrote:

> Felix>Plus, it probably is set that way by default to enable reproducible
> Felix>builds. The timestamp is the same no matter where or when it was
> build.
>
> The timestamps are constants for build reproducibility indeed.
> One can download source files (e.g. source release artifacts),
> build it and the result should be exactly the same binaries.
>
> Vladimir
>


jmeter download files' date

2020-05-19 Thread Jmeter Tea
Hello,

I wanted to know why all jmeter download files' date is 1/2/1980?

Thank you


Re: Thread Group: specify startup delay without duration

2020-03-11 Thread Jmeter Tea
Currently no, it fails in validation checks
As a workaround, you can add setUp Thread Group with Flow Control Action
that pause the startup delay you want

On Wed, Mar 11, 2020 at 1:10 PM Mohamed BOUKHLIF
 wrote:

> Is it possible to specify it in the jmx file without using the UI ?
>
>
> On Wed, Mar 11, 2020 at 12:04 PM Jmeter Tea  wrote:
>
> > Currently it's not possible,
> > I opened a bug about it
> > https://bz.apache.org/bugzilla/show_bug.cgi?id=62100
> > JMeter dev need to decide if to allow it or mark Duration field as
> > mandatory in UX
> >
> > On Wed, Mar 11, 2020 at 12:49 PM Mohamed BOUKHLIF
> >  wrote:
> >
> > >
> > > Hi,
> > >
> > > [image: image.png]
> > > I want to specify only the startup delay and not the duration, is there
> > > any way to achieve that?
> > >
> > > Thanks
> > >
> >
>


Re: Thread Group: specify startup delay without duration

2020-03-11 Thread Jmeter Tea
Currently it's not possible,
I opened a bug about it https://bz.apache.org/bugzilla/show_bug.cgi?id=62100
JMeter dev need to decide if to allow it or mark Duration field as
mandatory in UX

On Wed, Mar 11, 2020 at 12:49 PM Mohamed BOUKHLIF
 wrote:

>
> Hi,
>
> [image: image.png]
> I want to specify only the startup delay and not the duration, is there
> any way to achieve that?
>
> Thanks
>


Re: TearDown TG docs or implementation bug?

2019-12-24 Thread Jmeter Tea
If you shutdown *after regular thread group started *(Main Sampler
executed) tear down group will be executed only if  Run TD TG checked

On Tue, Dec 24, 2019 at 10:11 AM Konstantin Kalinin 
wrote:

>
> -
> To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
> For additional commands, e-mail: user-h...@jmeter.apache.org


logging docs

2019-08-29 Thread Jmeter Tea
Hello Team,

In JMeter docs https://jmeter.apache.org/usermanual/get-started.html
In *Logging "*New Practices Since 3.2"
It also states to use level NONE
But actually it supports OFF and FATAL levels which aren't mention
Is it documentation bug?

First asked in
https://stackoverflow.com/questions/57264142/jmeter-ignore-fatal-off-log-levels


Re: TearDown TG docs or implementation bug?

2019-08-07 Thread Jmeter Tea
It's relevant when you *shutdown execution *

On Thu, Aug 8, 2019 at 9:45 AM Konstantin Kalinin 
wrote:

> More to add,
>
> By now (5.1.1) "Run TD TG" flag in the Test Plan component already does
> nothing, so it's only present in UI.
>
> 07.08.2019, 19:05, "Konstantin Kalinin" :
> > Hi guys,
> >
> > Here
> https://jmeter.apache.org/usermanual/component_reference.html#Test_Plan
> and here
> https://jmeter.apache.org/usermanual/component_reference.html#tearDown_Thread_Group
> it's stated that TD TG won't run if a test is stopped manually, but it does
> in 5.1.1 and does it so far I remember myself.
> >
> > Also, here
> https://jmeter.apache.org/usermanual/component_reference.html#tearDown_Thread_Group
> it's said that by default we have an unchecked flag "Run TD TG" in Test
> Plan, but it's wrong.
> >
> > Are those a legacy documentation bug or implementation issue?
> >
> > And the main question: do we even need the flag "Run TD TG" in the Test
> Plan component? If one wants not to run Teardown Thread Groups present in a
> Test Plan, (s)he disables it. I guess I can make a PR to remove it.
> >
> > --
> > Konstantin Kalinin
>
> --
> Konstantin Kalinin
> +7 912 468 00 00
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
> For additional commands, e-mail: user-h...@jmeter.apache.org
>
>


Re: HTTP Request's Content Encoding field

2018-12-25 Thread Jmeter Tea
Thank you for answering my question,
But still, what is the usage of setting a valid value, What is the benefit
over setting Content-Type header parameter?

On Tue, Dec 25, 2018 at 3:59 PM glin...@live.com  wrote:

> It is being used at least:
>
>  1. For  setting request header
> <
> https://github.com/apache/jmeter/blob/v5_0/src/protocol/http/org/apache/jmeter/protocol/http/sampler/PostWriter.java#L315>
>
>  2. For  encoding POST request data
> <
> https://github.com/apache/jmeter/blob/v5_0/src/protocol/http/org/apache/jmeter/protocol/http/sampler/PostWriter.java#L320>
>
>  3. For  encoding query string
> <
> https://github.com/apache/jmeter/blob/v5_0/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java#L1121>
>
>
> The easiest way of testing this is setting Content Encoding to something,
> which cannot be resolved to a  Java Charset
> <
> https://docs.oracle.com/javase/8/docs/api/index.html?java/nio/charset/StandardCharsets.html>
>
> , in this case you will immediately get an  UnsupportedCharsetException
> <
> https://docs.oracle.com/javase/8/docs/api/java/nio/charset/UnsupportedCharsetException.html>
>
>
> Another option of testing this is using  View Results Tree
> 
> listener, if you leave the Content Encoding input blank - JMeter will send
> default charset (UTF-8). If you set the encoding of your choice - JMeter
> will add this as the  Content-Type header
> 
> *charset* parameter
>
> <
> http://www.jmeter-archive.org/file/t340375/Screenshot_2018-12-25_at_14.png>
>
>
>
>
>
>
> --
> Sent from: http://www.jmeter-archive.org/JMeter-User-f512775.html
>
> -
> To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
> For additional commands, e-mail: user-h...@jmeter.apache.org
>
>


HTTP Request's Content Encoding field

2018-12-19 Thread Jmeter Tea
I tried sending encoding in HTTP Request's Content Encoding

field
but it doesn't seem to have any effect also in POST request

Content encoding to be used (for POST, PUT, PATCH and FILE). This is the
character encoding to be used, and is not related to the Content-Encoding
HTTP header.


Is it a deprecated field or is there any specific usage/effect when
changing the encoding ?


Re: Query on Tool Upgrade

2018-11-12 Thread Jmeter Tea
JMeter 5 is stable, and as any software not bug free
JMeter 5 include *41* bug fixes and 54 enhancements since JMeter 4
General advice if you can (e.g. since JMeter 3.2 you need Java 8) always
use latest stable version

On Tue, Nov 13, 2018 at 8:44 AM Kiradi Manoj  wrote:

> Hi,
>
> We are planning to upgrade Jmeter from 2.13 to 5.0 version but have few
> questions before we upgrade the tool.
>
> Is 5.0 version of Jmeter is stable and bug free?
>
> Which version of Jmeter is more stable 4.0 / 5.0?
>
> Regards,
> Manoj K
>


Re: Extracting values From HTTP Requests

2018-09-27 Thread Jmeter Tea
 In __FileToString you can save value to variable using 3rd parameter.
Then you can extract from the variable using Apply To: JMeter Variable Name
to use  (" assertion is to be applied to the contents of the named
variable")

On Thu, Sep 27, 2018 at 3:54 PM, Nayak, Soumya R. 
wrote:

> Hi All,
>
> I am submitting HTTP requests and I am getting the request content
> dynamically from individual files from a local folder using the Jmeter
> function - "__FileToString".
> I have a requirement to extract a value from a variable from the request
> data, so how can I do that ?
>
> As I have post processors which work only on response data, is there any
> way to extract from the dynamic request data?
>
> Regards,
> Soumya
>
> 
> **
> This message may contain confidential or proprietary information intended
> only for the use of the
> addressee(s) named above or may contain information that is legally
> privileged. If you are
> not the intended addressee, or the person responsible for delivering it to
> the intended addressee,
> you are hereby notified that reading, disseminating, distributing or
> copying this message is strictly
> prohibited. If you have received this message by mistake, please
> immediately notify us by
> replying to the message and delete the original message and any copies
> immediately thereafter.
>
> If you received this email as a commercial message and would like to opt
> out of future commercial
> messages, please let us know and we will remove you from our distribution
> list.
>
> Thank you.~
> 
> **
> FAFLD
>


Re: HTTP Request's Content Encoding field

2018-09-25 Thread Jmeter Tea
 glinius: I get the same results as leave empty or UTF-16 (as GET
http://www.google.com/?漢字), also I want a use case when you *need *it

On Wed, Sep 26, 2018 at 8:23 AM, glin...@live.com  wrote:

> Try sending a HTTP GET request with a Chinese character and encoding set to
> US-ASCII.
>
>
>
> --
> Sent from: http://www.jmeter-archive.org/JMeter-User-f512775.html
>
> -
> To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
> For additional commands, e-mail: user-h...@jmeter.apache.org
>
>


HTTP Request's Content Encoding field

2018-09-25 Thread Jmeter Tea
Hello,

I wanted to know what's the usage of  HTTP Request's Content Encoding

field?
Are there scenarios that its value need to be set differently than default?
In View Results Tree I don't see any change in the request.

Thank you


Re: Invoking local file

2018-08-12 Thread Jmeter Tea
Thank you ZK

On Fri, Aug 10, 2018 at 12:31 PM, krish na 
wrote:

> Excellent thanks its working fine.
> Regards,
> Krishna - +91-9884451279.
>
> CallSend SMSAdd to SkypeYou'll need Skype CreditFree via Skype
>
> On Friday, 10 August, 2018, 2:55:34 PM IST, ZK <
> stevesenio...@gmail.com> wrote:
>
>  Hi,
> the problem is in the path to your json file
>
> Try this with the HTTP Sampler:
>
> Protocol = file
> Server Name or IP = ///
> Method = GET
> Path = E:\Krishna\apache-jmeter-4.0\apache-jmeter-4.0\bin\SampleJson.json
>
> Implementation  <- meaning empty field (maybe under 'advanced tab')
>
>
>
>
> ZK
>
>
>
>
> --
> Sent from: http://www.jmeter-archive.org/JMeter-User-f512775.html
>
> -
> To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
> For additional commands, e-mail: user-h...@jmeter.apache.org
>
>
>


Re: Jmeter report generation with transaction statistics

2018-04-23 Thread Jmeter Tea
See https://jmeter.apache.org/usermanual/generating-dashboard.html

On Tue, Apr 24, 2018 at 9:22 AM, Vikram Kishore V 
wrote:

> Hi
>
> I am trying to find a way to generate a report with transaction statistics
> like number of passed transactions, failed transactions, total number of
> transactions. Kindly provide your suggestions and help
>


HTTP Request Documentation

2018-03-22 Thread Jmeter Tea
About HTTP Request Documentation,

It seems that it's not accurate in Server field, it states it's a required
field:
" Yes, unless provided by HTTP Request Defaults "

But it can be empty also if Path is set with full URL as
https://www.google.com

I think it's worth to mention it in documentation as:

" Yes, unless provided by HTTP Request Defaults or full URL exists in Path
field "


Execute specific thread group

2018-02-26 Thread Jmeter Tea
Hello,

We use each jmx file to contain several thread groups
Sometimes we need to execute one thread group in GUI
It's a bit confusing that Start is used both to start all test plan and
also specific thread group
Can there a rename for either of the commands? as Start Thread Group
Can there be a new key stroke for start a thread group as Ctrl+Alt+R?

Thank you


Re: JSR223 Sampler is not in top ten in Add menu

2018-02-22 Thread Jmeter Tea
Beanshell components aren't marked as deprecated,
I suggest first mark it as deprecated before removal
http://jmeter.apache.org/usermanual/component_reference.html#BeanShell_Sampler

Another question about Beanshell, in documentation there's a statement
about "BeanShell server":
"using the remote BeanShell server to change a JMeter property"
is BeanShell server relevant to JMeter?

On Wed, Feb 21, 2018 at 3:36 PM, Stuart Kenworthy  wrote:

> Does it not still represent them alphabetically until a user profile has
> been built up?
>
> -----Original Message-
> From: Jmeter Tea [mailto:jmeter...@gmail.com]
> Sent: 21 February 2018 13:34
> To: JMeter Users List 
> Subject: Re: JSR223 Sampler is not in top ten in Add menu
>
> Of course I'm talking after JMeter 4 change of  "Menu UX have been
> improved to make most used elements available more rapidly."
>
> On Wed, Feb 21, 2018 at 3:15 PM, Stuart Kenworthy <
> stuart.kenwor...@bjss.com
> > wrote:
>
> > Could this be because it is in alphabetical order?
> >
> > -Original Message-
> > From: Jmeter Tea [mailto:jmeter...@gmail.com]
> > Sent: 21 February 2018 12:54
> > To: JMeter Users List 
> > Subject: JSR223 Sampler is not in top ten in Add menu
> >
> > About JMeter GUI - In the Add menu of components,
> >
> > In Sampler sub menu JSR223 Sampler is not in top ten, even after
> > Beanshell Sampler.
> >
> > Other JSR223 components are in the top 5 at least,
> >
> > I suggest  JSR223 Sampler will be higher on the list (4th?)
> >
> > http://jmeter.apache.org/usermanual/best-practices.html#jsr223
> >
> > Thank you
> >
> > The information included in this email and any files transmitted with
> > it may contain information that is confidential and it must not be
> > used by, or its contents or attachments copied or disclosed to,
> > persons other than the intended addressee. If you have received this
> > email in error, please notify BJSS. In the absence of written
> > agreement to the contrary BJSS' relevant standard terms of contract
> > for any work to be undertaken will apply. Please carry out virus or
> > such other checks as you consider appropriate in respect of this
> > email. BJSS does not accept responsibility for any adverse effect upon
> > your system or data in relation to this email or any files transmitted
> > with it. BJSS Limited, a company registered in England and Wales
> > (Company Number 2777575), VAT Registration Number 613295452, Registered
> Office Address, First Floor, Coronet House, Queen Street, Leeds, LS1 2TW.
> >
>
> The information included in this email and any files transmitted with it
> may contain information that is confidential and it must not be used by, or
> its contents or attachments copied or disclosed to, persons other than the
> intended addressee. If you have received this email in error, please notify
> BJSS. In the absence of written agreement to the contrary BJSS' relevant
> standard terms of contract for any work to be undertaken will apply. Please
> carry out virus or such other checks as you consider appropriate in respect
> of this email. BJSS does not accept responsibility for any adverse effect
> upon your system or data in relation to this email or any files transmitted
> with it. BJSS Limited, a company registered in England and Wales (Company
> Number 2777575), VAT Registration Number 613295452, Registered Office
> Address, First Floor, Coronet House, Queen Street, Leeds, LS1 2TW.
>


Re: JSR223 Sampler is not in top ten in Add menu

2018-02-21 Thread Jmeter Tea
Of course I'm talking after JMeter 4 change of  "Menu UX have been improved
to make most used elements available more rapidly."

On Wed, Feb 21, 2018 at 3:15 PM, Stuart Kenworthy  wrote:

> Could this be because it is in alphabetical order?
>
> -Original Message-
> From: Jmeter Tea [mailto:jmeter...@gmail.com]
> Sent: 21 February 2018 12:54
> To: JMeter Users List 
> Subject: JSR223 Sampler is not in top ten in Add menu
>
> About JMeter GUI - In the Add menu of components,
>
> In Sampler sub menu JSR223 Sampler is not in top ten, even after Beanshell
> Sampler.
>
> Other JSR223 components are in the top 5 at least,
>
> I suggest  JSR223 Sampler will be higher on the list (4th?)
>
> http://jmeter.apache.org/usermanual/best-practices.html#jsr223
>
> Thank you
>
> The information included in this email and any files transmitted with it
> may contain information that is confidential and it must not be used by, or
> its contents or attachments copied or disclosed to, persons other than the
> intended addressee. If you have received this email in error, please notify
> BJSS. In the absence of written agreement to the contrary BJSS' relevant
> standard terms of contract for any work to be undertaken will apply. Please
> carry out virus or such other checks as you consider appropriate in respect
> of this email. BJSS does not accept responsibility for any adverse effect
> upon your system or data in relation to this email or any files transmitted
> with it. BJSS Limited, a company registered in England and Wales (Company
> Number 2777575), VAT Registration Number 613295452, Registered Office
> Address, First Floor, Coronet House, Queen Street, Leeds, LS1 2TW.
>


JSR223 Sampler is not in top ten in Add menu

2018-02-21 Thread Jmeter Tea
About JMeter GUI - In the Add menu of components,

In Sampler sub menu JSR223 Sampler is not in top ten, even after Beanshell
Sampler.

Other JSR223 components are in the top 5 at least,

I suggest  JSR223 Sampler will be higher on the list (4th?)

http://jmeter.apache.org/usermanual/best-practices.html#jsr223

Thank you


char function examples

2018-01-20 Thread jmeter tea
Hi

In char function examples
http://jmeter.apache.org/usermanual/functions.html#__char

There are wrong examples with 2 parameters instead of one which doesn't
work in Function Helper:

"Examples:
${__char(13,10)} = ${__char(0xD,0xA)} = ${__char(015,012)} = CRLF "


Re: Error using JDBC Oracle connection Jmeter

2018-01-08 Thread jmeter tea
probably ojdbc driver issue. see
https://stackoverflow.com/questions/9156379/ora-01882-timezone-region-not-found
"using ojdbc6.jar (version 11.2.0.3.0) to connect to an Oracle 9.2.0.4.0
server. Replacing it with ojdbc6.jar version 11.1.0.7.0 solved the issue."

On Mon, Jan 8, 2018 at 2:15 PM, Gema Moreno  wrote:

> Hi, I just configure a JDBC Oracle connection to test, this is my
> configuration:
>
> url: jdbc:oracle:thin:@//192.168.110.103:1521/rdgolf
> driver: oracle.jdbc.OracleDriver
>
> I copy the ojdbc6.jar in the library folder
>
> But when I execute the jmeter, it returns the next error:
>
> ORA-00604: error occurred at recursive SQL level 1
> ORA-01882: timezone region  not found
>
> Many thanks and best regards.
>


Re: manage historical tests data

2017-12-14 Thread jmeter tea
You can check blazemeter solution in  https://www.blazemeter.com/features
"Collaborate and share interactive test results and graphs with team mates
or generate an Executive Report"

On Thu, Dec 14, 2017 at 3:17 PM, Himanshu Ghai 
wrote:

> You can use a backend listener and send results to graphite/influxdb.
>
> http://jmeter.apache.org/usermanual/realtime-results.html
>
> -Himanshu
>
> On Thu, Dec 14, 2017 at 4:29 AM, Dan Zaitoun 
> wrote:
>
> > Hi,
> > I'm working with jmeter dashboards and I want to save all results so
> other
> > people in the org can see this results throw web, does any one have any
> > experience with it?
> > Thanks
> >
> >
> > Dan zaitoun - Performance engineer
> > O. 03-9552400
> > M. 0546880500
> > W. www.cybereason.com
> > [image: Cybereason official website] 
> > [image: Cybereason Linked profile]
> >  [image: Cybereason Facebook
> > page]  [image: Cybereason on
> Twitter]
> > 
> >
>


Re: Does JDBC Connection Config component respect its scope?

2017-11-27 Thread jmeter tea
There's a general note about configuration elements (
http://jmeter.apache.org/usermanual/component_reference.html#config_elements
)
elements are processed at the start of the scope in which they are found,
i.e. before any samplers in the same scope.
There's such note in CSV Data Set Config (
http://jmeter.apache.org/usermanual/component_reference.html#CSV_Data_Set_Config
)
CSV Dataset variables are defined at the start of each test iteration. As
this is after configuration processing is completed, they cannot be used
for some configuration items - such as JDBC Config



On Mon, Nov 27, 2017 at 12:58 PM, Konstantin Kalinin <
konstan...@kkalinin.pro> wrote:

> Hello!
>
> I'm using JMeter 3.3.
> I try to setup a JDBC Connection Config (JDBC CC) this way:
>
> Test plan
> |__setUp Thread Group
>   |__Sampler1 (sets variables)
>   |__JDBC Request1
>  |__JDBC CC (using vars from Sampler1)
>
> Seems that JDBC CC initializes when Test plan is loaded, no matter where
> it is in the plan, as it can not use variables that I've set in Sampler1.
> Adding some tree levels with different Controllers changes nothing.
> It behaves like a User Defined Variables config element do, but there's no
> note about it in a Documentation. I expect, that JDBC CC would respect it's
> scope.
>
> Is it a bug?
>
>
> --
> Konstantin Kalinin
> +7 912 468 00 00
>
> -
> To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
> For additional commands, e-mail: user-h...@jmeter.apache.org
>
>


Re: Update Once Per Iteration reverses execution sequence of Preprocessors

2017-11-15 Thread jmeter tea
User parameters are strictly hierarchical
But when checking Update Once Per Iteration it saves before iteration the
variables beforehand
So that second User Parameter will have P and Q as not exists variables and
therefore
P1  ${P} ,

On Sun, Nov 12, 2017 at 3:38 PM, minerva001  wrote:

> I noticed when having in a simple controller with several User Parameters
> (Preprocessors) with the "Update Once Per Iteration" flag marked, that the
> Preprocessors are run in reverse order.
>
>
>
> Simple Controller
>
>   User Parameter
>
> P XX
>
> Q${Q}q1
>
>   User Parameter
>
> P1  ${P}
>
> Q   ${Q}q2
>
>   Debug Sampler
>
>
>
> In case "Update Once Per Iteration" is marked, P1=${P}, Q=${Q}q2q1
>
> When not marked, P1=XX, Q=${Q}q1q2
>
>
>
> Why does "Update Once Per Iteration" reverses the execution sequence of
> Preprocessors?
>
> Is this behavior intended and somewhere documented?
>
>
>
>


Re: Is there a way to count all retries as single request in JMeter

2017-11-13 Thread jmeter tea
you can check similar question with answers
https://stackoverflow.com/questions/47259211/jmeter-groovy-re-execute-a-sampler-x-times-under-condition/47259590#47259590

On Mon, Nov 13, 2017 at 7:55 AM, Muhammad Nasir  wrote:

> In my case it is.
>
> I am trying to benchmark overall user experience performance on load. If a
> user is getting a response (though little late) its fine in my case rather
> being failed.
> And thats the data I want like with current implementation what are my
> system capabilities to successfully process requests.
>
> *Muhammad Nasir*
> Lead Quality Assurance Engineer
> *folio3* Pvt. Ltd.
> www.folio3.com
> Cell: +92 332 257 9082
>
> On Mon, Nov 13, 2017 at 10:50 AM, Andrew Burton <
> andrewburtona...@gmail.com>
> wrote:
>
> > Well, you definitely do want to have these as separate requests. Knowing
> > that possibly 2 out of every 3 attempts to login fail to return a non-200
> > response code is valuable data!
> >
> > I would argue that a request that has timed out twice and succeeds on the
> > third try is not a single successful login.
> >
> >
> >
> > On Mon, Nov 13, 2017 at 4:22 PM, Muhammad Nasir 
> wrote:
> >
> > > Yes My use case is as follows:
> > >
> > > I am testing a http API on load and client which is using this API has
> 30
> > > sec request timeout implemented (This means on load some of the request
> > may
> > > result in request timeout error). To avoid permanent failures we have
> > > implemented 2 retries / request on client side before marking it as
> > failed
> > > and I am trying to implement the same retry mechanism in JMeter load
> test
> > > as well.
> > >
> > > Now having said that, I have already implemented the retry mechanism
> > using
> > > while loop as:
> > > *${__jexl3(("${Login_Code}" != "200") && ("${Login_Counter}" <= "1"))}*
> > >
> > > but the problem with this code is that it reports all retries as
> separate
> > > requests on Report which gives me false reporting.
> > >
> > > Suppose if any request pass in 2nd retry than JMeter is reporting it
> as 2
> > > requests failed and 1 Passed, which means it has skewed my results and
> I
> > am
> > > unable to identify the exact failure/success rate.
> > >
> > > Any help or code samples to achieve this will be highly appreciated.
> > >
> > >
> > >
> > > *Muhammad Nasir*
> > > Lead Quality Assurance Engineer
> > > *folio3* Pvt. Ltd.
> > > www.folio3.com
> > > Cell: +92 332 257 9082
> > >
> > > On Mon, Nov 13, 2017 at 7:28 AM, Andrew Burton <
> > andrewburtona...@gmail.com
> > > >
> > > wrote:
> > >
> > > > I would expect that each call to sample() in your line:
> > > >
> > > > SampleResult result = ctx.getCurrentSampler().sample(null);
> > > >
> > > > would result in a new request being logged.
> > > >
> > > > If you don't want to use a Transaction Controller as suggested, the
> > only
> > > > way to "work around" this would be to write your own custom sampler
> > that
> > > > allows for retrying based on a text response from the server.
> > > >
> > > > Is there any more context for your question, e.g. why you might need
> to
> > > > handle multiple failures before getting the response you want?
> > > >
> > > >
> > > >
> > > > On Sun, Nov 12, 2017 at 5:47 AM, Muhammad Nasir 
> > > wrote:
> > > >
> > > > > Thanks Antonio but I am not looking for this solution.
> > > > >
> > > > > *Muhammad Nasir*
> > > > > Lead Quality Assurance Engineer
> > > > > *folio3* Pvt. Ltd.
> > > > > www.folio3.com
> > > > > Cell: +92 332 257 9082
> > > > >
> > > > > On Fri, Nov 10, 2017 at 7:05 PM, Antonio Gomes Rodrigues <
> > > > ra0...@gmail.com
> > > > > >
> > > > > wrote:
> > > > >
> > > > > > Hi,
> > > > > >
> > > > > > Use a Transaction Controller :
> > > > > > http://jmeter.apache.org/usermanual/component_
> > > > > reference.html#Transaction_
> > > > > > Controller
> > > > > >
> > > > > > Antonio
> > > > > >
> > > > > >
> > > > > > 2017-11-09 18:02 GMT+01:00 Muhammad Nasir :
> > > > > >
> > > > > > > Anyone to help on this?
> > > > > > >
> > > > > > > --
> > > > > > > Nasir
> > > > > > >
> > > > > > > > On 09-Nov-2017, at 10:59 AM, Muhammad Nasir <
> mna...@folio3.com
> > >
> > > > > wrote:
> > > > > > > >
> > > > > > > > I am having false reporting due to number of retries. I have
> > > > > > implemented
> > > > > > > a retry mechanism as
> > > > > > > > " ${__jexl3(("${Login_Code}" != "200") && ("${Login_Counter}"
> > <=
> > > > > > "2"))} "
> > > > > > > >
> > > > > > > > Let's say I am executing a request which retries for 2 times
> > and
> > > > then
> > > > > > > Failed is actually reported as 3 independent requests on
> > > > > > Aggregate/Results
> > > > > > > Tree Reports.
> > > > > > > >
> > > > > > > > Is there a way to report this as single failure because this
> is
> > > > > > > ultimately a single request with 2 retries?
> > > > > > > >
> > > > > > > > Note: I tried following solution and its not working either
> > > > > > > > import org.apache.jmeter.samplers.SampleResult;
> > > > > > > >
> > > > > > > 

Re: Help required in regular expression in Jmeter

2017-11-12 Thread jmeter tea
You can use the Regular Expression: login-actions\/([^&]*)
See https://regex101.com/r/eNSsrl/1

On Mon, Nov 13, 2017 at 9:17 AM, Vamsi Krishna Maddali <
vamsi.madd...@qolsys.com> wrote:

> Hi All,
>
>
> Required your help in resloving below issue:
>
>
> Issue:Unable to capture the authenticate?code value which is generated
> while logging in to a webpage, authenticate?code value which is being
> generated is a dynamic value and not following a unique pattarn as in a
> regular expression kind.
>
>
> What i am trying to do here is capturing the authenticate?code value into
> a variable named “token” by using the “Regular Expression Extractor” and
> use that variable in the login script which is used to access the webpage.
> But the authenticate?code is not being captured in the script and i am not
> able to use in the login script.
>
>
> My guess is that the Regular Expression Extractor which i am using may not
> be the correct one, so couldn't capture the authenticate?code value .
>
>
> Can anyone help me in finding a soluion or any other method to handel this
> situation.
>
>
> Below is the HTML tag in webpage:
>
>
> http://localhost:8080/
> auth/realms/master/login-actions/authenticate?code=u22yiDCDtV-jm3_
> 1w2NP6HykFCTtePlgADFhFa17U3s&execution=570368df-fa0b-4bd1-
> 9964-251d1448718e&client_id=security-admin-console" method="post">
>
>
> in the below , we are trying to capture 
> “authenticate?code=u22yiDCDtV-jm3_1w2NP6HykFCTtePlgADFhFa17U3s”
> value and need to send as a parameter in next “Sample Controller”.
>
>
>
>
>
> Thanks,
>
> Vamsi
>


Re: Trying to run a jmeter script through a testng Test and fails

2017-11-07 Thread jmeter tea
It seems that you have extra sapces in path: ("/home/
chamara/stress-test-framework/src/test/jmeter/CUSTOM/
Concurrency_Thread_Group.jmx");

Try with ("/home/chamara/stress-test-framework/src/test/jmeter/CUSTOM/
Concurrency_Thread_Group.jmx");

On Wed, Nov 8, 2017 at 4:28 AM, Chamara Ariyarathne 
wrote:

> Hi all,
>
> I'm trying to run a jmeter script with the following Test method in testng
> and my maven build fails like following. Any help in resolving this matter
> will be appreciated.
>
> *Method: *
>
> @Test
> public void runJmeter() throws Exception {
> StandardJMeterEngine jmeter = new StandardJMeterEngine();
>
> JMeterUtils.setJMeterHome("/home/chamara/Programs/apache-
> jmeter-3.2
> ");
> JMeterUtils.loadJMeterProperties("/home/
> chamara/stress-test-framework/src/test/resources/CUSTOM/user.properties");
> JMeterUtils.initLogging();
> JMeterUtils.initLocale();
>
> SaveService.loadProperties();
>
> FileInputStream in = new FileInputStream("/home/
> chamara/stress-test-framework/src/test/jmeter/CUSTOM/
> Concurrency_Thread_Group.jmx");
> HashTree testPlanTree = SaveService.loadTree(in);
> in.close();
>
> jmeter.configure(testPlanTree);
> jmeter.run();
>
>
> }
>
> *Failure: *
>
> ---
>  T E S T S
> ---
> Running org.wso2.stress.StressTest
> Configuring TestNG with: org.apache.maven.surefire.testng.conf.
> TestNG652Configurator@2db0f6b2
> INFO2017-11-07 18:35:18.029 [jmeter.e] (): Listeners will be started
> after enabling running version
> INFO2017-11-07 18:35:18.041 [jmeter.e] (): To revert to the earlier
> behaviour, define jmeterengine.startlistenerslater=false
> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.389 sec
> <<< FAILURE!
> runJmeter(org.wso2.stress.StressTest)  Time elapsed: 0.199 sec  <<<
> FAILURE!
> java.lang.NullPointerException
> at org.apache.jmeter.engine.StandardJMeterEngine.configure(
> StandardJMeterEngine.java:164)
> at org.wso2.stress.StressTest.runJmeter(StressTest.java:31)
>
>
> --
> *Chamara Ariyarathne*
> WSO2 Inc; http://www.wso2.com/
> Mobile; *+94772786766 <077%20278%206766>*
>


Re: Enhance Backup - Save before Run flag

2017-11-07 Thread jmeter tea
For regression reasons, Maybe the property should be set to *false *by
default to keep behavior as today?


On Tue, Nov 7, 2017 at 10:50 AM, jmeter tea  wrote:

> Yes, I think it'll be great
>
> Thank you
>
> On Tue, Nov 7, 2017 at 10:47 AM, Philippe Mouawad <
> philippe.moua...@gmail.com> wrote:
>
>> I would then suggest:
>>
>> - a property set to true : save_automatically_before_run
>> - user can modify in Options > "Save automatically before run", it is
>> stored in preferences
>>
>> Preferences override property
>> Does it look better ?
>>
>>
>> Regards
>>
>> On Tue, Nov 7, 2017 at 9:43 AM, jmeter tea  wrote:
>>
>> > Pop ups aren't a very friendly way of helping the user, especially when
>> > it's for every run in GUI.
>> > In Eclipse for example you have "Save automatically before build" check
>> box
>> >
>> > On Tue, Nov 7, 2017 at 10:29 AM, Philippe Mouawad <
>> > philippe.moua...@gmail.com> wrote:
>> >
>> > > Hello,
>> > >
>> > > We do popup a Save dialog when you first run a project without saving
>> > > it, so maybe we should do the same here.
>> > >
>> > > Regards
>> > >
>> > >
>> > > On Tue, Nov 7, 2017 at 8:56 AM, jmeter tea 
>> wrote:
>> > >
>> > > > There were many issues where file was corrupted, specifically when
>> > > > running on GUI mode, which means that jmx file can't be fixed to a
>> > > > working condition,
>> > > >
>> > > > When running a Test Plan, sometimes GUI stuck and test plan can't be
>> > > saved.
>> > > >
>> > > > Backup mechanism currently happens when clicking Save
>> > > >
>> > > > I suggest A flag  "Save before Run" which will save (and backup
>> file)
>> > > > before executing Run and therefore file will not be corrupted and
>> can
>> > > > be opened again.
>> > > >
>> > >
>> > >
>> > >
>> > > --
>> > > Cordialement.
>> > > Philippe Mouawad.
>> > >
>> >
>>
>>
>>
>> --
>> Cordialement.
>> Philippe Mouawad.
>>
>
>


Re: Enhance Backup - Save before Run flag

2017-11-07 Thread jmeter tea
Yes, I think it'll be great

Thank you

On Tue, Nov 7, 2017 at 10:47 AM, Philippe Mouawad <
philippe.moua...@gmail.com> wrote:

> I would then suggest:
>
> - a property set to true : save_automatically_before_run
> - user can modify in Options > "Save automatically before run", it is
> stored in preferences
>
> Preferences override property
> Does it look better ?
>
>
> Regards
>
> On Tue, Nov 7, 2017 at 9:43 AM, jmeter tea  wrote:
>
> > Pop ups aren't a very friendly way of helping the user, especially when
> > it's for every run in GUI.
> > In Eclipse for example you have "Save automatically before build" check
> box
> >
> > On Tue, Nov 7, 2017 at 10:29 AM, Philippe Mouawad <
> > philippe.moua...@gmail.com> wrote:
> >
> > > Hello,
> > >
> > > We do popup a Save dialog when you first run a project without saving
> > > it, so maybe we should do the same here.
> > >
> > > Regards
> > >
> > >
> > > On Tue, Nov 7, 2017 at 8:56 AM, jmeter tea 
> wrote:
> > >
> > > > There were many issues where file was corrupted, specifically when
> > > > running on GUI mode, which means that jmx file can't be fixed to a
> > > > working condition,
> > > >
> > > > When running a Test Plan, sometimes GUI stuck and test plan can't be
> > > saved.
> > > >
> > > > Backup mechanism currently happens when clicking Save
> > > >
> > > > I suggest A flag  "Save before Run" which will save (and backup file)
> > > > before executing Run and therefore file will not be corrupted and can
> > > > be opened again.
> > > >
> > >
> > >
> > >
> > > --
> > > Cordialement.
> > > Philippe Mouawad.
> > >
> >
>
>
>
> --
> Cordialement.
> Philippe Mouawad.
>


Re: Enhance Backup - Save before Run flag

2017-11-07 Thread jmeter tea
Pop ups aren't a very friendly way of helping the user, especially when
it's for every run in GUI.
In Eclipse for example you have "Save automatically before build" check box

On Tue, Nov 7, 2017 at 10:29 AM, Philippe Mouawad <
philippe.moua...@gmail.com> wrote:

> Hello,
>
> We do popup a Save dialog when you first run a project without saving
> it, so maybe we should do the same here.
>
> Regards
>
>
> On Tue, Nov 7, 2017 at 8:56 AM, jmeter tea  wrote:
>
> > There were many issues where file was corrupted, specifically when
> > running on GUI mode, which means that jmx file can't be fixed to a
> > working condition,
> >
> > When running a Test Plan, sometimes GUI stuck and test plan can't be
> saved.
> >
> > Backup mechanism currently happens when clicking Save
> >
> > I suggest A flag  "Save before Run" which will save (and backup file)
> > before executing Run and therefore file will not be corrupted and can
> > be opened again.
> >
>
>
>
> --
> Cordialement.
> Philippe Mouawad.
>


Enhance Backup - Save before Run flag

2017-11-06 Thread jmeter tea
There were many issues where file was corrupted, specifically when
running on GUI mode, which means that jmx file can't be fixed to a
working condition,

When running a Test Plan, sometimes GUI stuck and test plan can't be saved.

Backup mechanism currently happens when clicking Save

I suggest A flag  "Save before Run" which will save (and backup file)
before executing Run and therefore file will not be corrupted and can
be opened again.


Test Action with Target All Threads doesn't stop next sampler

2017-10-30 Thread jmeter tea
When adding Test Action
 with
Stop/Stop Now action

You have Target options: All Threads/Current Thread

When choosing Current Thread in a multiple threads environment it stops and
don't continue further this Sampler

The problem is that when choosing *All Threads* Some threads execute other
sampler after than Test Action

It's very confusing, because I expect All Threads option to be more strict
than just Current Thread

In code I saw that in Current Threads it also stop current threads
context.getThread().stop();and in All Threads option it doesn't.

Is it a bug or a feature (adding grace period of stopping)?

For example Test Plan:

   - Thread Group (5 Threads)
  - Sampler1
  - Test Action Target: All Threads, Action Stop/Stop Now
  - Sampler2

Sampler 2 is execute only when Target: All Threads and not when Target:
Current Thread

Note: Also choosing Action Go to next loop iteration (Target field is
disabled) prevent Sampler2 to be executed


Upgrade Beanshell to 2.06b verson

2017-10-15 Thread jmeter tea
Beanshell released on 2016-02-18 Security update
In JMeter I see the Beanshell is 2.0b5 and not updated with 2.0b6
 version
How can I request such an update? should I open a bugzilla bug? I did see
such request exists.
https://github.com/beanshell/beanshell

Thank you


While controller documentation wrong

2017-10-10 Thread jmeter tea
About While Controller,

*http://jmeter.apache.org/usermanual/component_reference.html#While_Controller
*

The documentation mark its two parameters as Required = Yes although both
aren't required

Name isn't required and Condition can be empty:

   - blank - exit loop when last sample in loop fails


Re: switch controller documentation wrong

2017-10-09 Thread jmeter tea
Can it be jmeter tea?

On Tue, Oct 3, 2017 at 10:10 PM, Philippe Mouawad <
philippe.moua...@gmail.com> wrote:

> Hello,
> Thanks for report.
> Fixed in :
> http://svn.apache.org/viewvc?rev=1811025&view=rev
>
>
> Just out of curiosity and if it's not a secret, what's your name as we
> usually mention users who contribute on release notes ?
>
> Thanks
> Regards
>
>
>
> On Tue, Oct 3, 2017 at 12:29 PM, jmeter tea  wrote:
>
> > About Switch Controller,
> >
> > http://jmeter.apache.org/usermanual/component_reference.html#Switch_
> > Controller
> >
> > The documentation mark its two parameters as Required = Yes although both
> > aren't required
> >
> > Name isn't required and Switch Value default value is 0.
> >
>
>
>
> --
> Cordialement.
> Philippe Mouawad.
>


switch controller documentation wrong

2017-10-03 Thread jmeter tea
About Switch Controller,

http://jmeter.apache.org/usermanual/component_reference.html#Switch_Controller

The documentation mark its two parameters as Required = Yes although both
aren't required

Name isn't required and Switch Value default value is 0.


JMeter - open a jmx file from web

2017-09-28 Thread jmeter tea
I want to get the updated jmx files in 1 machine (get from source control
only once using trigger) and load it on different machines, Can I open in
JMeter a jmx file located in web?

I'm trying but failing (with different escaping) from
http://jmeter.apache.org/demos:

jmeter -t "http://jmeter.apache.org/demos/forEachTestPlan.jmx";

2017-09-28 09:09:53,527 ERROR o.a.j.JMeter: Failure loading test file
java.io.FileNotFoundException:
http:\jmeter.apache.org\demos\forEachTestPlan.jmx (The filename,
directory name, or volume label syntax is incorrect)
at java.io.FileInputStream.open0(Native Method) ~[?:1.8.0_144]
at java.io.FileInputStream.open(Unknown Source) ~[?:1.8.0_144]
at java.io.FileInputStream.(Unknown Source) ~[?:1.8.0_144]
at org.apache.jmeter.save.SaveService.loadTree(SaveService.java:423)
~[ApacheJMeter_core.jar:3.3 r1808647]
at org.apache.jmeter.JMeter.startGui(JMeter.java:386)
[ApacheJMeter_core.jar:3.3 r1808647]
at org.apache.jmeter.JMeter.start(JMeter.java:519)
[ApacheJMeter_core.jar:3.3 r1808647]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
~[?:1.8.0_144]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
~[?:1.8.0_144]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
~[?:1.8.0_144]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_144]
at org.apache.jmeter.NewDriver.main(NewDriver.java:248)
[ApacheJMeter.jar:3.3 r1808647]


Correlation between JMeter plugin to JMeter version

2017-08-22 Thread jmeter tea
JMeter plugins  doesn't work with every JMeter
version,

If my plugin doesn't work as Soap Sampler  with
JMeter 3.2,

Where can find correlation between JMeter plugin to JMeter version?

I didn't find any reference in forum
 or documentation
page.

Can such issues (not compatible) be written somewhere?