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 85BC6E623 for ; Tue, 5 Feb 2013 14:15:45 +0000 (UTC) Received: (qmail 21136 invoked by uid 500); 5 Feb 2013 14:15:44 -0000 Delivered-To: apmail-jmeter-user-archive@jmeter.apache.org Received: (qmail 19613 invoked by uid 500); 5 Feb 2013 14:15:41 -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 18353 invoked by uid 99); 5 Feb 2013 14:15:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Feb 2013 14:15:40 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of asp.adieu@gmail.com designates 209.85.214.178 as permitted sender) Received: from [209.85.214.178] (HELO mail-ob0-f178.google.com) (209.85.214.178) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Feb 2013 14:15:35 +0000 Received: by mail-ob0-f178.google.com with SMTP id wd20so179972obb.9 for ; Tue, 05 Feb 2013 06:15:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=7vRjdUuGLQ/tVM1h8J9AVFcmfAFTmSczwHIgHzsg5aw=; b=PzorPgWCb75wPKO68RwjS6VOrLe7YQezvw0tx71VfcvHbOqoP4ZBOWjw9/GUGF4XVn sBW/uKnP74UzWv3TCZiZmwFPqxc61/ZhqERPiFSLSqHRtYdck55s8Sgwup2P/9D3S6K+ QIMpWGvA/+RBPkaj7XAzSCJhbqhPxE2f0zP8NYgIwcCoA6eV5F5RPfUMo0cdQFfcX5Nn n1ylLqRLX4mVYshvzsAVOaH+tX0o45hvJ2OgxXH609iwIUutaPxGbKE3XQ06rpG+DXXj u2QxzZ1KiwQxghyX6kibJZiJ6HUqmdwbMc2PEABTHin2e0to7LNLdWUZ3Zn4gzlDs1j5 yvow== MIME-Version: 1.0 X-Received: by 10.182.54.102 with SMTP id i6mr18139027obp.67.1360073714797; Tue, 05 Feb 2013 06:15:14 -0800 (PST) Received: by 10.76.83.232 with HTTP; Tue, 5 Feb 2013 06:15:14 -0800 (PST) In-Reply-To: <1599059341.22200.1359469195881.JavaMail.root@mbox03.in.post.sk> References: <948042347.22130.1359469116240.JavaMail.root@mbox03.in.post.sk> <1599059341.22200.1359469195881.JavaMail.root@mbox03.in.post.sk> Date: Tue, 5 Feb 2013 16:15:14 +0200 Message-ID: Subject: Re: Testing asynchronous webservices From: Adrian Speteanu To: JMeter Users List Content-Type: multipart/alternative; boundary=14dae93a1145a38abd04d4fad6d3 X-Virus-Checked: Checked by ClamAV on apache.org --14dae93a1145a38abd04d4fad6d3 Content-Type: text/plain; charset=UTF-8 Hi, This applies in general (unfortunately): If you want to have some smart way of doing the same stuff your client app does, then you'll have to extend JMeter, which is rather easy, especially if you already have the jars that implement the logic you need. Otherwise, once you've configured the web-service sampler properly, the issues of testing web-services are the same as in the case of any other apps. Except: "AWS callback with info -> APP", I wouldn't know how to test this in JMeter without extending it. Its not a behaviour I've encountered before. The timeout works for responses to outgoing calls, but we're not there yet with this requirement. And because you made me curious, I googled a bit, found this: http://www.codeaffine.com/2011/11/28/stressload-testing-of-asynchronous-httprest-services-with-jmeter/Apparently they didn't had that problem, their challenge was similar to what I expected, client initiated transactions and large response times in some cases (the blog has some interesting ideas for you). Make sure you really have to wait for a callback initiated by the server first (very few systems use it). But if it does do that, would be nice of you to let us know what solution you guys eventually picked. Adrian S On Tue, Jan 29, 2013 at 4:19 PM, Stefan Pivoda wrote: > Hi All, > > Has anybody experience with testing asynchronous web-services with Jmeter? > > Could you please describe me how to configure and test: > > whether i receive a confirmation from the async web-service; > after that how to set some daemon that will wait for the callback with > the requested information from that async web-service; > evaluate whether this received response from the callback. > > The communication between the APP and the async web-service (AWS) should > look like this: > > APP request -> (AWS) > AWS confirmation -> APP > AWS callback with info -> APP > APP confirmation -> AWS > > I dont want to set some specific long time-out and just wait for the > callback, if it is not needed as it will be different in each case base on > the method in the background that the async webservice will handle. that's > the reason why i'd like to use some deamon or some more sophisticated way, > if it is possible. > > thank you > Stefan > _____________________________________________________________________ > > Vsetko podstatne z vedy, pocitacov, mobilov aj hier - > http://www.TECHsme.sk > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org > For additional commands, e-mail: user-help@jmeter.apache.org > > --14dae93a1145a38abd04d4fad6d3--