请教winrunner学习中的问题
增加同步点执行为何结果不对呢?错误描述:
button_press:"Delete Order"Error:Object is currently disabled
button_press:"是(Y)"Error:Object is not found
button_press:"是(Y)"Error:Object is not in the GUI map
下面是记录的脚本
# Flight Reservation
win_activate ("Flight Reservation");
set_window ("Flight Reservation", 3);
obj_type ("MSMaskWndClass","2<kBackSpace>112604");
list_select_item ("Fly From:", "Frankfurt");# Item Number 1;
list_select_item ("Fly To:", "London");# Item Number 1;
obj_mouse_click ("FLIGHT", 42, 39, LEFT);
# Flights Table
set_window ("Flights Table", 2);
list_select_item ("Flight", "13536 FRA 08:00 AM LON 08:45 AM SR $163.00"); # Item Number 2;
button_press ("OK");
# Flight Reservation
set_window ("Flight Reservation", 4);
edit_set ("Name:", "gh");
button_set ("First", ON);
button_press ("Insert Order");
set_window ("Flight Reservation", 17);
obj_wait_bitmap("Delete Order", "Img7", 10);
button_press ("Delete Order");
# Flight Reservations
set_window ("Flight Reservations", 3);
set_window("Flight Reservation");
button_press ("Delete Order");
斑竹上次的问题经过你的指点,已经解决,今天又出来了一个问题,请指教呀 你增加同步点不正确!
因为你点同步点时要点一下WR然后再选同步点,
你可能在这个过程中出错了,
我以前就是这样的出错,
你可以到51TESTING.COM用FTP下载我上传的演示来看一下!
obj_wait_bitmap("Delete Order", "Img7", 10);
button_press ("Delete Order");
你看一下这两步跟我做的就不相同了!
obj_wait_bitmap("Insert Done...", "Img1", 13);
set_window ("Flight Reservation", 7);
button_press ("Delete Order");
我的回放是没有错的,
建议;
你在做回放时,
要经常调试一下
多了就熟了
[ Last edited by QA_BAY on 2004-11-25 at 21:05 ]
需要用户和密码
:(:,(上不去呀,需要账号和密码 账号和密码
也是www.51testing.com
你那个问题解决了吗
哈哈,谢谢斑竹,终于成功了
总结一下错误的原因:插入同步点的时间是应该在运行到提示没有删除对象的界面点pause按钮查入。在执行就可以了。不过我的记录脚本跟你说的不同耶
# Flight Reservation
set_window ("Flight Reservation", 3);
edit_set ("Name:", "kk");
button_set ("First", ON);
button_press ("Insert Order");
set_window ("Flight Reservation", 9);
obj_wait_bitmap("Delete Order", "Img9", 10);
button_press ("Delete Order");
不同的语句是
obj_wait_bitmap("Delete Order", "Img9", 10); 你取的同步点所点的位置不同,那obj_wait_bitmap("Delete Order就不同,
我点的是 obj_wait_bitmap("Insert Done...", )
哦,谢谢
现在服务器忙明白了,谢谢
明白了,谢谢 学习中……成长的过程。。。
同步点是自私插入的
请问同步点是怎样插入的学习WINNURNNER中的问题
# Loginset_window ("Login", 1);
toolbar_button_press ("Agent Name:", "Flight Reservation"); # Button Number 2;
# Flight Reservation
set_window ("Flight Reservation", 3);
menu_select_item ("File;Open Order...");
# Open Order
set_window ("Open Order", 1);
button_set ("Order No.", ON);
edit_set ("Edit_1", "3");
button_press ("OK");
# Flight Reservation
set_window ("Flight Reservation", 2);
menu_select_item ("File;Fax Order...");
# Fax Order No. 3
set_window ("Fax Order No. 3", 1);
static_get_text("# Tickets:(static)",Tickets);
static_get_text("Ticket Price:(static)",Price);
static_get_text("Total:(static)",Total);
#check that the ticket price is calculated corrcetly.
if(tickets*price== total)
tl_step("total",0,"Total is correct".)
else
tl_step("total",1,"Total is incorrect".)
button_press ("Cancel");
上面是我自己在学习过程中,用TSL写的脚本,但是在执行的过程总是出现错误.请问那位高手可以给指点一下.谢谢!!! 把错误提示截图发出来,不然别人怎么可能知道你的出什么错 请说清楚你的错误是什么,
程序在哪里停下来的!
你的回放环境是什么? 学习中
页:
[1]