Return-Path: X-Original-To: apmail-jmeter-user-archive@www.apache.org Delivered-To: apmail-jmeter-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 998E8CA91 for ; Fri, 14 Nov 2014 22:58:08 +0000 (UTC) Received: (qmail 77121 invoked by uid 500); 14 Nov 2014 22:58:08 -0000 Delivered-To: apmail-jmeter-user-archive@jmeter.apache.org Received: (qmail 77080 invoked by uid 500); 14 Nov 2014 22:58:08 -0000 Mailing-List: contact user-help@jmeter.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "JMeter Users List" Delivered-To: mailing list user@jmeter.apache.org Received: (qmail 77069 invoked by uid 99); 14 Nov 2014 22:58:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Nov 2014 22:58:07 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of philippe.mouawad@gmail.com designates 209.85.223.170 as permitted sender) Received: from [209.85.223.170] (HELO mail-ie0-f170.google.com) (209.85.223.170) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Nov 2014 22:57:40 +0000 Received: by mail-ie0-f170.google.com with SMTP id tp5so19171734ieb.1 for ; Fri, 14 Nov 2014 14:57:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=CKnqS5Z4uLo9ibxzxGr8fVFain1ydqLqM2ZZzNGm+iw=; b=fWXvNwcjslPT4YXPT7FmKnkvRfaDb+QDEvJMUZ8IMevvOuGPe4Ef2adYC+NMigsajD vsW/B2v83MnWdTF3RVzanljkUYHPacq8b1mdSfOTfwPvhZhtNpZHsOwrXyFVFZ0lHU/Y 7Ud5b/RYTDCr6NSKd/C+EhdO6oR1W6F4RyYLcsXcwRTDEeWGjiZXQLfEJK1qFeWkcD99 ENb7OneOR5dEHheimz9EEVIoeTKoafuL4P2bM+MWhEUbE0RvL4IvRqfMWcHrDSje9hHk hyOGZ4p430PpOeBsz9csWZmMUFxzInMSByS6Wc4QwL2VzeR7PMv5X3SO5TYOUieYKME4 0d4w== MIME-Version: 1.0 X-Received: by 10.50.28.14 with SMTP id x14mr9525347igg.39.1416005859459; Fri, 14 Nov 2014 14:57:39 -0800 (PST) Received: by 10.42.102.131 with HTTP; Fri, 14 Nov 2014 14:57:39 -0800 (PST) In-Reply-To: References: Date: Fri, 14 Nov 2014 23:57:39 +0100 Message-ID: Subject: Re: Coding JMeter tests From: Philippe Mouawad To: JMeter Users List Content-Type: multipart/alternative; boundary=089e01538e3440ca440507d98e79 X-Virus-Checked: Checked by ClamAV on apache.org --089e01538e3440ca440507d98e79 Content-Type: text/plain; charset=ISO-8859-1 Hello, Very interesting discussion. thanks @Flavio for the nice words on JMeter :-) My 2 cents: - first your opinion on jmeter roadmap would be welcome, See https://www.mail-archive.com/dev@jmeter.apache.org/msg03444.html - to answer this request (if we decide it is worth doing it) we could first provide a public API (would be possible in shorter term) to create and run the test as for now there is no "official" API to do it - In the future a DSL (more work) could be a possible way. Inspired by ruby-jmeter and developed with Groovy which seems well suited for DSLs . Patches are welcome :-) Now regarding the discussion: - As a tester, I am convinced that GUI is really useful and mandatory, particularly when you are not the developer of the application under test, without it, correlation is hard. Some may say JMeter GUI is not sexy, IMHO it is not a serious argument but we take it into account and try to improve GUI , 2.12 version makes an important progress with the enhancement of HTTP Script Recorder and with UNDO/REDO Alpha feature but we still have bugs that need to be fixed to complete the work on this feature. - As a developer it is true that initially mastering the GUI put me in uncomfortable zone (as it is outside of my IDE), but learning it is really worth it. Also take tools like firebug, developers use them, they are not in their IDE but are highly used, so I am not sure about the IDE argument. - With DevOps success, it is possible that load testing is introduced very early in the development cycle and written by developers, in this cases having a DSL is interesting for coders, mainly for source versioning, so it is worth studying the feature. -- Regards. Philippe M. @philmdot On Fri, Nov 14, 2014 at 1:23 PM, Flavio Cysne wrote: > @sebb, Thanks to clarify this. > > My mistake. > > That's why I need to know better JMeter's source code. > > Glad to know this. > > 2014-11-13 22:32 GMT-03:00 sebb : > > > On 13 November 2014 12:54, Flavio Cysne wrote: > > > My 2 cents. > > > > > > I really love JMeter and I'll try to get this passion aside from my > > opinion. > > > > > > > > > 1. Developers are free to do whatever they can with JMeter. > > > > > > JMeter can test TCP, SOAP, JSF, .NET, common websites, Socket, Database > > > Queries, WebSocket (not from the core, but there is a plugin for this) > > and > > > many more (and even MycroStrategy flash reports. I made a script to > test > > it > > > using WebDriver). > > > > > > 2. JMeter gives you the opportunity to evolve itself by your hands > (make > > a > > > plugin) > > > > > > If there's a protocol you can't test because JMeter has no Sampler for > > it, > > > do yours. It's not an excuse to be "unhappy" with JMeter. If there's a > > > Sampler but it is not complete enough, fork it, do your upgrades and > > submit > > > back to community. > > > > > > 3. Developers can do logic programming in JMeter test script. > > > > > > There are plenty of ways you can customize your script logic. The way > you > > > use Logic Controllers, and programmable Samplers like BeanShell > Sampler, > > OS > > > Process Sampler or BSF Sampler, is what you need to make it work. > > > > > > Free your mind!!! > > > > > > I've been using JMeter for performance tests since 4 years ago, and > > > capturing 2 scripts, in average, every week for different test > scenarios. > > > Some of those scripts had a complex logic to fulfill (test workflow > > > requirements). Sometimes I had to write down the logic and make tests > > using > > > different JMeter components to know exactly what I had to use to > achieve > > > the test requirements. > > > > > > You have to understand how JMeter components interact to use them > > properly. > > > > > > About this link > > > > > > http://blazemeter.com/blog/5-ways-launch-jmeter-test-without-using-jmeter-gui > > , > > > I use JMeter Ant task and took some tests with JMeter Maven Plugin. Ant > > > task is more easily customized than Maven plugin. When I tested JMeter > > > Maven plugin it was brandy new and have less documentation than now. > I'll > > > take a look again to know If I hadn't used its full potential. > > > > > > I can't say that JMeter has no cons, all tools have theirs. > > > What I can say about that is JMeter source code is a bit tricky, but > I've > > > not dedicated enough time to understand it. > > > > Regarding: > > > > > My opinion is that JMeter GUI classes and classes used during non-GUI > > test > > > execution should be taken apart so it could use less memory for non-GUI > > > tests. > > > > This is already the case. > > The GUI is built from separate classes that are not loaded during > > non-GUI test runs. > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org > > For additional commands, e-mail: user-help@jmeter.apache.org > > > > > -- Cordialement. Philippe Mouawad. --089e01538e3440ca440507d98e79--