Return-Path: Delivered-To: apmail-jakarta-jmeter-user-archive@www.apache.org Received: (qmail 47082 invoked from network); 22 Nov 2005 16:34:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 22 Nov 2005 16:34:31 -0000 Received: (qmail 59259 invoked by uid 500); 22 Nov 2005 16:34:08 -0000 Delivered-To: apmail-jakarta-jmeter-user-archive@jakarta.apache.org Received: (qmail 59035 invoked by uid 500); 22 Nov 2005 16:34:05 -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 58975 invoked by uid 99); 22 Nov 2005 16:34:05 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Nov 2005 08:34:05 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of Christian.Baumgartner@tiscover.com designates 193.108.138.250 as permitted sender) Received: from [193.108.138.250] (HELO secure.tiscover.com) (193.108.138.250) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Nov 2005 08:35:35 -0800 Received: from ibk-tis-mx-01.tiscover.corp (unknown [10.1.10.4]) by hallein.server (Postfix) with ESMTP id 126C947B97 for ; Tue, 22 Nov 2005 17:33:46 +0100 (CET) Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: AW: want to list all foreign links of a page - or IF Controller and Regular Expressions X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Date: Tue, 22 Nov 2005 17:33:34 +0100 Message-ID: <65FE44E2CAED5742B96A161F3703A5390156568D@ibk-tis-mx-01.tiscover.corp> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: want to list all foreign links of a page - or IF Controller and Regular Expressions Thread-Index: AcXvgCVT9F4hn6XNT/SqSjNVWUlpvgAAGQnw From: "Baumgartner, Christian" To: "JMeter Users List" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N i want to write out those links, that doesn't belong to specific pool of = given links. the pool contains the following links (by example): http://jamaica.at/test1.htm http://jamaica.at/servlet34/contextlayout,5/ http://jamaica.at/guide/home.htm AND=20 http://jamaica.at/article(N).htm (where N =3D a number between 0 and = 1000, some ID of course) beside this links, it is in some cases possible, that there are other = links too. and for these other links i want JMeter to call an Error. other link example: http://jamaica.at/home.html http://jamaica.at/servletcontainer/index/snoop ... What I do: I parse the Hyperlinks of a given Page,=20 then I proove if the link is one of the pool, IF NOT i call a HTTP Sample with some wrong parameter, so it get marked = red in a listener. So I get all the foreign links of the page, that shouldn't appear there. But the Problem is http://jamaica.at/article(N).htm this kind of link. I = want to proove this too, but not with a simple IF condition because I = just know the structure of the link, but not what all links will look = like in production area. So I thought of the combination Regular Expression Extractor and IF = CONTROLLER. But it doesn't work some way like this: IF CONTROLLER( "${parsedLink}"=3D=3D"/article\d+\.htm" ) Any other way to go? nice regards Christian=20 -----Urspr=FCngliche Nachricht----- Von: sebb [mailto:sebbaz@gmail.com]=20 Gesendet: Dienstag, 22. November 2005 17:16 An: JMeter Users List Betreff: Re: want to list all foreign links of a page - or IF Controller = and Regular Expressions What are you trying to do? S. On 22/11/05, Baumgartner, Christian = wrote: > following szenario: > > i have a html page that contains usually these links: link1, link2, > linkY > now for what ever reason there appears a linkX. > > every link points to another file on the same server, so just asking > about the server in the url assertion isn't a solution. > > as long as it worked i did the following: > > > parse all links from page in variable parsedLink > > if controller (is it link1?) > if controller (is it link2?) > if controller (is it linkY?) > httpSample( parsedLink ) > urlAssertion( any wrong word, so that = it > get marked red in the tree listener ) > > > that worked for linkX, but now i have a lot more links on the page = that > are valid, with a special sample: link__something > the ID changes from one link to another. when i go further like the > example above i'll grow old and die before i will finish *gg* > > is there a solution to use regular expressions in the if controller? = or > has someone another idea? > > > > nice regards > Christian > > --------------------------------------------------------------------- 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