翻手为云覆手雨,天地由我一手掌。逍遥不认仙与魔,总归由我性张扬。

HTML-BASE 与 URL-BASE 录制方式的区别

上一篇 / 下一篇  2009-05-22 09:03:24 / 个人分类:性能测试技术

@| g6S+q9HF%T0HTML-BASEURL-BASE 录制方式的区别51Testing软件测试网~hC-\+O

51Testing软件测试网)Hm"b~u{-o0X0q

很多时候在录制基于HTTP协议 的脚本时,碰到特殊的控件无法录制,或者选择的录制方式在脚本维护上比较麻烦,不知道怎么选择 HTML-BASE 与 URL-BASE 哪种录制方式比较合理。例如用JAVAScript. 写的 程序 推荐用URL 方式录制,如果是普通的JSF之类的程序开发的应用 用HTML 方式录制更方便后期脚本的维护。

8wV^+k#e$r4r.P;[P0

3B4X5tQMlcP%]m0应用是WEB应用,选择HTML-based方式录制。

SR-m0R!L Dw,m051Testing软件测试网6|6{5U MqNv(E,d

WEB应用中使用了java applet程序,且applet程序与服务器之间存在通讯,选用URL-based方式。

'IF9B,Y'dL8_\051Testing软件测试网9ro0}*Nb|

如果WEB应用中使用的javascript、vbscript脚本与服务器之间存在通讯(调用了服务端组件),选用URL-based方式。51Testing软件测试网T%@u,r%|E2Xi

51Testing软件测试网&f"J^6RV f7G"N\j

HTML方式:直观地录制在当前Web页面上下文中的HTML事件,该事件按以下几个步骤录制,URL(web_url)、51Testing软件测试网#\f;T7uw7iq
链接(web_link)、图像(web_image)、表单提交(web_submit_form)。51Testing软件测试网`K7d)M8e+X
URL方式:通过URL步骤(web_url语句),录制从服务器端返回的所有请求,不会生成web_link、web_image和web_submit_form函数。

j2MqQ:DV \0

t2_%[f o&f0下面是帮助文档解释:

th!O Ls } o ?;k051Testing软件测试网-@z%h"?#TQ*cRf}&C

Follow these guidelines in deciding which recording level to choose.

1VZO*c&k&f0
  • For browser applications without JavaScript, use the HTML-based level.
  • For non-browser applications, use the URL-based level.51Testing软件测试网(l8chEedBRr
51Testing软件测试网'`,BfeHN.r+c

TheHTML-basedscriptlevel generates a separate step for each HTML user action. The steps are also intuitive, but they do not reflect true emulation of the JavaScript. code.

ddtoO!w4[ N0

TheURL-based script.mode option instructs VuGen to recordallbrowser requests and resources from the server that were sentdueto the user's actions. It automatically records every HTTP resource as URL steps (web_urlstatements). For normal browser recordings, it is not recommended to use the URL-based mode since is more prone to correlation related issues. If, however, you are recording pages such as applets and non-browser applications, this mode is ideal.51Testing软件测试网&H.o-e@HF9A1R

URL-based scripts are not as intuitive as the HTML-based scripts, since all actions are recorded asweb_urlsteps instead ofweb_link,web_image, etc.

%R*fEWa s7Z/c1x0
相关阅读:

TAG: 录制方式的区别 HTML-BASE URL-BASE

shen1936的个人空间 引用 删除 shen1936   /   2009-07-08 10:56:10
 

评分:0

我来说两句

Open Toolbar