Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 8FF88200D35 for ; Tue, 24 Oct 2017 08:12:12 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 8EA12160BF0; Tue, 24 Oct 2017 06:12:12 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id D43D41609E0 for ; Tue, 24 Oct 2017 08:12:11 +0200 (CEST) Received: (qmail 27913 invoked by uid 500); 24 Oct 2017 06:12:11 -0000 Mailing-List: contact dev-help@jmeter.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jmeter.apache.org Delivered-To: mailing list dev@jmeter.apache.org Received: (qmail 27900 invoked by uid 99); 24 Oct 2017 06:12:10 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Oct 2017 06:12:10 +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 A6B541805B5 for ; Tue, 24 Oct 2017 06:12:09 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -3.351 X-Spam-Level: X-Spam-Status: No, score=-3.351 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-2.8, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=ya.ru header.b=pcOiv0zf; dkim=pass (1024-bit key) header.d=ya.ru header.b=pcOiv0zf Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 3zXNVd7vKq9d for ; Tue, 24 Oct 2017 06:12:07 +0000 (UTC) Received: from forward104p.mail.yandex.net (forward104p.mail.yandex.net [77.88.28.107]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 1BB085FD67 for ; Tue, 24 Oct 2017 06:12:07 +0000 (UTC) Received: from mxback5g.mail.yandex.net (mxback5g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:166]) by forward104p.mail.yandex.net (Yandex) with ESMTP id 8F387182085 for ; Tue, 24 Oct 2017 09:12:00 +0300 (MSK) Received: from smtp2p.mail.yandex.net (smtp2p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:7]) by mxback5g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id illiQ8z1rE-C0nKlAgS; Tue, 24 Oct 2017 09:12:00 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ya.ru; s=mail; t=1508825520; bh=LBDx1VWSMF46NhvDWkeJhTRp86OF+RHQKrLaMjWLc04=; h=Subject:To:References:From:Message-ID:Date:In-Reply-To; b=pcOiv0zfmXVii5ELrOvYmOBkm/3y9wAZuJkGGFQX769asXYIe3Zc8aOisJyNZ3vUo ZrMDXS6dsR/yZD7dFti0eZipj+g98XjlrZ1r6ANmn5PbLlegEhdjDAVJaVeudIGsy0 aqfV6ry3NKvN7NmCiRdN5UFovucmFBZnXDHXI6r8= Received: by smtp2p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 90Cqbzitga-Bxh8jcVP; Tue, 24 Oct 2017 09:11:59 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ya.ru; s=mail; t=1508825520; bh=LBDx1VWSMF46NhvDWkeJhTRp86OF+RHQKrLaMjWLc04=; h=Subject:To:References:From:Message-ID:Date:In-Reply-To; b=pcOiv0zfmXVii5ELrOvYmOBkm/3y9wAZuJkGGFQX769asXYIe3Zc8aOisJyNZ3vUo ZrMDXS6dsR/yZD7dFti0eZipj+g98XjlrZ1r6ANmn5PbLlegEhdjDAVJaVeudIGsy0 aqfV6ry3NKvN7NmCiRdN5UFovucmFBZnXDHXI6r8= Authentication-Results: smtp2p.mail.yandex.net; dkim=pass header.i=@ya.ru Subject: Re: TCP Sampler To: dev@jmeter.apache.org References: From: Andrey Pokhilko Message-ID: Date: Tue, 24 Oct 2017 09:11:59 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US archived-at: Tue, 24 Oct 2017 06:12:12 -0000 Hello, I think you are right. That's natural part of generic TCP testing, you have to be aware of all these bytes and bits. Definitely not for newbie, unless you have friendly TCPClientImpl. The biggest problem here is binary traffic. JMeter operates only with strings, while in TCP you need to work with binary. Any _generic_ GUI you would put to solve this, will still be quite complex. But if you ask for idea, I'd say "Provide text field to type HEX octets sequence and show some binary representation of result in live packet preview". Another usability problem of TCPClientImpl is that it has no GUI per implementation, which is quite confusing. But once you think of implementing GUI for it, it becomes equal to standalone sampler, by amount of effort. And having standalone sampler is preferred, because you have full control on different aspects of your TCP traffic and GUI. So IMO TCP Client is close to its optimal spot: allows some testing till you need to write custom protocol handler, then you migrate towards own sampler. Andrey Pokhilko 23.10.2017 22:52, Philippe Mouawad пишет: > Hello, > I am currently playing with TCP Sampler and have noticed some quite > unfriendly things: > > - Adding carriage return is not easy and you need to hack it with some > PreProcessor: > - vars.put("LF",URLDecoder.decode("%0D", "ASCII")); > vars.put("CR",URLDecoder.decode("%0A", "ASCII")); > - And then in TCP Sample: > - hello${CR}${LF} > - => Shouldn't we add something to make it easier ? Ideas ? > - Handling EOL with Cariage return is also weird, why eol is set to > 1000 instead of 10 for example ? > > Component looks very complex to use for a newbie, and even for advanced > users. > > >