Facebook Login using Jmeter

后端 未结 2 805
情深已故
情深已故 2021-01-27 07:27

I want to do a load test my Heroku application using Jmeter. To access the functionality of the application, I need to login through Facebook first. I tried with browser record

相关标签:
2条回答
  • 2021-01-27 07:53

    Problem is not with Regular Expression Extractor as mentioned by Saswat Sahoo. Main problem is Location header not even getting in Response header of Jmeter. We can see Location header in Browser's response header. Few information are missing in Jmeter Response Header compared to Browser's response header.

    0 讨论(0)
  • 2021-01-27 08:05

    I don't know the JMeter context, but the regex can be something like:

    \?code=(.*)
    

    You might need to double the backslash. The $ can be problematic if the header is checked as a whole, you can replace it with \n perhaps.

    [EDIT] I found the tester pointed from the JMeter page and used it against the header content you gave. Apparently the $ was not necessary, the search is stopping on a line bound. Still not sure about doubling the backslash. Experiment.

    0 讨论(0)
提交回复
热议问题