51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 2206|回复: 1
打印 上一主题 下一主题

loadrunner录制脚本的时候每一个操作步骤都有停顿

[复制链接]
  • TA的每日心情
    擦汗
    昨天 09:07
  • 签到天数: 527 天

    连续签到: 4 天

    [LV.9]测试副司令

    跳转到指定楼层
    1#
    发表于 2020-2-11 10:56:02 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
    1测试积点
    loadrunner录制脚本的时候每一个操作步骤都有停顿,但是在脚本里没有生成thinktime方法

    1. <p>Action()
    2. {
    3. web_reg_find("Text=Web Tours",
    4.     LAST);</p><p>web_url("WebTours",
    5.     "URL=http://127.0.0.1:1080/WebTours/",
    6.     "Resource=0",
    7.     "RecContentType=text/html",
    8.     "Referer=",
    9.     "Snapshot=t1.inf",
    10.     "Mode=HTML",
    11.     LAST);</p><p>web_url("favicon.ico",
    12.     "URL=http://127.0.0.1:1080/favicon.ico",
    13.     "Resource=1",
    14.     "Referer=",
    15.     LAST);</p><p>lr_start_transaction("login");</p><p>web_reg_find("Text=Web Tours",
    16.     LAST);</p><p>web_submit_form("login.pl",
    17.     "Snapshot=t2.inf",
    18.     ITEMDATA,
    19.     "Name=username", "Value=jojo", ENDITEM,
    20.     "Name=password", "Value=bean", ENDITEM,
    21.     "Name=login.x", "Value=63", ENDITEM,
    22.     "Name=login.y", "Value=15", ENDITEM,
    23.     LAST);</p><p>lr_end_transaction("login",LR_AUTO);</p><p>lr_start_transaction("buy");</p><p>web_reg_find("Text=Web Tours",
    24.     LAST);</p><p>web_image("Search Flights Button",
    25.     "Alt=Search Flights Button",
    26.     "Snapshot=t3.inf",
    27.     LAST);</p><p>web_reg_find("Text=Flight Selections",
    28.     LAST);</p><p>web_submit_form("reservations.pl",
    29.     "Snapshot=t4.inf",
    30.     ITEMDATA,
    31.     "Name=depart", "Value=Denver", ENDITEM,
    32.     "Name=departDate", "Value=01/02/2020", ENDITEM,
    33.     "Name=arrive", "Value=Frankfurt", ENDITEM,
    34.     "Name=returnDate", "Value=01/03/2020", ENDITEM,
    35.     "Name=numPassengers", "Value=14", ENDITEM,
    36.     "Name=roundtrip", "Value=<OFF>", ENDITEM,
    37.     "Name=seatPref", "Value=None", ENDITEM,
    38.     "Name=seatType", "Value=Coach", ENDITEM,
    39.     "Name=findFlights.x", "Value=53", ENDITEM,
    40.     "Name=findFlights.y", "Value=4", ENDITEM,
    41.     LAST);</p><p>web_reg_find("Text=Flight Reservation",
    42.     LAST);</p><p>web_submit_form("reservations.pl_2",
    43.     "Snapshot=t5.inf",
    44.     ITEMDATA,
    45.     "Name=outboundFlight", "Value=011;343;01/02/2020", ENDITEM,
    46.     "Name=reserveFlights.x", "Value=37", ENDITEM,
    47.     "Name=reserveFlights.y", "Value=13", ENDITEM,
    48.     LAST);</p><p>web_reg_find("Text=Reservation Made!",
    49.     LAST);</p><p>web_submit_form("reservations.pl_3",
    50.     "Snapshot=t6.inf",
    51.     ITEMDATA,
    52.     "Name=firstName", "Value=Joseph", ENDITEM,
    53.     "Name=lastName", "Value=Marshall", ENDITEM,
    54.     "Name=address1", "Value=234 Willow Drive", ENDITEM,
    55.     "Name=address2", "Value=San Jose/CA/94085", ENDITEM,
    56.     "Name=pass1", "Value=Joseph Marshall", ENDITEM,
    57.     "Name=pass2", "Value=141", ENDITEM,
    58.     "Name=pass3", "Value=", ENDITEM,
    59.     "Name=pass4", "Value=", ENDITEM,
    60.     "Name=pass5", "Value=", ENDITEM,
    61.     "Name=pass6", "Value=", ENDITEM,
    62.     "Name=pass7", "Value=", ENDITEM,
    63.     "Name=pass8", "Value=", ENDITEM,
    64.     "Name=pass9", "Value=", ENDITEM,
    65.     "Name=pass10", "Value=", ENDITEM,
    66.     "Name=pass11", "Value=", ENDITEM,
    67.     "Name=pass12", "Value=", ENDITEM,
    68.     "Name=pass13", "Value=", ENDITEM,
    69.     "Name=pass14", "Value=", ENDITEM,
    70.     "Name=creditCard", "Value=", ENDITEM,
    71.     "Name=expDate", "Value=", ENDITEM,
    72.     "Name=saveCC", "Value=<OFF>", ENDITEM,
    73.     "Name=buyFlights.x", "Value=36", ENDITEM,
    74.     "Name=buyFlights.y", "Value=10", ENDITEM,
    75.     LAST);</p><p>lr_end_transaction("buy",LR_AUTO);</p><p>return 0;
    76. }</p>
    复制代码



    分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
    收藏收藏
    回复

    使用道具 举报

  • TA的每日心情
    奋斗
    昨天 07:28
  • 签到天数: 2812 天

    连续签到: 5 天

    [LV.Master]测试大本营

    2#
    发表于 2020-2-12 13:37:02 | 只看该作者
    看看选项内是否配置了
    回复

    使用道具 举报

    本版积分规则

    关闭

    站长推荐上一条 /1 下一条

    小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

    GMT+8, 2024-11-16 20:56 , Processed in 0.058548 second(s), 21 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

    快速回复 返回顶部 返回列表