On 20 March 2015 at 19:26, JTM <[email protected]> wrote: > Hi > Noob here. My first jMeter task is to validate URLs. It's going very well > and have some assertions in place capturing things like "results=0" on > search pages. However, I am unable to figure out how to ensure the initial > 301 redirect response is written to our CSV results file.
Since 301 is a redirect, you need to switch off automatic redirects. > As an example, the 2nd row below is the followed location after the redirect > occurs: > > URL Testing,200,OK,JMeter Users > 1-1,text,true,,53031,1,1,http://www.xyz.com/,,82,1,0 > URL Testing,200,OK,JMeter Users > 1-1,text,true,,308058,1,1,*http://www.xyz.com/blog*,,179,1,0 > > ... what I'd like to have, is the 301 redirect response written to the > results file, so, a new row 2 example might look like this ... > > URL Testing,200,OK,,text,true,,53031,1,1,http://www.xyz.com/,,82,1,0 > URL > Testing,*301*,OK,,text,true,,53031,1,1,http://www.xyz.com/articles,,82,1,0 > URL Testing,200,OK,,text,true,,308058,1,1,*http://www.xyz.com/blog*,,179,1,0 > > Any ideas on how I can capture the 301 response in the results file > appreciated. > > thanks > > > > -- > View this message in context: > http://jmeter.512774.n5.nabble.com/how-to-capture-301-redirect-responses-in-results-CSV-file-tp5721974.html > Sent from the JMeter - User mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > 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]
