Nevermind, the problem is not the Regular Expression Extractor. That actually works fine and will follow the redirect to get the page name. The problem is with the "graph results" component. When it create the output csv file, it doesn't follow the redirect url.
Thanks, James Liang -----Original Message----- From: James Liang [mailto:[email protected]] Sent: Tuesday, January 21, 2014 7:45 PM To: JMeter Users List Subject: how to extract the true page name after redirect Hi, I am trying to extract the page name after a url redirect. For example, suppose get http://foo.com/login auto redirects to http://foo.com/main I'd like to extract the page name "main" instead of "login" Note that my jmeter login sample is set to "Follow Redirects" I used the Regular Expression Extractor to extract the name and that worked great for for pages that don't redirectly. However, it doesn't get run for the redirected page at all. Also note that what I really wanted is to get the page name for used with "Save Responses to a file" component. This way, I get a copy of the html page with the name that matches the url. Any ideas? Thanks, James Liang --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
