From user-return-47434-archive-asf-public=cust-asf.ponee.io@jmeter.apache.org Sun Mar 10 11:09:15 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id BE384180621 for ; Sun, 10 Mar 2019 12:09:14 +0100 (CET) Received: (qmail 22581 invoked by uid 500); 10 Mar 2019 11:09:13 -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 22570 invoked by uid 500); 10 Mar 2019 11:09:13 -0000 Delivered-To: apmail-jakarta-jmeter-user@jakarta.apache.org Received: (qmail 22567 invoked by uid 99); 10 Mar 2019 11:09:13 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 10 Mar 2019 11:09:13 +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 2AE4EC30E6 for ; Sun, 10 Mar 2019 11:09:13 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.8 X-Spam-Level: * X-Spam-Status: No, score=1.8 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=go-mmt.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 1fQ37yOva3j9 for ; Sun, 10 Mar 2019 11:09:10 +0000 (UTC) Received: from mail-ed1-f44.google.com (mail-ed1-f44.google.com [209.85.208.44]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 96BB960DA2 for ; Sun, 10 Mar 2019 11:02:16 +0000 (UTC) Received: by mail-ed1-f44.google.com with SMTP id h58so1573183edb.5 for ; Sun, 10 Mar 2019 04:02:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=go-mmt.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=t/dKA+mpfOWgkm/Bpf1vpqq5nwCroyuEEFQMf3UXesA=; b=darp+mOzCKW8bDgK/0y1flCXB51DVs1ASc5PTYTStSpJXcE+PrMh+ZEDPieCwUY3kT tbPAVW+SXaIsmJA4Bru0x2NgJbrIN357RQaVscm5laanC/qZ7ol16BtqEp1prE1Hx756 mxTdg09+/OfPTIYWo5uDmAMbPX4iuCkF+axGQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=t/dKA+mpfOWgkm/Bpf1vpqq5nwCroyuEEFQMf3UXesA=; b=YxJCyvMWBfATc1VsbtBCYFytSeqova67OEyo2zeYglOJ7tr/OZkoI6vsAN3T8jk2XC s4CFaqBnL6UyjNO6ylqpWrd8fL2ySxAPdl0y3NrTvPS1PftArQR1g1OhicxifG0J7dnX eDF93OYOAchRDO/TvyZk1t2alITnyW8yYI8ws0IghANwi2MR4HhKxwMe67iXJxKzPJl8 OBmJaqwp3vZanJOsKHd5eVLWEoJC+NyWubsLAXAENZkrzLvQkCbO5OYUEy2Y/hjUTupJ WuGB40JG2mBMT1kqOE56SLxfGMCyDI5cm8AUrytEGvQ/jwkCITG5/4n5ai9YYogdmI1p 6etA== X-Gm-Message-State: APjAAAXicZHPHZPea0IVLEImEA6peuZlLc563QUt7gEdkLr6/59lvDeQ /9Hz81u7AxIuPaNonGL0SsymySFGf9euxTiOAPo3kE6rfa6q7/v6nahdHHtxD6cpFvQxC7V630E xiO8hnB1eRXuqQgbFDv61dkKCHQGhnro+tIfM X-Google-Smtp-Source: APXvYqzR/BcqU8Ue2sndSOHqKM9qXAEDEjb/ZUtnKKPutERyD20hzhY0O12sBV4n5Ct637bXMJBb0kxKjD/yTEG0S6Q= X-Received: by 2002:a17:906:51cd:: with SMTP id v13mr3619006ejk.71.1552215730157; Sun, 10 Mar 2019 04:02:10 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Prateek Dua Date: Sun, 10 Mar 2019 16:31:58 +0530 Message-ID: Subject: Re: Generate User Id dynamically To: JMeter Users List Cc: JMeter Users List Content-Type: multipart/alternative; boundary="0000000000003644e00583bb639e" --0000000000003644e00583bb639e Content-Type: text/plain; charset="UTF-8" Ok..got it, thanks On Sun, Mar 10, 2019 at 3:27 AM Deepak Shetty wrote: > If you are using User{__threadNum} and running say 10 threads , you will > get User1...User10. If you stop the test and run it again - or if you let > the thread group have multiple iterations - or if you decide to distribute > your test across multiple JMeter machines , then it will again generate > User1...User10 (i.e. uniqueness is only within a single iteration on a > single JVM) - > > On Sat, Mar 9, 2019 at 10:45 AM Prateek Dua > wrote: > > > pls explain this in a bit detail. > > > > On Sat, Mar 9, 2019 at 11:24 PM Deepak Shetty wrote: > > > > > Note this doesnt mean if you run the test 2 times it will generate the > > same > > > numbers > > > > > > On Sat, Mar 9, 2019 at 3:51 AM Prateek Dua > > wrote: > > > > > > > Thank you guys, > > > > > > > > I used the function {__threadNum} to input thread id as user id. > > > > > > > > On Thu, Mar 7, 2019 at 8:17 PM Indu Gupta > > > > wrote: > > > > > > > > > Hi, > > > > > > > > > > You can add below lines in body Data of your request : > > > > > > > > > > { > > > > > "username": user${__Random(0,100)} > > > > > > > > > > } > > > > > > > > > > This will generate user as user1,user0, user 2 etc. Random number > of > > > > users > > > > > 0 and 100. > > > > > > > > > > > > > > > > > > > > Regards, > > > > > Indu Gupta > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > From: Prateek Dua [mailto:prateek.dua@go-mmt.com] > > > > > Sent: 07 March 2019 12:40 > > > > > To: JMeter Users List ; JMeter > Users > > > > List > > > > > > > > > > Subject: Re: Generate User Id dynamically > > > > > > > > > > I meant-- via CSV we have to provide users in sheet & then get them > > > .But > > > > > is there any mechanism in Jmeter via we can use directly to create > > user > > > > id > > > > > dynamically & pass as a variable in script. > > > > > > > > > > On Thu, Mar 7, 2019 at 8:33 AM Prateek Dua > > > > > wrote: > > > > > > > > > > > Hey guys, > > > > > > > > > > > > Is there any way to generate unique user ids dynamically to use > > them > > > > > > in a script as a variable. > > > > > > > > > > > > CSV is the 1 approach to do that but just want to know is there > any > > > > > > mechanism to do that? > > > > > > -- > > > > > > sent via device, pls ignore typos. > > > > > > > > > > > > > > > > -- > > > > > > > > > > > > > > > ::DISCLAIMER:: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ---------------------------------------------------------------------------------------------------------------------------------------------------- > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > This message is intended only for the use of the addressee and may > > > > contain > > > > > information that is privileged, confidential and exempt from > > disclosure > > > > > under applicable law. If the reader of this message is not the > > intended > > > > > recipient, or the employee or agent responsible for delivering the > > > > message > > > > > to the intended recipient, you are hereby notified that any > > > > dissemination, > > > > > distribution or copying of this communication is strictly > prohibited. > > > If > > > > > you have received this e-mail in error, please notify us > immediately > > by > > > > > return e-mail and delete this e-mail and all attachments from your > > > > system. > > > > > > > > > > > > > -- > > > > > > > > > > > > ::DISCLAIMER:: > > > > > > > > > > > > > > > > > > > > > > ---------------------------------------------------------------------------------------------------------------------------------------------------- > > > > > > > > > > > > > > > > > > > > > > > > This message is intended only for the use of the addressee and may > > > > contain information that is privileged, confidential and exempt from > > > > disclosure under applicable law. If the reader of this message is not > > the > > > > intended recipient, or the employee or agent responsible for > delivering > > > > the > > > > message to the intended recipient, you are hereby notified that any > > > > dissemination, distribution or copying of this communication is > > strictly > > > > prohibited. If you have received this e-mail in error, please notify > us > > > > immediately by return e-mail and delete this e-mail and all > attachments > > > > from your system. > > > > > > > > > > > -- > > > > > > ::DISCLAIMER:: > > > > > > > > > ---------------------------------------------------------------------------------------------------------------------------------------------------- > > > > > > > > > > > > This message is intended only for the use of the addressee and may > > contain information that is privileged, confidential and exempt from > > disclosure under applicable law. If the reader of this message is not the > > intended recipient, or the employee or agent responsible for delivering > > the > > message to the intended recipient, you are hereby notified that any > > dissemination, distribution or copying of this communication is strictly > > prohibited. If you have received this e-mail in error, please notify us > > immediately by return e-mail and delete this e-mail and all attachments > > from your system. > > > -- ::DISCLAIMER:: ---------------------------------------------------------------------------------------------------------------------------------------------------- This message is intended only for the use of the addressee and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this e-mail in error, please notify us immediately by return e-mail and delete this e-mail and all attachments from your system. --0000000000003644e00583bb639e--