So I am doing the same thing. Ultimately adding a javascript interpreter to JMeter is a nontrivial task. I'm noticing that JMeter's http sampler seems to ignore the BASE HREF tag and also the NOSCRIPT tag. There is a Firefox plugin called Selenium that I know some folks around me are using, but I wasn't even aware of the tools you put below. I would agree, though, that this is probably the only way to go because reverse-engineering something to mangle it into a test case is practically asking for unforeseen bugs to arise. However, I'm wondering something fairly specific (which I have a workaround to currently). If I have a test with an Http Sampler, and the URL it hits gets redirected, can I access the redirected URL via a prebuilt JMeter component. Currently I'm having the page that is redirected to put the URL it was accessed by into an HTML comment and then using a RegexExpressionExtractor to pull the value out of the page. Is there some kind of post-processor that will just allow me to get at the redirected URL itself ?

alex

Mitch K. White wrote:
The way I am testing this situation is by reverse engineering the
javascript to manually create the url and any parameters passed along
with it. It is a tedious process, and one which will only get worse as
we go down the AJAX road.
What we need is a javascript testing tool. I am just beginning to
research this. The  3 I'm looking at are:
http://jsassertunit.sourceforge.net/docs/index.html
http://www.jsunit.net
http://jsunit.berlios.de/

Any ideas on these or other?
Is there a way to integrate them with a jmeter test?

Mitchell White


-----Original Message-----
From: Alex Orloff [mailto:[EMAIL PROTECTED] Sent: Thursday, February 02, 2006 12:24 PM
To: jmeter-user@jakarta.apache.org
Subject: redirect URL post-processor


Hello,

I'm trying to figure out how to create a test script that requires me to

access the rewritten URL of a followed redirect in order to simulate a click on a target URL that in a browser is made by a javascript call that accesses the window location. Is there a way to do this ?

thanks in advance,

alex

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to