Return-Path: Delivered-To: apmail-jakarta-jmeter-user-archive@www.apache.org Received: (qmail 92846 invoked from network); 20 Jul 2005 12:44:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 Jul 2005 12:44:44 -0000 Received: (qmail 11292 invoked by uid 500); 20 Jul 2005 12:44:41 -0000 Delivered-To: apmail-jakarta-jmeter-user-archive@jakarta.apache.org Received: (qmail 11273 invoked by uid 500); 20 Jul 2005 12:44:40 -0000 Mailing-List: contact jmeter-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "JMeter Users List" Reply-To: "JMeter Users List" Delivered-To: mailing list jmeter-user@jakarta.apache.org Received: (qmail 11260 invoked by uid 99); 20 Jul 2005 12:44:40 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Jul 2005 05:44:40 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of sebbaz@gmail.com designates 64.233.182.201 as permitted sender) Received: from [64.233.182.201] (HELO nproxy.gmail.com) (64.233.182.201) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Jul 2005 05:44:35 -0700 Received: by nproxy.gmail.com with SMTP id g2so380407nfe for ; Wed, 20 Jul 2005 05:44:36 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ut+pxcQBP9ldhGAybR2/xG3S3hCHFlSUfeCrqO2hFJz3IV/d04UuV48sXV+TovcvhoEhYcIV1Zn9KTkihAAzT8Vmtppb8zPG+j3+4PpY5KIf73y7vEwfYdBqpMOQZx3/7n7UVNzhelVoGsEwBEv+QGyjjp4d73TOv1l+ISKw9+Q= Received: by 10.48.250.11 with SMTP id x11mr14112nfh; Wed, 20 Jul 2005 05:44:36 -0700 (PDT) Received: by 10.48.144.17 with HTTP; Wed, 20 Jul 2005 05:44:36 -0700 (PDT) Message-ID: <25aac9fc05072005444c98e206@mail.gmail.com> Date: Wed, 20 Jul 2005 13:44:36 +0100 From: sebb Reply-To: sebb To: JMeter Users List Subject: Re: Jmeter scripting and other tools In-Reply-To: <000301c58d26$907afca0$4a04140a@tiscover.corp> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <25aac9fc050720051970f9c094@mail.gmail.com> <000301c58d26$907afca0$4a04140a@tiscover.corp> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N In theory, you can use BeanShell Sampler to do anything - it's just a way of writing Java code that can be executed by JMeter to perform a sample. For example, you could write java code to scan the file system looking for strings in a file. As far as JMeter is concerned, a sampler is called to perform a _single_ sample (though subresults are also possible). Sample results (with timings) are then made available to Listeners, Assertions etc for further processing. Your BSH Sampler would need to keep track of the previous sample to decide where to go next time it was called. Possible, but messy. There is already a Link Extractor that can be used to extract the first level links. Also the Access Log Sampler can process all the entries in a web-server log. The format is pretty simple, so it would be easy enough to write a script to generate a dummy log file that included all the URLs you wanted to test. Or indeed you could use one of the functions to populate the appropriate fields in an HTTP Sampler by reading these from a file. And you can use the proxy recorder to record HTTP sessions. S. On 20/07/05, Christian Baumgartner wro= te: > So am i able to use beanshells to perform like a webspider, crawling thro= ugh > my pages, each link of them, to a specific link-depth, and record the > request timings, succsessful page load and so on? >=20 >=20 >=20 > -----Urspr=FCngliche Nachricht----- > Von: sebb [mailto:sebbaz@gmail.com] > Gesendet: Mittwoch, 20. Juli 2005 13:19 > An: JMeter Users List > Betreff: Re: Jmeter scripting and other tools >=20 >=20 > The BeanShell Sampler can be used to write a script to perform a single > sample. > BeanShell can also be used to create functions and Assertions. >=20 > It's not possible to use BeanShell as a scripting language to > _control_JMeter. >=20 > The JMeter engine uses its own "language", which is what is recorded in t= he > JMX files. This is not a scripting language. >=20 > S. > On 20/07/05, Christian Baumgartner > wrote: > > Thanks, i already had a look on OpenSTA but I prefer working on all > > platforms.. But in this context -> I read something about BeanShell > > integration. Is that a posibility to do some scripting? And how can i > > realize it? > > > > I found the BeanShell Sampler, but the Docu doesn't really give an > > meaningful example how to use it. But I think thats the thing i was > > looking for in jmeter. > > > > Best regards > > Christian Baumgartner > > > > -----Urspr=FCngliche Nachricht----- > > Von: St=E9phane Birot [mailto:sbirot@movalys.com] > > Gesendet: Mittwoch, 20. Juli 2005 09:20 > > An: JMeter Users List > > Betreff: RE: Jmeter scripting and other tools > > > > > > OpenSTA (http://www.opensta.org/) is another open-source tool and it > > use a scripting language to record test plan. It only run under > > windows. > > > > > -----Message d'origine----- > > > De : Christian Baumgartner > > > [mailto:christian.baumgartner@tiscover.com] > > > Envoy=E9 : mercredi 20 juillet 2005 10:03 > > > =C0 : JMeter Mailinglist > > > Objet : Jmeter scripting and other tools > > > > > > Are there any other tools that are that comfortable like jmeter, but > > > also have some skripting languages build in? > > > Sometimes it's really hard to make logic sequences with the > > > 'lego'-like > > > structure of jmeter, and scripting would be easier.. > > > > > > fg > > > > > > > > > -------------------------------------------------------------------- > > > - > > > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org > > > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org > > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org > > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org > > > > >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org >=20 >=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org >=20 > --------------------------------------------------------------------- To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: jmeter-user-help@jakarta.apache.org