loadrunner Recording option具体该怎么选择设置

录制脚本时在Recording option中的设置Recording,下面为loadrunner文档说明,大家如果对英文不太熟悉,可以借助在线工具查看。
¨HTML-base方式:
This is the default recording level for Web (HTTP/HTML) Vusers. It instructs VuGen to record HTML actions in the context of the current Web page. It does not record all resources during the recording session, but downloads them during replay. This options is recommended for browser applications with applets and VB script.
        Non-HTML generated elements:
            【Record within the current script step.】 Does not generate a new function for each of the non HTML-generated resources. It lists all resources as arguments of the relevant functions, such as web_url, web_link, and web_submit_data. The resources, arguments of the Web functions, are indicated by the EXTRARES flag.
            【Record in separate steps and use concurrent groups.】 Creates a new function for each one of the non HTML-generated resources and does not include them as items in the page's functions (such as web_url and web_link). All of the web_url functions generated for a resource are placed in a concurrent group (surrounded by web_concurrent_start and web_concurrent_end).
            【Do not record.】 Does not record any non-HTML generated resources.
        Script type:
            【A script describing user actions.】 Generates functions that correspond directly to the action taken. It creates URL (web_url), link (web_link), image (web_image), and form submission (web_submit_form) functions. The resulting script is very intuitive and resembles a context sensitive recording.
            【A script containing explicit URL's only.】 Records all links, images and URLs as web_url statements, or in the case of forms, as web_submit_data. It does not generate the web_link, web_image, and web_submit_form functions. The resulting script is less intuitive. This mode is useful for instances where many links within your site have the same link text. If you record the site using the first option, it records an ordinal (instance) for the link, but if you record using the second option, each link is listed by its URL. This facilitates parameterization and correlation for that step

¨URL-base方式
    Record all requests and resources from the server. It automatically records every HTTP resource as URL steps (web_url statements), or in the case of forms, as web_submit_data. It does not generate the web_link, web_image, and web_submit_form functions, nor does it record frames. This options is recommended For non-browser applications.
        Create concurrent groups for resources after their source HTML page
            Records the resources in a concurrent group (enclosed by web_concurrent_start and web_concurrent_end statements) after the URL. Resources include files such as images and js files. If you disable this option, the resources are listed as separate web_url steps, but not marked as a concurrent group.
        Use web_custom_request only
            Records all HTTP requests as custom requests. VuGen generates a web_custom_request function for all requests, regardless of their content. Recommended for non-browser applications.
 
具体的来说在录制脚本时选择那种方式呢:
如果应用是WEB应用,首选是HTML-based方式;
如果应用是使用HTTP协议的非WEB应用,首选是URL-based方式;
如果WEB应用中使用了java applet程序,且applet程序与服务器之间存在通讯,选用URL-based方式;
如果WEB应用中使用的javascript、vbscript脚本与服务器之间存在通讯(调用了服务端组件),选用URL-based方式。

实际在loadrunner的自带帮助文档中,都有loadrunner使用上的说明。所以希望大家多看看,可以借助在线工具进行翻译。养成自己解决问题的能力不是。



留言