In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/03 Report--
LR uses agents to record script introductions
When recording browser requests using lr, it is common that the browser cannot be opened. Using the proxy that comes with lr can effectively solve this problem, and the supported browsers are no longer limited to IE, Firefox, or even record requests from mobile browsers.
The agent needs to use the wplus_init_wsock.exe under the loadrunner installation directory and bin directory, as shown below:
1. Open the Virtual User Generator of loadrunner and select Web (HTTP/HTML) protocol.
2. In the script editing interface, click the recording Settings button
Click New Entry in the Recording Options-Network-PortMapping interface, and fill in the agent information as shown
Note: the address and port of the server are filled in according to the actual project; the proxy port number is customized. This information is needed when the browser opens the proxy.
3. Open the agent in the browser (take chrome as an example)
4. Click the recording button in LR to record. The recording interface is set as follows. Click the OK button (automatically opens the wplus_init_wsock.exe file).
5. Open http://192.168.163.128/bbs/forum.php (sample project) in a chrome browser, and the operation will be recorded by loadrunner.
6. If you want to record the request sent by the mobile browser, set the phone to development mode, open the phone's proxy (replace the steps to open the browser proxy), and other operations are the same.
Note:
1. Remove the agent from the phone or browser after using it.
2. If you want the script recorded by the playback agent to be played back with other browsers or mobile phones, you need to add header information to the script, such as the following:
Add web_add_header ("User-Agent", "Mozilla*Firefox/17.0") to the script
You can also modify the default browser information in the run settings
Afterwords:
Write technical articles for the first time, in order to record their own learning, if there are any omissions, please give us a lot of advice.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.