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 E108F18AC2 for ; Mon, 5 Oct 2015 13:14:55 +0000 (UTC) Received: (qmail 89141 invoked by uid 500); 5 Oct 2015 13:14:55 -0000 Delivered-To: apmail-jmeter-user-archive@jmeter.apache.org Received: (qmail 89106 invoked by uid 500); 5 Oct 2015 13:14:55 -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 89095 invoked by uid 99); 5 Oct 2015 13:14:55 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Oct 2015 13:14:55 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id CB041180992 for ; Mon, 5 Oct 2015 13:14:54 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.299 X-Spam-Level: *** X-Spam-Status: No, score=3.299 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=3, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001] autolearn=disabled Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id xVHJK8yxddra for ; Mon, 5 Oct 2015 13:14:52 +0000 (UTC) Received: from mail-io0-f178.google.com (mail-io0-f178.google.com [209.85.223.178]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 9AD9420756 for ; Mon, 5 Oct 2015 13:14:52 +0000 (UTC) Received: by iofh134 with SMTP id h134so184874251iof.0 for ; Mon, 05 Oct 2015 06:14:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=BDvx/HAYxshK8oIXS8Vmh3/cv/y61+TGGBAy0lYUDjo=; b=Q+vYklkyGBASCFFypQ9/gGudhm592QqX98uoTlq29Dl1zeR23cGzmatQlO/9qOsrjt MPALjMdUGs78wxEDTnSiZJKSAM+bDyn0MsG7n6qKkuirr2ktOo4TvK/X+Rl4CaVaMseH nckUD4CR9oymgwg4r7VQ5h1SfRT1yhy31XYAiNyMHc0C6R1RKGWaemfGX2ehg3rxE1sB ZGyad2CY2WBBmyRTKgLRjHKEyijcDAh4epDOxoz3RicOmWl9kFEVQY4DWkpQ8nZ0QB4u 9ftkSkKxFBGovSK4BqSwK9icRWyh5oegmDgTRJl4zD/BY7lbYkieKe/sCjiePa6i6jxj LuFw== X-Gm-Message-State: ALoCoQn2ccHbJT9v/M83Hx54U0CcX5uZ7jHzQzKnjwGGT6A4h3sbq9qVNCxurSnELpS4R4rpxQTW MIME-Version: 1.0 X-Received: by 10.107.11.154 with SMTP id 26mr31995343iol.105.1444050886340; Mon, 05 Oct 2015 06:14:46 -0700 (PDT) Received: by 10.79.12.200 with HTTP; Mon, 5 Oct 2015 06:14:46 -0700 (PDT) Received: by 10.79.12.200 with HTTP; Mon, 5 Oct 2015 06:14:46 -0700 (PDT) In-Reply-To: References: Date: Mon, 5 Oct 2015 15:14:46 +0200 Message-ID: Subject: Re: Plugin to automatically transfer resource files (csvs) from controller to injectors From: Sergio Boso To: JMeter Users List Content-Type: multipart/alternative; boundary=001a113f7e7c1e543905215b4c10 --001a113f7e7c1e543905215b4c10 Content-Type: text/plain; charset=UTF-8 Hi I had same issue, but solved differently by using a central Db with Redis. I think it is much better approach, more flexible and scalable. This can support either circular lists ( e.g. user info) and use-only-once data. You can use the plugin from Jmeter - plugin ( not so complete anyway) or develop your own integration, which is quite simple any way. Regards Sergio Boso Sergio Boso cell. 335 7243 445 Hi, When carrying out performance load testing on JMeter, we often set up a controller and multiple injectors and use CSV files as data sources. We then have to manually copy each CSV file to each injector. In cases where we don't want the same data being used by multiple injectors we also have to split the csv up into separate files, copy each file to a different injector etc. It feels like something that we should automate to save time and avoid human error. Requirements: - Automate copying csv files from controller to injects before testing begins - No test should begin until all csvs have been copied (to avoid lag for later injectors) - The file transfer should be automatically triggered when the test is started (to avoid human error in forgetting to do it) - It should be possible to split a CSV between injectors so that lines are evenly shared. So my question is: *Is it possible for me to do this purely by writing a plugin? If so, what kinds of objects would I be looking at creating and whereabouts in the code is/are the method call(s) into it that I'd be using?* Looking at the code in DistributedRunner.start() and ClientJMeterEngine.runTest(), I can't see any hooks I could use to execute plugin code after starting the test run but before running other steps. Unfortunately, using the HashTreeTraversers in ClientJMeterEngine.runTest() would result in files being transferred on one Injector after testing had started on another injector, potentially introducing lag between tests. Any help much appreciated and if this is not currently possible I'll give the dev list a try! Many thanks, Jonathan Mew -- *Before acting on this email or opening any attachments please read the important notice at the end of this email.* Passionate about Testing, Excited by Technology ------------------------------ This communication is strictly confidential and intended solely for the person to whom it is addressed, and it may be legally privileged. If you are not the intended recipient or have received this communication in error, please do not read it or show it to any other person, but notify us immediately and then delete it from your computer. Any unauthorised disclosure of information contained in this communication is strictly prohibited. The Test People Limited. Registered in England and Wales Number 6326413 Registered Office - Albion Court, 5 Albion Place, Leeds, LS1 6JL - 0113 320 4801 London Office - Portland House, Bressenden Place, London, SW1E 5RS - 020 7100 7794 --001a113f7e7c1e543905215b4c10--