51Testing软件测试论坛

标题: loadrunner怎么录制了下载后,脚本不显示 [打印本页]

作者: 1032114334    时间: 2018-3-20 14:24
标题: loadrunner怎么录制了下载后,脚本不显示
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;
}




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2