51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

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

[讨论] 关于loadrunner如何修改录制默认浏览器

[复制链接]
  • TA的每日心情
    奋斗
    2015-11-23 14:59
  • 签到天数: 11 天

    连续签到: 1 天

    [LV.3]测试连长

    跳转到指定楼层
    1#
    发表于 2015-7-13 10:07:29 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
    在时间设置下的浏览器模拟中可以设置用户代理(也就是要模拟的浏览器),我设置过,但是没有实质性效果的样子。可以讨论一下有什么方法能自如切换所使用的浏览器?
    分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
    收藏收藏
    回复

    使用道具 举报

  • TA的每日心情
    奋斗
    4 小时前
  • 签到天数: 2676 天

    连续签到: 2 天

    [LV.Master]测试大本营

    2#
    发表于 2015-7-13 16:19:54 | 只看该作者
    楼主参考下人家总结的,感觉说的是HTTP头的区别
    UserAgent–
    "User-Agent" is the name of an HTTP header identifying the application, usually a browser, which represents the user in the interaction with the server.
    "User-Agent"是一个HTTP头的名称来明确这个应用程序。通常情况下 一个浏览器,该浏览器就代表证用户和服务器之间的交互
    For example, the header "User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)" identifies Microsoft Internet Explorer 6.0 for Windows NT. Other User-Agent strings are used for different browsers and for other, non-browser applications. Usually, all requests from an application use the same User-Agent value, which the recorder specifies as a Run-Time Setting. However, even within a regular browser session, there may be non-browser components (for example, Active-X) that interact with a server directly, and usually have a different User-Agent string than the browser. Specifying a UserAgent indicates that this is such a non-browser request. The specified string is used in the "User-Agent:" HTTP header, and affects the Replay's behavior. in some points, for example, by not using the browser cache, assuming the specified URLs are resources, etc.
    通常,所有的从一个应用程序中的发出的请求都是使用相同的User-Agent的值。对于录制的脚本在running-setting中设置。通常即使在一个规则的浏览器session中,也存在非浏览器的元件(例如Active-X: )这些元件直接和服务器交互,并且通常使用和一个浏览器不同的User-Agent string。明确一个UserAgent指出这是一个非浏览器的request.这个明显的String使用在HTTP header "User-Agent:"。在某些方面影响着回放的行为,例如,不使用 浏览器的cache,假设的指出的URL是一个resources.

    评分

    参与人数 1测试积点 +10 收起 理由
    lsekfe + 10 恭喜你获得测试积点10

    查看全部评分

    回复 支持 反对

    使用道具 举报

    本版积分规则

    关闭

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

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

    GMT+8, 2024-5-21 12:03 , Processed in 0.066722 second(s), 23 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

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