qq_36772310 2020-01-01 11:18 采纳率: 0%
浏览 217

loadrunner录制脚本的时候每一个操作步骤都有停顿,但是在脚本里没有生成thinktime方法

Action()
{

web_reg_find("Text=Web Tours", 
    LAST);

web_url("WebTours", 
    "URL=http://127.0.0.1:1080/WebTours/", 
    "Resource=0", 
    "RecContentType=text/html", 
    "Referer=", 
    "Snapshot=t1.inf", 
    "Mode=HTML", 
    LAST);

web_url("favicon.ico", 
    "URL=http://127.0.0.1:1080/favicon.ico", 
    "Resource=1", 
    "Referer=", 
    LAST);

lr_start_transaction("login");

web_reg_find("Text=Web Tours", 
    LAST);

web_submit_form("login.pl", 
    "Snapshot=t2.inf", 
    ITEMDATA, 
    "Name=username", "Value=jojo", ENDITEM, 
    "Name=password", "Value=bean", ENDITEM, 
    "Name=login.x", "Value=63", ENDITEM, 
    "Name=login.y", "Value=15", ENDITEM, 
    LAST);

lr_end_transaction("login",LR_AUTO);

lr_start_transaction("buy");

web_reg_find("Text=Web Tours", 
    LAST);

web_image("Search Flights Button", 
    "Alt=Search Flights Button", 
    "Snapshot=t3.inf", 
    LAST);

web_reg_find("Text=Flight Selections", 
    LAST);

web_submit_form("reservations.pl", 
    "Snapshot=t4.inf", 
    ITEMDATA, 
    "Name=depart", "Value=Denver", ENDITEM, 
    "Name=departDate", "Value=01/02/2020", ENDITEM, 
    "Name=arrive", "Value=Frankfurt", ENDITEM, 
    "Name=returnDate", "Value=01/03/2020", ENDITEM, 
    "Name=numPassengers", "Value=14", ENDITEM, 
    "Name=roundtrip", "Value=<OFF>", ENDITEM, 
    "Name=seatPref", "Value=None", ENDITEM, 
    "Name=seatType", "Value=Coach", ENDITEM, 
    "Name=findFlights.x", "Value=53", ENDITEM, 
    "Name=findFlights.y", "Value=4", ENDITEM, 
    LAST);

web_reg_find("Text=Flight Reservation", 
    LAST);

web_submit_form("reservations.pl_2", 
    "Snapshot=t5.inf", 
    ITEMDATA, 
    "Name=outboundFlight", "Value=011;343;01/02/2020", ENDITEM, 
    "Name=reserveFlights.x", "Value=37", ENDITEM, 
    "Name=reserveFlights.y", "Value=13", ENDITEM, 
    LAST);

web_reg_find("Text=Reservation Made!", 
    LAST);

web_submit_form("reservations.pl_3", 
    "Snapshot=t6.inf", 
    ITEMDATA, 
    "Name=firstName", "Value=Joseph", ENDITEM, 
    "Name=lastName", "Value=Marshall", ENDITEM, 
    "Name=address1", "Value=234 Willow Drive", ENDITEM, 
    "Name=address2", "Value=San Jose/CA/94085", ENDITEM, 
    "Name=pass1", "Value=Joseph Marshall", ENDITEM, 
    "Name=pass2", "Value=141", ENDITEM, 
    "Name=pass3", "Value=", ENDITEM, 
    "Name=pass4", "Value=", ENDITEM, 
    "Name=pass5", "Value=", ENDITEM, 
    "Name=pass6", "Value=", ENDITEM, 
    "Name=pass7", "Value=", ENDITEM, 
    "Name=pass8", "Value=", ENDITEM, 
    "Name=pass9", "Value=", ENDITEM, 
    "Name=pass10", "Value=", ENDITEM, 
    "Name=pass11", "Value=", ENDITEM, 
    "Name=pass12", "Value=", ENDITEM, 
    "Name=pass13", "Value=", ENDITEM, 
    "Name=pass14", "Value=", ENDITEM, 
    "Name=creditCard", "Value=", ENDITEM, 
    "Name=expDate", "Value=", ENDITEM, 
    "Name=saveCC", "Value=<OFF>", ENDITEM, 
    "Name=buyFlights.x", "Value=36", ENDITEM, 
    "Name=buyFlights.y", "Value=10", ENDITEM, 
    LAST);

lr_end_transaction("buy",LR_AUTO);

return 0;

}

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 一个主机电脑有两个显示器,当前有两个软件主体是网页html打包的exe程序,如何通过cmd命令bat同时打开软件一个在主屏幕显示,另外一个软件在2副屏幕上显示
    • ¥15 AE SDK插件开发,获取关键帧值得问题
    • ¥15 谁知道这个咋搞的吗,有偿
    • ¥20 基于spring boot、的scorm
    • ¥15 往复密封问题的两个问题
    • ¥15 DAC函数和STM32
    • ¥15 任务是接收数据并把数据写入DAC7311,这些代码能实现此功能吗
    • ¥15 分析FP -Growth代码运行内存太大而无法运行的原因
    • ¥20 qtcreat 使用msvc编译器开发软件运行时字体锯齿感严重
    • ¥15 为何显示keyerror fruit