Return-Path: Delivered-To: apmail-jakarta-jmeter-user-archive@www.apache.org Received: (qmail 28208 invoked from network); 5 Jul 2005 05:16:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 Jul 2005 05:16:33 -0000 Received: (qmail 19056 invoked by uid 500); 5 Jul 2005 05:16:32 -0000 Delivered-To: apmail-jakarta-jmeter-user-archive@jakarta.apache.org Received: (qmail 18591 invoked by uid 500); 5 Jul 2005 05:16:30 -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 18576 invoked by uid 99); 5 Jul 2005 05:16:30 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Jul 2005 22:16:30 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [164.164.151.8] (HELO param.aztec.soft.net) (164.164.151.8) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Jul 2005 22:16:30 -0700 Received: from param.aztec.soft.net (localhost.localdomain [127.0.0.1]) by param.aztec.soft.net (8.12.8/8.11.2) with ESMTP id j6551m2B024529 for ; Tue, 5 Jul 2005 10:31:50 +0530 Received: from maya.aztec.soft.net (maya.aztec.soft.net [164.164.151.5])by param.aztec.soft.net (8.12.8/) with ESMTP id j6551eAj024467for ; Tue, 5 Jul 2005 10:31:42 +0530 Received: by maya.aztec.soft.net with Internet Mail Service (5.5.2657.72)id ; Tue, 5 Jul 2005 10:48:20 +0530 Message-ID: <584DE893B0E08F4B9748E295029F1E970187FD37@maya.aztec.soft.net> From: Anurodh Jain To: jmeter-user@jakarta.apache.org Subject: FW: Beanshell Scripting Date: Tue, 5 Jul 2005 10:48:20 +0530 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) Content-Type: text/plain X-imss-version: 2.028 X-imss-result: Passed X-imss-scores: Clean:99.90000 C:2 M:3 S:5 R:5 X-imss-settings: Baseline:1 C:1 M:1 S:1 R:1 (0.0000 0.0000) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N -----Original Message----- From: Anurodh Jain Sent: Monday, July 04, 2005 4:57 PM To: JMeter Users List Subject: RE: Beanshell Scripting thankx john, thats should work. If I wanna obtain the number of threads so I would just do : var.get("num_threads") right. One more thing I wanna know is : If i am using a Beanshell script to test an application, Is there is way where I can time only the selective part of the Script for Load testing. I want only some part of the the beanshell script for testing the load generated by my application. How can we go about dong this? Any idea. With Regards Anurodh -----Original Message----- From: Sweet-Escott, John [mailto:john.sweetescott@gb.unisys.com] Sent: Monday, July 04, 2005 3:01 PM To: JMeter Users List Subject: RE: Beanshell Scripting Try this import org.apache.jmeter.threads.JMeterContext; import org.apache.jmeter.threads.JMeterContextService; import org.apache.jmeter.threads.JMeterVariables; JMeterContext jmctx = JMeterContextService.getContext(); JMeterVariables vars = jmctx.getVariables(); fooval = vars.get("foo"); vars.put("bar","barval"); John --------------------------------------------------------------------- To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: jmeter-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: jmeter-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: jmeter-user-help@jakarta.apache.org