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 D4FCC18135 for ; Mon, 20 Jul 2015 05:04:19 +0000 (UTC) Received: (qmail 79934 invoked by uid 500); 20 Jul 2015 05:04:19 -0000 Delivered-To: apmail-jmeter-user-archive@jmeter.apache.org Received: (qmail 79892 invoked by uid 500); 20 Jul 2015 05:04:19 -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 79881 invoked by uid 99); 20 Jul 2015 05:04:19 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Jul 2015 05:04:19 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id BBAAFD60A6 for ; Mon, 20 Jul 2015 05:04:18 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.898 X-Spam-Level: ** X-Spam-Status: No, score=2.898 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id gJy1-2JvDmSH for ; Mon, 20 Jul 2015 05:04:18 +0000 (UTC) Received: from mail-ie0-f175.google.com (mail-ie0-f175.google.com [209.85.223.175]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id AF2024299A for ; Mon, 20 Jul 2015 05:04:17 +0000 (UTC) Received: by iebmu5 with SMTP id mu5so110221660ieb.1 for ; Sun, 19 Jul 2015 22:04:17 -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=u5H6Ts2BTv0FUULXlihS7AlhJrrmgIW4qG7h/iqTx6A=; b=DiRpkDFcZr74yk7gL/qMfXvtluNjA5Z5veGthsRgSseNOU88akoJz1lrcxNVNTO6Vd zk7CaKPqjW/wNuHVysOsFG7ZQShqQv1Lsrk6SIRddb79AuKjGkEajkpq4Jcvn7a/m2MP mpxQX96m477Nj2WvVQkyq4i1o9053Vw4qfcJzwPXU1Esrh3vkL+gJgbROCXy2zxLahvw oM12bfsmpQVputMZpnbxYFaciV1rd/9Jsnx2WTa13G7rfq62ISbA9OTRLJOMxVxgI0xU 4Nroge0r9hQPOubaBoLgW0YeFSJ7nkvXmISVqQuIYIWo9gRu2qPHYfccgvqvWHsurQqL J52A== MIME-Version: 1.0 X-Received: by 10.107.169.10 with SMTP id s10mr31423179ioe.138.1437368657347; Sun, 19 Jul 2015 22:04:17 -0700 (PDT) Received: by 10.36.121.213 with HTTP; Sun, 19 Jul 2015 22:04:17 -0700 (PDT) In-Reply-To: References: Date: Sun, 19 Jul 2015 22:04:17 -0700 Message-ID: Subject: Re: How to use shared variables in Jmeter. From: Deepak Shetty To: JMeter Users List Content-Type: multipart/alternative; boundary=001a11425bd03b8f27051b477833 --001a11425bd03b8f27051b477833 Content-Type: text/plain; charset=UTF-8 Hi >Can we store the generated policy number at run time & pass it to second script. In general you can achieve this. Im assuming you mean Two separate Jmeter scripts running as two separate JMeter instances i.e. two separate processes. (If you mean two separate thread groups or two separate threads within the same JMeter, you can get an easier answer). You can't *pass* data in the sense you probably mean - However you can have one of the scripts write to a shared resource and you can have the other script read from the shared resource. A shared resource that easily lets you do this is any Database (though you can use anything that is shared and accessible via a different process - even files, or JMS or ) - so you'd just create a table and write data using one JMeter script listener and read it from the other one - You get a few NoSQL stores that perform quite well too if thats a concern. You do have to solve your problems typical in this kind of Consumer - Producer systems (What if the Consumer is too fast /slow . Does a producer need to be linked to particular consumer etc) - but that depends on your use case regards deepak On Sun, Jul 19, 2015 at 5:15 AM, Pravesh Prajapati < prajapati.pravesh@gmail.com> wrote: > Hi team > > 1. I have 2 scripts and I am executing both sane time. > now the case is that my script-1 is generating policy no and I want to pass > this policy no in script 2 at run time not by parameterization. > Is this is possibel in jmeter. > > Can we store the generated policy number at run time & pass it to second > script. > > > -- > Regards, > Pravesh prajapati. > Mob:-9702600170 > --001a11425bd03b8f27051b477833--