51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 1136|回复: 0
打印 上一主题 下一主题

[原创] loadrunner怎么录制了下载后,脚本不显示

[复制链接]
  • TA的每日心情

    2018-2-7 16:24
  • 签到天数: 3 天

    连续签到: 1 天

    [LV.2]测试排长

    跳转到指定楼层
    1#
    发表于 2018-3-20 14:24:53 | 只看该作者 回帖奖励 |正序浏览 |阅读模式
    Action()
    {

            web_add_cookie("LFR_SESSION_STATE_11904=1521527062284; DOMAIN=192.168.0.107");

            web_url("upload",
                    "URL=http://192.168.0.107/group/10779/upload",
                    "Resource=0",
                    "RecContentType=text/html",
                    "Referer=http://192.168.0.107/group/10779/articles",
                    "Snapshot=t7.inf",
                    "Mode=HTML",
                    LAST);

            web_url("upload_2",
                    "URL=http://192.168.0.107/group/10779/upload",
                    "Resource=0",
                    "RecContentType=text/html",
                    "Referer=http://192.168.0.107/group/10779/articles",
                    "Snapshot=t8.inf",
                    "Mode=HTML",
                    EXTRARES,
                    "Url=/html/js/misc/swfupload/swfupload.js?t=1521506188761", ENDITEM,
                    "Url=/html/portlet/document_library/css.jsp", ENDITEM,
                    "Url=/html/themes/classic/images/common/banner_bg.jpg", ENDITEM,
                    "Url=/html/portlet/document_library/icon.png", ENDITEM,
                    "Url=/html/themes/classic/images/trees/plus.png", ENDITEM,
                    "Url=/html/themes/classic/images/common/folder.png", ENDITEM,
                    "Url=/html/themes/classic/images/common/delete.png", ENDITEM,
                    "Url=/language/zh_CN/warning-your-session-will-expire/[$SPAN$]/30", ENDITEM,
                    "Url=/language/zh_CN/hide/", ENDITEM,
                    "Url=/language/zh_CN/show/", ENDITEM,
                    "Url=/language/zh_CN/warning-your-session-has-expired/", ENDITEM,
                    "Url=/language/zh_CN/extend/", ENDITEM,
                    LAST);

            web_add_cookie("LFR_SESSION_STATE_11904=1521527066178; DOMAIN=192.168.0.107");

            web_url("upload_3",
                    "URL=http://192.168.0.107/group/10779/upload?p_p_id=20&p_p_lifecycle=0&p_p_state=normal&p_p_mode=view&p_p_col_id=column-1&p_p_col_count=1&_20_struts_action=%2Fdocument_library%2Fview&_20_folderId=46289",
                    "Resource=0",
                    "RecContentType=text/html",
                    "Referer=http://192.168.0.107/group/10779/upload",
                    "Snapshot=t9.inf",
                    "Mode=HTML",
                    LAST);

            web_url("upload_4",
                    "URL=http://192.168.0.107/group/10779/upload?p_p_id=20&p_p_lifecycle=0&p_p_state=normal&p_p_mode=view&p_p_col_id=column-1&p_p_col_count=1&_20_struts_action=%2Fdocument_library%2Fview&_20_folderId=46289",
                    "Resource=0",
                    "RecContentType=text/html",
                    "Referer=http://192.168.0.107/group/10779/upload",
                    "Snapshot=t10.inf",
                    "Mode=HTML",
                    EXTRARES,
                    "Url=/html/themes/classic/images/document_library/doc.png", "Referer=http://192.168.0.107/group/10779/upload?p_p_id=20&p_p_lifecycle=0&p_p_state=normal&p_p_mode=view&p_p_col_id=column-1&p_p_col_count=1&_20_struts_action=%2Fdocument_library%2Fview&_20_folderId=46289", ENDITEM,
                    "Url=/language/zh_CN/warning-your-session-will-expire/[$SPAN$]/30", "Referer=http://192.168.0.107/group/10779/upload?p_p_id=20&p_p_lifecycle=0&p_p_state=normal&p_p_mode=view&p_p_col_id=column-1&p_p_col_count=1&_20_struts_action=%2Fdocument_library%2Fview&_20_folderId=46289", ENDITEM,
                    "Url=/language/zh_CN/hide/", "Referer=http://192.168.0.107/group/10779/upload?p_p_id=20&p_p_lifecycle=0&p_p_state=normal&p_p_mode=view&p_p_col_id=column-1&p_p_col_count=1&_20_struts_action=%2Fdocument_library%2Fview&_20_folderId=46289", ENDITEM,
                    "Url=/language/zh_CN/show/", "Referer=http://192.168.0.107/group/10779/upload?p_p_id=20&p_p_lifecycle=0&p_p_state=normal&p_p_mode=view&p_p_col_id=column-1&p_p_col_count=1&_20_struts_action=%2Fdocument_library%2Fview&_20_folderId=46289", ENDITEM,
                    "Url=/language/zh_CN/warning-your-session-has-expired/", "Referer=http://192.168.0.107/group/10779/upload?p_p_id=20&p_p_lifecycle=0&p_p_state=normal&p_p_mode=view&p_p_col_id=column-1&p_p_col_count=1&_20_struts_action=%2Fdocument_library%2Fview&_20_folderId=46289", ENDITEM,
                    "Url=/language/zh_CN/extend/", "Referer=http://192.168.0.107/group/10779/upload?p_p_id=20&p_p_lifecycle=0&p_p_state=normal&p_p_mode=view&p_p_col_id=column-1&p_p_col_count=1&_20_struts_action=%2Fdocument_library%2Fview&_20_folderId=46289", ENDITEM,
                    LAST);

            web_url("get_file",
                    "URL=http://192.168.0.107/c/document_library/get_file?p_l_id=10900&folderId=46289&name=DLFE-1780.doc",
                    "Resource=0",
                    "RecContentType=application/msword",
                    "Referer=http://192.168.0.107/group/10779/upload?p_p_id=20&p_p_lifecycle=0&p_p_state=normal&p_p_mode=view&p_p_col_id=column-1&p_p_col_count=1&_20_struts_action=%2Fdocument_library%2Fview&_20_folderId=46289",
                    "Snapshot=t11.inf",
                    "Mode=HTML",
                    LAST);

            web_url("get_file_2",
                    "URL=http://192.168.0.107/c/document_library/get_file?p_l_id=10900&folderId=46289&name=DLFE-1780.doc",
                    "Resource=0",
                    "RecContentType=application/msword",
                    "Referer=http://192.168.0.107/group/10779/upload?p_p_id=20&p_p_lifecycle=0&p_p_state=normal&p_p_mode=view&p_p_col_id=column-1&p_p_col_count=1&_20_struts_action=%2Fdocument_library%2Fview&_20_folderId=46289",
                    "Snapshot=t12.inf",
                    "Mode=HTML",
                    LAST);

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

    使用道具 举报

    本版积分规则

    关闭

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

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

    GMT+8, 2024-11-27 12:57 , Processed in 0.063107 second(s), 24 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

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