From user-return-46831-archive-asf-public=cust-asf.ponee.io@jmeter.apache.org Mon Jun 25 07:46:41 2018 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 96B5F180627 for ; Mon, 25 Jun 2018 07:46:40 +0200 (CEST) Received: (qmail 51525 invoked by uid 500); 25 Jun 2018 05:46:39 -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 51514 invoked by uid 500); 25 Jun 2018 05:46:39 -0000 Delivered-To: apmail-jakarta-jmeter-user@jakarta.apache.org Received: (qmail 51511 invoked by uid 99); 25 Jun 2018 05:46:39 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Jun 2018 05:46:39 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id DE48D1A39FF for ; Mon, 25 Jun 2018 05:46:38 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.971 X-Spam-Level: X-Spam-Status: No, score=0.971 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_SOFTFAIL=0.972] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id N6oCtTpX1xHS for ; Mon, 25 Jun 2018 05:46:38 +0000 (UTC) Received: from n5.nabble.com (n5.nabble.com [162.253.133.81]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 643A25F195 for ; Mon, 25 Jun 2018 05:46:37 +0000 (UTC) Received: from n5.nabble.com (localhost [127.0.0.1]) by n5.nabble.com (Postfix) with ESMTP id AD75470545B8 for ; Sun, 24 Jun 2018 22:46:30 -0700 (MST) Date: Sun, 24 Jun 2018 22:46:30 -0700 (MST) From: "glinius@live.com" To: jmeter-user@jakarta.apache.org Message-ID: <1529905590708-0.post@n5.nabble.com> In-Reply-To: References: Subject: Re: Multipart/form-data request manually with JSF viewstate MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Instead of copying and pasting the file contents into the .jmx script itself you can use __FileToString() function which reads the file from file system. This approach is way more robust and VCS -friendly. You can also check out Testing REST API File Uploads in JMeter for an example of manually building a file upload request. -- Sent from: http://www.jmeter-archive.org/JMeter-User-f512775.html --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org For additional commands, e-mail: user-help@jmeter.apache.org