Redirect AutoResponder usage
Regarding Fiddler's AutoResponder redirection function, it is mainly to intercept the session and then replace the original resource function.
It is the same as manually repairing the response, but it is more convenient, and corresponding rules can be created, which is suitable for batch redirection.
Steps
Step 1: Visit Baidu with Google browser , you will know , right click to view the source code of the web page, select all, copy, save to baidu.html file, note that the format is utf-8 when saving
Step 2: Open fiddler, enter the AutoResponder page, and set as follows:
Step 3: The browser opens 360 navigation_one home page, the whole world , and fiddler captures the package
Step 4: Drag and drop the 360 navigation in fiddler_a home page and the session of the whole world directly into AutoResponder or select sessions and click Add Rule, as shown in the figure:
Step 5: Select the link under If request matches in AutoResponder, and then find Find a file in the second option under Rule Editor, select the baidu.html you just saved, and click save; as shown below:
Step 6: Refresh the 360 navigation_one homepage, the whole world , you will find that the page has become the homepage that you will know when you click Baidu , so we have completed a redirection
mock response message
Assuming that an interface is not written well during the test, but this interface needs to be tested, you can simulate and modify the response result:
Suppose Baidu's login interface is not well written:
1. Open the login window of the Baidu page, enter the user name and password, click Login, get the login interface, and check the Raw under the response result
2. Open the AutoResponder window, drag the login interface to the AutoResponder window, and then find Find a file in the second option under Rule Editor to save the local response file, and then click save
3. Clear the fiddler session list, reacquire the login interface, and view the raw response results
4. You can see that it is the result of the modification just now, and the modification of the response is complete
Summary: The AutoResponder function is one of the most practical functions of Fiddler. Rule can be set freely, and you can use search (default), exact match (EXACT), and regular expression match (REGEX). The processing method can choose to use files, or choose an appropriate time to pause the data stream (*bpu, *bpafter), manual intervention. Through the above steps, we have demonstrated how to redirect HTTP requests to local files for debugging.
Practical case
Optical theory is useless, you have to learn to follow along, and you have to do it yourself, so that you can apply what you have learned to practice. At this time, you can learn from some actual combat cases.
If it is helpful to you, please like and collect it to give the author an encouragement. It is also convenient for you to quickly find it next time.
If you don’t understand, please consult the small card below. The blogger also hopes to learn and progress with like-minded testers
At the right age, choose the right position, and try to give full play to your own advantages.
My road of automated test development is inseparable from the plan of each stage along the way, because I like planning and summarizing,
Test and develop video tutorials, study notes and receive portals! ! !