A famous protocol of LoadRunner Web HTTP/HTML which is used in 70% performance testing scenario. This protocol is used for web-based application 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 request 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 depends 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 URL mode script each resource has a separate request.
- Correlation Effort: HTML mode script requires less effort than 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) application.
- Functions: In HTML mode, web_submit_form is used whereas in URL mode, web_submit_data, web_image etc. are used.