Script recording is the process of capturing user actions and converting them into performance test scripts. Recorded scripts simulate real user behavior and form the foundation for performance testing.
Capture User Actions
Record real user interactions with the application.
Generate Scripts
Convert recorded actions into performance scripts.
Parameterization
Identify dynamic data and parameterize scripts.
Replay & Validate
Replay scripts to validate functionality.
Recording Approaches
Web Applications
Record user interactions on web applications.
- HTTP/HTTPS Protocol
- Browser based recording
- Capture URLs, Parameters, Cookies, Headers
Web Services / APIs
Record and validate API calls.
- REST / SOAP Protocol
- Capture Requests & Responses
- Headers, Query Params, Body, Auth Tokens
Mobile Applications
Record interactions on mobile apps.
- Native / Hybrid / Mobile Web
- Capture Network Calls
- WiFi / Cellular Network Support
How to Record – Tools Overview
LoadRunner (VuGen) – Web Recording
1. Start Recording
Launch VuGen and start the Web/HTTP(S) recording.
2. Configure Recording Options
Select protocol, browser, record mode, and other settings.
3. Perform Actions
Perform business transactions on the application.
4. Stop Recording
Stop the recording. VuGen generates the script.
5. Replay & Validate
Replay the script and validate functionality before enhancement.
[Image URL - LoadRunner UI]
Best Practices for Script Recording
- Record end-to-end business flows.
- Avoid recording unnecessary resources (images, .css, .js files).
- Parameterize all dynamic data.
- Use proper think time and correlation.
- Validate script functionality before executing performance tests.
Common Tips
- Use recording filters to capture only required requests.
- Regular expressions are useful for correlation.
- Re-record after major application changes.
- Maintain reusable functions and modular scripts.