Return-Path: Delivered-To: apmail-jakarta-jmeter-user-archive@www.apache.org Received: (qmail 88439 invoked from network); 24 Nov 2004 02:25:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 24 Nov 2004 02:25:20 -0000 Received: (qmail 68252 invoked by uid 500); 24 Nov 2004 02:25:15 -0000 Delivered-To: apmail-jakarta-jmeter-user-archive@jakarta.apache.org Received: (qmail 68200 invoked by uid 500); 24 Nov 2004 02:25:14 -0000 Mailing-List: contact jmeter-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: 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 68186 invoked by uid 99); 24 Nov 2004 02:25:14 -0000 X-ASF-Spam-Status: No, hits=1.5 required=10.0 tests=DNS_FROM_RFC_POST,MSGID_FROM_MTA_HEADER,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of aerosteak@hotmail.com designates 65.54.186.53 as permitted sender) Received: from [65.54.186.53] (HELO hotmail.com) (65.54.186.53) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 23 Nov 2004 18:25:11 -0800 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Tue, 23 Nov 2004 18:25:02 -0800 Message-ID: Received: from 67.70.165.47 by by16fd.bay16.hotmail.msn.com with HTTP; Wed, 24 Nov 2004 02:24:41 GMT X-Originating-IP: [67.70.165.47] X-Originating-Email: [aerosteak@hotmail.com] X-Sender: aerosteak@hotmail.com From: "Eric Laverge" To: jmeter-user@jakarta.apache.org Bcc: Subject: Getting Started : My Java Request does not show up in combobox Date: Wed, 24 Nov 2004 02:24:41 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 24 Nov 2004 02:25:02.0866 (UTC) FILETIME=[CDBFF720:01C4D1CC] X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hello, I am trying to building a Simple Java Request to send JMS messages to an application. I read the JMeter user documents, the FAQ and now searching this Mailling list. I still cannot see my AbstractJavaSamplerClient Class into the Java Request Combo box. I did follow the document JMeter Extension Scenario (7.0 Install your extension) by setting the search_paths property. My class compile all right. I did a jar and drop it under the �/lib/ext� folder (like in the doc). Is there issues with the classpath or with the search_paths property ? Is there something more to do then implementing the JavaSamplerClient interface or I have to edit the GuiTest.jmx ? Thank you PS : Please don�t tell me to look a SleepTest sample. //--------- Sample Java Request public class HvSampler extends AbstractJavaSamplerClient { static private Arguments _arguments; static { _arguments = new Arguments(); _arguments.addArgument("myArg1",",myValue1"); _arguments.addArgument("myArg2",",myValue2"); } public Arguments getDefaultParameters() { return _arguments; } public void setupTest(JavaSamplerContext context) { System.out.println("inside setUp"); } public SampleResult runTest(JavaSamplerContext context) { System.out.println("inside runTest"); printContext(context); try { Thread.sleep(2000); } catch (InterruptedException e){ e.printStackTrace();} return getSampleResult(); } public void teardownTest(JavaSamplerContext context) { System.out.println("inside teadDown"); } private SampleResult getSampleResult() { SampleResult r = new SampleResult(); r.setSuccessful(true); r.setResponseMessage("coucou"); return r; } private void printContext(JavaSamplerContext ctx) { Iterator iterator = ctx.getParameterNamesIterator(); System.out.println("SamplerContext :"); while (iterator.hasNext()) { String name= (String) iterator.next(); String value = ctx.getParameter(name); System.out.println(name+ "=" + value); } System.out.println(""); } } --------------------------------------------------------------------- To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: jmeter-user-help@jakarta.apache.org