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

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

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

&i5F pq!ZiF a7t0HTML-BASEURL-BASE 录制方式的区别51Testing软件测试网2^x#X`nYxNI1K

51Testing软件测试网6u|'E:n N0f

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

51Testing软件测试网'^F/y1R0w

应用是WEB应用,选择HTML-based方式录制。

/U sT"j{8]051Testing软件测试网b;uD[D0Wql

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

0C%n y AO6uk9}0

IdVB0ix+mN0如果WEB应用中使用的javascript、vbscript脚本与服务器之间存在通讯(调用了服务端组件),选用URL-based方式。

#BAp*}$w8S]J0

$y-c A U:r_0HTML方式:直观地录制在当前Web页面上下文中的HTML事件,该事件按以下几个步骤录制,URL(web_url)、
C~*d;uo Bz1c0链接(web_link)、图像(web_image)、表单提交(web_submit_form)。
3N m%[ Gd'B0URL方式:通过URL步骤(web_url语句),录制从服务器端返回的所有请求,不会生成web_link、web_image和web_submit_form函数。51Testing软件测试网5] BYi9\~r8\"x

}]TmV0下面是帮助文档解释:

!W?jHL)F051Testing软件测试网 s5~$Gs S!CBGB

Follow these guidelines in deciding which recording level to choose.51Testing软件测试网)j:{Rx.l%]#lxK"w

  • For browser applications without JavaScript, use the HTML-based level.
  • For non-browser applications, use the URL-based level.51Testing软件测试网LL'Q1j$X R8ls'r7[*{

d0@0S#e7x0A f4|D'p0TheHTML-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.

&e![$Bi V^r0

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软件测试网fQ:]*G'vD

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.51Testing软件测试网1Z,xC!S7N/np


相关阅读:

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

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

评分:0

我来说两句

Open Toolbar