chinablueker 发表于 2006-8-6 21:13:30

用winrunner测试WEB上的应用程序

我用winrunner测一个应用在WEB上的程序,由于"确定"按扭在任务栏的下方,所以每添加一条新任务时,"确定"按钮就会向下移动。这样在循环执行添加任务的操作时,winrunner会不识别"确定"按钮,每执行一次脚本都会提示按钮没有加载。哪位大侠有好的方法可以使WR识别每次都会下移的按钮,在下将万分感激。

chinablueker 发表于 2006-8-9 09:38:36

wait ...

生如火花 发表于 2006-8-9 15:54:16

你学习一下这些按钮的GUI,贴上来分析一下

chinablueker 发表于 2006-8-18 15:45:08

load("chkui",1,1);
load_os_api();
time_out=getvar("timeout");

###Use the list of checks below to define the UI checks you want the test to perform.
###Define a check as "TRUE" if you want it to be included.

lbl_chk=FALSE;   #checks capital letter of labels on controls.
ok_can_chk=FALSE;#checks existence of OK/Cancel buttons.
sys_chk=TRUE;#checks existence of system menu.
text_chk=TRUE;#checks if all text of controls is visible.
overlap_chk=FALSE; #checks that controls do not overlap.
align_chk=FALSE;#checks alignment of controls.

configure_chkui(lbl_chk,ok_can_chk,sys_chk,text_chk,overlap_chk,align_chk);
win_open("Microsoft Internet Explorer",time_out);
check_ui("Microsoft Internet Explorer");


就这是这个文件,但是按钮移动了之后就找不到GUI对像了。

快乐逍遥 发表于 2006-8-18 16:21:09

楼主,搞个例程放上来让大家玩玩嘛
页: [1]
查看完整版本: 用winrunner测试WEB上的应用程序