Return-Path: Delivered-To: apmail-jakarta-jmeter-user-archive@www.apache.org Received: (qmail 59470 invoked from network); 1 Aug 2006 21:21:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 1 Aug 2006 21:21:02 -0000 Received: (qmail 75003 invoked by uid 500); 1 Aug 2006 21:21:00 -0000 Delivered-To: apmail-jakarta-jmeter-user-archive@jakarta.apache.org Received: (qmail 74990 invoked by uid 500); 1 Aug 2006 21:21:00 -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 74976 invoked by uid 99); 1 Aug 2006 21:21:00 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Aug 2006 14:21:00 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of amelaao@gmail.com designates 64.233.166.180 as permitted sender) Received: from [64.233.166.180] (HELO py-out-1112.google.com) (64.233.166.180) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Aug 2006 14:20:58 -0700 Received: by py-out-1112.google.com with SMTP id t32so1346888pyc for ; Tue, 01 Aug 2006 14:20:38 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=JL8qfrkw3k5DRtIsDJyFi5e1bPEF5cLUqcrefCDJaMcgxuydhaeAFH0pnX9IaBAnGAqYW1Uw409GsrSPZI6gPz5CvCYqBHcBZfVxYqkEV/33+rQbacAh1R72p1tbWD08swCwq5cWe7ACUBqfhtNfxBov6g4wPLv0r04eEdYcekY= Received: by 10.65.83.18 with SMTP id k18mr248496qbl; Tue, 01 Aug 2006 14:20:38 -0700 (PDT) Received: by 10.65.186.16 with HTTP; Tue, 1 Aug 2006 14:20:38 -0700 (PDT) Message-ID: Date: Tue, 1 Aug 2006 16:20:38 -0500 From: amelaao To: "JMeter Users List" Subject: Re: User Defined variable and BeanShell function In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_4059_32951971.1154467238176" References: <5602766.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_4059_32951971.1154467238176 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline so I would like my parameter productAttributes to get its value from this function string I created, but still no results: ${__BeanShell(String str = vars.get("Attributes"); String newstr = str.replace("<"\," wrote: > > To explain this a bit more. This is a sequence: > 1. Variable Attributes is returned from a RegEx in a step before. > 2. I have a Soap RPC Sampler with a preprocessor - User Parameters. This > parameter NewAttributes needs to be populated with whatever BeanShell > function returns in order for that Soap RPC Request to form properly. > > > > On 8/1/06, Yanroy wrote: > > > > > > I haven't tried this, and I don't really know what I'm talking about as > > I'm > > new to beanshell, but I suspect you want to use vars.get("Attributes"} > > and > > then vars.put("Attributes", newstr) to replace the value in Attributes > > with > > your new one. Or if you're just trying to use it immediately without > > storing it, perhaps just returning it like you are would work (that > > would > > make sense, but I'm not familiar with that syntax). > > -- > > View this message in context: http://www.nabble.com/User-Defined-variable-and-BeanShell-function-tf2036135.html#a5602766 > > > > Sent from the JMeter - User forum at Nabble.com . > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org > > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org > > > > > > > -- > Regards, > Amela > -- Regards, Amela ------=_Part_4059_32951971.1154467238176--