A famous protocol of LoadRunner Web HTTP/HTML which is used in 70% of performance testing scenarios. This protocol is used for web-based applications and record client and server communication. Web HTTP/HTML protocol has two recording modes which are HTML mode and URL mode. Each mode has its own features and advantages. To get more understanding, let’s compare HTML mode vs URL mode.
HTML mode vs URL mode
- Context Dependency: HTML mode performs context-based recording whereas URL mode is free from context i.e. contextless recording. Since the resources are separated by individual requests in URL mode, so there is no context dependency between them.
- Resources: In HTML mode, the page resources like image, .css etc. are recorded in a single request whereas individual requests are created for each resource in URL mode.
- User Action: In HTML mode, each user action belongs to one request whereas in URL mode, multiple requests associated with one user action depend on the number of resources available on the page.
- Script Size: The size of the HTML mode script is comparatively smaller than the size of the URL mode script. The reason is in the URL mode script each resource has a separate request.
- Correlation Effort: The HTML mode script requires less effort than the URL mode script to correlate the dynamic value.
- Resource Download during replay: Resources are downloaded during replay in HTML mode. But in URL mode individual request triggers for each resource hence resource downloading is not required.
- Execution Speed: HTML mode script is slower than URL mode script due to parsing of code.
- Script Maintenance: The maintenance of the script is less in HTML mode. On the other hand, the URL mode script requires more maintenance and re-work due to changes in the application.
- Explicit support: HTML mode supports explicit URL whereas URL mode does not support explicit HTML.
- Used for: HTML mode is used for browser-based application whereas URL mode is used for non-browser (thick-client) applications.
- Functions: In HTML mode, web_submit_form is used whereas in URL mode, web_submit_data, web_image etc. are used.
You may be interested:
- Performance Testing Tutorial
- Performance Engineering Tutorial
- Apache JMeter Tutorial
- Neotys NeoLoad Tutorial