Recently, due to project needs, research the next mobile app script recording method, the need for children's shoes can refer to use!
Method 1:
Set up a network proxy in your mobile network and use LR12 to select Agent recording in the mobile application–http/html protocol
Use LoadRunner proxy to record phone (IPhone, Android) application HTTP scripts
Tools/Materials
? LoadRunner
? Smart phones
Use a laptop card or something like 360-pocket WiFi, share your network on a computer with LoadRunner installed, and connect to shared WiFi on your phone.
Configure the mobile WiFi connection HTTP proxy address and port, proxy address (server) for the computer's IP address, Port can write 1-65535, it is recommended to use infrequently used ports, such as: 8899.
Open the LoadRunner Script Editor, select the Recording protocol as the HTTP protocol, and set the recording mode for the agent, port to fill the port set on the phone, 1. The figure is set with Loadrunner12, and Loadrunner11 can also be set to the monitoring port on the Recording tab.
Click Record, then open the app that needs to be recorded on your phone, operate the business you want to record, and when you need to finish, click End Recording.
- Here, the script for the application on the phone is recorded by means of the LoadRunner proxy.
Method 2:
Locally installed Android emulator emulator (Android SDK), using LR12 to select the mobile application–http/html protocol in the simulator recording mode recording
Method 3:
1. Run mobile Recorder on your phone
2. Press "Start recording" to start recording
3. Switch to your mobile client and complete the normal procedure
4. Switch back to Mobile recorder, click "Stop Recording"
5. Send the captured packet by email or copy the data file (extension Lrcap) directly to the Vugen
6. New Mobile HTTP Script->record-> Select "Analyze traffic"->capture file to select the Lrcap files generated above, specify the server IP and port or the ip-> of the phone Finish
Note:
1. HP LoadRunner 12 Version installation package and installation instructions:
Get access to HP's website
- HP LoadRunner Mobile Recorder Grab kit (recommended, Android phone requires root):
Get access to HP's website
Phone:
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Mobile app script recording (LoadRunner 12)