Traffic Recorded
What is Traffic?
Traffic is Appvance IQ's HTTP traffic recorder. For load or performance testing of a mobile application, an Appium-based approach is far too resource-consuming. A better solution is to simulate application traffic by sending the requests and verifying the responses.
To capture those requests, AIQ uses an HTTP proxy that records the traffic from a browser or mobile device and transforms it into a HAR script containing the requests and responses. This static HAR script can then be replayed to run a performance/load test, without writing a single line of test code.
How does it work?
The workflow has three steps:
- Connect - configure a browser or mobile device to use the AIQ HTTP proxy (port 9095 by default).
- Record - perform the actions you want to test while the proxy captures the traffic, and mark meaningful steps (for example, "Login" or "Purchase").
- Analyze - save the captured traffic as a HAR script and generate reports to review it.
The saved HAR script is then used in a scenario as a performance or load test.
Example
Suppose you want to load-test the login flow of your mobile banking app. You connect your phone to the proxy, record yourself logging in, and AIQ captures all the HTTP requests. The captured traffic becomes a HAR script that you can replay with many virtual users to see how the server behaves under load.
Prerequisites
- An AIQ instance with the Traffic feature available under Record > Traffic.
- A browser or a mobile device (Android or iOS) that can be configured to use the proxy.
- The proxy port (9095 by default) reachable from the device.
- An SSL certificate installed on the device if you need to record HTTPS traffic.
Sections in this book
Main workflow:
- Traffic - Connect - set up the proxy port and connect a browser or device
- Traffic - Record - capture traffic and mark steps
- Traffic - Analyze - generate reports from the HAR script
- Traffic - Running a Complete Scenario - end-to-end example with Firefox
Device setup:
- Android - Proxy Settings
- Android - Installing Certificates
- Android - Bypass Proxy Exceptions
- iOS - Proxy Settings
- iOS - Proxy Settings and PAC Files
- iOS - Generating Certificates
Security and troubleshooting:
Last updated: February 17, 2023
If you have any feedback on this topic, please contact us at documentation@appvance.ai