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 D658992EF for ; Thu, 2 Aug 2012 20:22:00 +0000 (UTC) Received: (qmail 95327 invoked by uid 500); 2 Aug 2012 20:22:00 -0000 Delivered-To: apmail-jmeter-user-archive@jmeter.apache.org Received: (qmail 95277 invoked by uid 500); 2 Aug 2012 20:22:00 -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 95268 invoked by uid 99); 2 Aug 2012 20:22:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Aug 2012 20:22:00 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FSL_RCVD_USER,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of hutieuxao@gmail.com designates 209.85.217.171 as permitted sender) Received: from [209.85.217.171] (HELO mail-lb0-f171.google.com) (209.85.217.171) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Aug 2012 20:21:53 +0000 Received: by lbol12 with SMTP id l12so907131lbo.2 for ; Thu, 02 Aug 2012 13:21:32 -0700 (PDT) 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=hyeJw0CIDcI4vkqXFRnM+ZIiY/PNhHoJZHHre1hWO3k=; b=Cp3rt/qoVb1R08xNdj5P3cZD8QJV926bosVtA2Ct9ff+U5Qb3UVcpWv1Jk1ziPOW/t Onvm2Crhg67kOFCYveKEIl6ApQxvhyX1ND321vQ/oQR3N1quAOWFvoHxqqnzPVaM1ILR ejPXULSauFZp7GPbUfBo6/ty4PYFYkxFpnty9f35W9riW382KT/qJ8ykHvybjLK4bcLz f7Vbb2V5ABIQXXsmNpxB2sXO+C75brb/rkygfqFfsz0trdiMXxQRiWt6NEPH78wOUMEr PrPGZjSYeaqvYDmo+09KBOxEgljg1jmhFlPJovUUOG2xDrbfiONL1FpYpDHGf5wvnWbz P7GA== MIME-Version: 1.0 Received: by 10.152.48.37 with SMTP id i5mr22510696lan.36.1343938891860; Thu, 02 Aug 2012 13:21:31 -0700 (PDT) Received: by 10.112.27.3 with HTTP; Thu, 2 Aug 2012 13:21:31 -0700 (PDT) In-Reply-To: References: Date: Fri, 3 Aug 2012 03:21:31 +0700 Message-ID: Subject: Re: Write responses to file in custom format using Java listener? From: Tai Tran To: JMeter Users List Content-Type: multipart/alternative; boundary=bcaec55239803fc91104c64e28ae X-Virus-Checked: Checked by ClamAV on apache.org --bcaec55239803fc91104c64e28ae Content-Type: text/plain; charset=ISO-8859-1 I'm not feeling secure writing scripting language (no type safe, no checking whatsoever). Can I write a traditional java class with main() which is the entry point where JMeter passes in the response data for me to process in the way I like? In other words, I don't know how JMeter gives the input to my Java listener class? On Fri, Aug 3, 2012 at 2:08 AM, sebb wrote: > On 2 August 2012 19:30, Tai Tran wrote: > > Can I write a listener in pure Java language to process responses from > > JMeter to write into file(s) in my own format? > > Yes. > > > I see JMeter supports JSR223 > > Listener with various languages options (including java), but there is > > detailed no doc on that. > > The variables that are made available to the script are shown on the > GUI screen and are documented under the BSF Listener. > > > Please help, thanks in advance. > > > > Thanks, > > Tai > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org > For additional commands, e-mail: user-help@jmeter.apache.org > > --bcaec55239803fc91104c64e28ae--