Loadrunner Developer
Introduction to Micro Focus's Loadrunner Developer tool for performance testing WebSockets and HTTP/2 using JavaScript SDK with HAR file conversion.
Mark
Performance Testing Expert
Loadrunner Developer is a free performance testing tool from Micro Focus available across Windows, Mac, and Linux platforms. This guide walks through creating load test scripts using HAR file exports from Chrome Developer Tools.
Overview
Loadrunner Developer focuses on testing WebSocket and HTTP transport layers, particularly suited for contemporary web technologies including HTTP/2 and WebSockets using a JavaScript framework.
HAR File Generation Process
Export network traffic from Chrome Developer Tools by:
- Open Chrome Developer Tools (F12)
- Navigate to the Network tab
- Enable “Preserve log” option
- Record website interactions
- Right-click within the developer console
- Select “Save all as HAR with content”
Script Conversion
The Offline Generator command converts HAR files into executable scripts containing requests wrapped in load.WebRequest objects.
devweb offline-convert --input recording.har --output script
Raw recordings require correlation, parameterization, and error handling modifications before execution.
Configuration Files
Two YML configuration files control runtime behavior:
rts.yml - Runtime Settings
general:
iterations: 1
pacing:
type: none
scenario.yml - Test Scenario Parameters
scenario:
vusers: 10
duration: 300
rampup: 60
Test Execution
The DevWeb command-line interface executes load tests, generating results in SQLite database format within a dedicated results directory containing logs and snapshots.
devweb run --script script.js --scenario scenario.yml
Key Features
- IDE Integration: Works with popular development environments
- Grafana Compatibility: Real-time metrics visualization
- Clear Syntax: JavaScript-based scripting
- Comprehensive Documentation: Well-documented API
- Cross-Platform: Available on Windows, Mac, and Linux
Conclusion
Loadrunner Developer appeals to developers through its modern approach to performance testing, offering IDE integration, clear syntax, and comprehensive documentation for those getting started with performance testing.
Further Reading
Tags: