You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by "Baumgartner, Christian" <Ch...@Tiscover.com> on 2005/11/22 15:58:09 UTC

want to list all foreign links of a page - or IF Controller and Regular Expressions

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_<ID>_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

Re: want to list all foreign links of a page - or IF Controller and Regular Expressions

Posted by sebb <se...@gmail.com>.
What are you trying to do?

S.
On 22/11/05, Baumgartner, Christian <Ch...@tiscover.com> 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_<ID>_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