Test from shallow to deep -jmeter how to bypass the token or sign detection mechanism

I believe that many test engineers are using open source tools jmeter, jmeter can do many things, interface testing, stress testing and so on, I will not enumerate here. But it does stress testing or when the interface is not encountered this kind of problem? Is the need to check the login interface to log in directly to it, it will be rejected by the server, of course, the test results are not accurate. So jmeter how to bypass the login verification mechanism? Here the author specifically talk about. Both methods yo.

  Let me start first, the weather is too hot, the students took the ice cream so that research and development should first check mechanism to help get rid of, and finish on the test plus. This method is relatively simple and crude. But we have lost the tongue, the development will have to see his face, in case after removing the front line and forget to add the checking mechanism, that there may be a big accident, so a lot of it still shortcomings. Nazan specifically talk about the second method it.

  First open jmeter, there are plans to test you recorded script (such as logging, does not record the students, see in front of me there is a recording devoted to the script), and then test plan at the right-click Add -> Configure Original -> HTTP Cookie manager, as shown below.

 

Cookie Cookie is stored on the manager make a increase, as shown in the following figure SESSION write the name, you get to write the value of your website value, domain empathy, how to obtain this, I will be repeat.

 

 After doing the above configuration, and save if you still can not bypass the login, do the following configuration is selected HTTP request "follow the redirect," Once saved, you execute it and found success check.

 

 

 

Here write about how to obtain SESSION value of the user, and domain. I use the Firefox browser firebug, other browsers on their own Baidu, the market should be a lot of packet capture tool can also be achieved, this can find their own way. Take me here firebug Firefox explained.

1. Open Firefox browser, enter the URLs to crawl, and then enter the correct user name and password.

2. Press F12, open firebug

3. Click button inside firebug Cookies, have a directory SESSION, wherein the content corresponds jmeter inside the "value" field is your jmeter inside the domain, as shown in FIG. These copied into it. The above operation is then performed.

 

 Today to explain this, the author's brother king VX public number of automated testing earlier published article, explain selenium java TestNg automation, welcome students interested VX search concern.

Guess you like

Origin www.cnblogs.com/king44/p/11563307.html