Return-Path: Delivered-To: apmail-jakarta-jmeter-user-archive@www.apache.org Received: (qmail 10572 invoked from network); 20 Oct 2008 21:02:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Oct 2008 21:02:10 -0000 Received: (qmail 15464 invoked by uid 500); 20 Oct 2008 21:02:11 -0000 Delivered-To: apmail-jakarta-jmeter-user-archive@jakarta.apache.org Received: (qmail 15437 invoked by uid 500); 20 Oct 2008 21:02:11 -0000 Mailing-List: contact jmeter-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "JMeter Users List" Reply-To: "JMeter Users List" Delivered-To: mailing list jmeter-user@jakarta.apache.org Received: (qmail 15426 invoked by uid 99); 20 Oct 2008 21:02:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Oct 2008 14:02:11 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: unknown ipv4:60.242.164.194 (athena.apache.org: encountered unrecognized mechanism during SPF processing of domain of achadszinow@squiz.net) Received: from [60.242.164.194] (HELO extranet.squiz.net) (60.242.164.194) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Oct 2008 21:00:59 +0000 Received: from [192.168.0.198] (198.squiz.net [192.168.0.198]) by extranet.squiz.net (Postfix) with ESMTP id 61D27148BA8 for ; Tue, 21 Oct 2008 08:01:06 +1100 (EST) Message-ID: <48FCF1CC.9090401@squiz.net> Date: Tue, 21 Oct 2008 08:02:04 +1100 From: Anthony Chadszinow User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: JMeter Users List Subject: Re: creating simple GUI with JMeter functionalities References: <621ceda70810201332j3fb83d3eqf653e52926d419f3@mail.gmail.com> In-Reply-To: <621ceda70810201332j3fb83d3eqf653e52926d419f3@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi Frank, I don't know about GUI's but you could pretty much achieve the same functionality with batch programming/bash script, Jmeter CLI mode using parameters and having Jmeter setup to log results to a CVS file then having a spreadsheet which could pull the results in and graph them the way you want. I'm no expert with the last step but it's definitely possible to write a batch/bash script which users could execute & ask questions and then trigger Jmeter CLI with the answers passed to it. Batch example for triggering jmeter passing in a variable which is good for Windoz - CALL jmeter_ap\bin\jmeter.bat -n -t test_plan.jmx -Jthreads=%thread_count% Bash script example which is good for Linux/OSX jmeter -n -t matrix_tests/Load_testing_v0.3_working.jmx -Jthreads=$thread_count So that's triggering Jmeter in your script. Asking the questions you'll have to do your research on. I don't have an example lying around but it's definitely possible in both batch and bash scripts. In batch programming I think CHOICE is a Vista feature that can be used. There are also batch helper programs which enhance the capabilities of batch programs [or at least there was back around 1994 when I was first playing with batch programs]. Bash ask question example - echo -ne "How many threads? " read threadcount In Jmeter to get the value of a property like thread count you would do this ${__P(thread_count)} Logging to results to file is just settings in the operator. I used CALL in the batch program example so execution would return to the batch program after jmeter closes. At this step you might want to copy the results somewhere or even open up Excel with the results in it automatically. I know this isn't exactly what you are after so if it helps then great and if it doesn't then good luck. Chad Frank Chessman wrote: > Hi, > I would like to ask you, if you have some experiences creating simple GUI > with JMeter functionalities. > > I want to create it in a very simple way for some non-IT colleges. Idea is > to have 3 Tabbed Panes - after start of GUI, they will see 1st pane and will > be able to set just values like Number of Threads (users) or choose from the > list, which web page to test (I will have pre-defined jmx for each option) > and after clicking Next, it will automatically run the test and switch to > 2nd pane, where they will see Graph Results or 3rd pane with Summary Report. > > Sorry for bothering you, I could not find it anywhere on the internet or in > some past email threads. If it was already discussed, please link me to some > year/thread name, where I can find it. > > I am quite new to Java, for building GUIs I use NetBeans 6.1. > > Thanks a lot! > > Frank > > -- Anthony Chadszinow MySource Classic Lead Developer Squiz 92 Jarrett St Leichhardt, Sydney NSW, Australia 2040 t: 13000 SQUIZ ( Support ) t: 8507 9900 / 1300 130 661 f: 8507 9988 w: www.matrix.squiz.net w: www.squiz.net Sydney | Melbourne | Canberra | Hobart | Wellington | London Open Source - Own it - Squiz.net ---------------------------------------------------- IMPORTANT:This email (and any attachments) is commercial-in-confidence and or may be legally privileged and must not be forwarded, copied or shared without express permission from Squiz. If you are not the intended recipient, you may not legally copy, disclose or use the contents in any way and you should contact squiz@squiz.net immediately and destroy this message and any attachments. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: jmeter-user-help@jakarta.apache.org