原创作品,谢绝转载
1.1 关联概述
1.1.1 什么是关联
关联是LoadRunner测试的一种重要的思想。 当利用VuGen进行录制脚本时,实际是通过监听客户端(client)和服务端(server)之间的通信实现的。客户端发送请求,包括通信的用户、内容、日期给服务端,服务端返回处理等等结果。每一次通信为一次会话。这种会话只在当时client跟服务端通信时才有效。由于VuGen录制脚本都是事后的,因此当使用录制的脚本模拟当初的通信动作时,由于会话已经过期,因此这时就会失败。为了解决这个问题。就需要把这种会话的关键值获取到,设置为一种动态获取,使得服务器每一都认为这个会话是有效的。这就是关联的思想。
通过关联,使得动态数据的获取得到了解决。同时,通过将数据参数化,减少了代码量,使得代码更加简洁高效。
1.1.2 关联的两个特点
获取的值必须是动态的。比如会话的ID,客户端和服务器每一次通信产生一个会话ID,这个ID是唯一的,每一次都不一样。这个值就是一个动态的值。
关联的值必须是从服务器返回的。从客户端发送请求到服务端,服务端必须返回结果,这才是一次成功的会话,这时才会产生一个会话ID。
1.2 关联方法
1.2.1 自动关联
自动关联的方法比较简单
录制脚本。以登录webtour为例。过程略
录制的代码如下
-
Action()
-
{
-
-
//Correlation comment - Do not change!Original value='116743.537707574zAAtQQfpHcAiDDDDDzAcQpQHtDcf' Name ='CorrelationParameter_1'
-
-
web_reg_save_param_ex(
-
"ParamName=CorrelationParameter_1",
-
"LB=userSession value=",
-
"RB=>\n<table border",
-
SEARCH_FILTERS,
-
"Scope=All",
-
"RequestUrl=*/nav.pl*",
-
LAST);
-
-
//Correlation comment - Do not change!Original value='116743.537707574zAAtQQfpHcAiDDDDDzAcQpQHtDcf' Name ='CorrelationParameter_2'
-
-
web_reg_save_param_ex(
-
"ParamName=CorrelationParameter_2",
-
"LB=userSession value=",
-
"RB=>\n<table border",
-
SEARCH_FILTERS,
-
"Scope=All",
-
"RequestUrl=*/nav.pl*",
-
LAST);
-
-
web_url("WebTours",
-
"URL=http://127.0.0.1:1080/WebTours/",
-
"TargetFrame=",
-
"Resource=0",
-
"RecContentType=text/html",
-
"Referer=",
-
"Snapshot=t1.inf",
-
"Mode=HTML",
-
LAST);
-
-
web_custom_request("s.x.baidu.com",
-
"URL=http://s.x.baidu.com/",
-
"Method=POST",
-
"TargetFrame=",
-
"Resource=0",
-
"RecContentType=application/octet-stream",
-
"Referer=",
-
"Snapshot=t2.inf",
-
"Mode=HTML",
-
"EncType=application/octet-stream",
-
"BodyBinary=\\x00\\x00\\x00A\\x00\\x00\\x08\\x0B\\x10\\x01\\x18\\x00\" eb8e0f0d521396106a88e2e50eac0a70(\\xFF箑\\x80\\x80\\x80纮\\x042\\x008\\x02@\\x00H\\x06P\\x01X鬘` \\x00\\x00\\x00\\x00\\x00\\x00",
-
LAST);
-
-
web_custom_request("s.x.baidu.com_2",
-
"URL=http://s.x.baidu.com/",
-
"Method=POST",
-
"TargetFrame=",
-
"Resource=0",
-
"RecContentType=application/octet-stream",
-
"Referer=",
-
"Snapshot=t3.inf",
-
"Mode=HTML",
-
"EncType=application/octet-stream",
-
"BodyBinary=\\x00\\x00\\x00y\\x00\\x00\\x08\\x0B\\x10\\x01\\x18\\x00\" eb8e0f0d521396106a88e2e50eac0a70(\\xFF箑\\x80\\x80\\x80纮\\x0428\\xE1\\x02A痧<y`'?\\x0C惪\\xAA\\x15{\\xB9\\x18-\\x89!糩轔}\\x12^═M]⑧\\xCE<p瘃\\x8F\\x108\\xA4;7\\x06\\x13*\\xB0\\x1Bk28韪8\\x02@\\x00H\\x06P\\x01X鬘` \\x00\\x00\\x000\\x00\\x00妀郢y?唤a\\xE2$愘\\xC8>魷j\\x12\\xF3\\x13∥;'帕糞翼\\x84\\x17澼~\\xB7\\x01?眤\\xD2\\xFF\\x07挟",
-
LAST);
-
-
lr_think_time(5);
-
-
web_submit_data("login.pl",
-
"Action=http://127.0.0.1:1080/WebTours/login.pl",
-
"Method=POST",
-
"TargetFrame=",
-
"RecContentType=text/html",
-
"Referer=http://127.0.0.1:1080/WebTours/nav.pl?in=home",
-
"Snapshot=t4.inf",
-
"Mode=HTML",
-
ITEMDATA,
-
"Name=userSession", "Value={CorrelationParameter_2}", ENDITEM,
-
"Name=username", "Value=admin", ENDITEM,
-
"Name=password", "Value=123456", ENDITEM,
-
"Name=JSFormSubmit", "Value=on", ENDITEM,
-
"Name=login.x", "Value=22", ENDITEM,
-
"Name=login.y", "Value=10", ENDITEM,
-
LAST);
-
-
return 0;
-
}
CTRL+F8,此时提示需要先回放脚本。点击run script
回放完成,再次按下Ctrl+F8,进入Tree视图。系统提示如下信息,点击YES
扫描完成后,可以在脚本下方correlation result检查看到的结果。如下图所示。扫描的出结果为5423248 ,扫描出的是字符串中部分值。关联时,要将整个字符串进行关联,而不是部分。需要关联的字符串为116765.295423248zAAzVVtpiiDDDDDDDzADzpziQD
点击左边的correlation即可完成关联
通常要把所有需要做关联的数据都找出来。前面的关联没有做好,会影响到后面的内容。
1.2.2 手工关联
工具再智能,也不如人智能。同样的,学习性能测试,眼光不能局限于一个工具。重要的是深入学习的是测试与工具设计的思想,以不变应万变。
相比较自动关联,手工关联则要准确灵活的多。这是要重点掌握的内容。
通用的流程如下
1、录制两份完全一致的脚本,注意是完全一样的,这表示输入的所有参数都是一致的。
2、使用LoadRunner自带的WinDiff工具比较两份脚本的差异。找到关键的差异点。
3、编写关联函数。
下面以创建和解决bugfree case为例介绍手工关联方法
第一步、录制两份完全一致的脚本。过程略。代码如下
第二步、通过如下任一方法找出关联值
方法1:使用winDiff 找出差异。Tools->compare with script。从比较的结果。如下的ID是一个明显的差异。其他都可以忽略,如think
time之类的。仔细研究这个ID值发现,这是bug的ID值,是唯一的。同时从服务器返回的。每个case的ID值都不一样。需要做关联。
方法2:使用lr response查找
1)在脚本界面,点击左上角的Tree ,HTTP-VIEW。
2)由于做的是创建和解决bug的业务,因此可以预计创建的bug和解决的bug 必需一致。所以应该重点搜创建和解决bug这两个业务下的代码。经过检查,在response栏里找到了如下两个关键的值。XXXX/bug/4 和XXXX/bug/4/resolved。经过分析这个值4,就是bug的ID。是个bug的唯一键值。
方法3:通过IE F12 调试功能按键,查找关键字。如下图所示。
第三步、创建关联函数
这个函数比较简单,可以查下联机文档。这里直接写出来
注意到上面出现两类关联值。
Action.c(27): d><td
class="title"><span class="title"><a
href="/bugfree/index.php/bug/4" target="_blank"
Action.c(134): firm =
false;location.href="/bugfree/index.php/bug/4/resolved_edit""
class="btn"
Action.c(191): Error -26631: HTTP Status-Code=400 (Bad Request) for
"http://192.168.0.100/bugfree/index.php/search/getPreNextId?id=4&type=bug&product_id=1"
注意看这两个值的左右边界是不一样的。因此这里需要做两个关联函数。
web_reg_save_param("BUGID1",
"LB=/bug/",
"RB=",
LAST);
lr_output_message("BUGID1的值是%d","{BUGID1}");
web_reg_save_param("BUGID2",
"LB=/bug/",
"RB=",
LAST);
lr_output_message("BUGID2的值是%d","{BUGID2}");
完整脚本
-
Action()
-
{
-
-
web_add_cookie("1_product=9eb104cd00a9d6a393eb08ebacb5c5a037163480s%3A1%3A%221%22%3B; DOMAIN=192.168.0.100");
-
-
web_add_cookie("pageSize=53dc3588e660b6b16975b6e0474a2401f9a1f7bas%3A2%3A%2220%22%3B; DOMAIN=192.168.0.100");
-
-
web_add_cookie("ac-cookie=%5B%7B%22data%22%3A%5B%22%E7%B3%BB%E7%BB%9F%E7%AE%A1%E7%90%86%E5%91%98%22%2C%22%E7%B3%BB%E7%BB%9F%E7%AE%A1%E7%90%86%E5%91%98%5Badmin%5D%22%5D%2C%22value%22%3A%22%E7%B3%BB%E7%BB%9F%E7%AE%A1%E7%90%86%E5%91%98%22%2C%22result%22%3A%22%E7%B3%BB%E7%BB%9F%E7%AE%A1%E7%90%86%E5%91%98%22%7D%5D; DOMAIN=192.168.0.100");
-
-
web_add_cookie("language=1f54bcb747776c1d17a4277c793d67ca34353faes%3A5%3A%22zh_cn%22%3B; DOMAIN=192.168.0.100");
-
-
web_url("login",
-
"URL=http://192.168.0.100/bugfree/index.php/site/login",
-
"TargetFrame=",
-
"Resource=0",
-
"RecContentType=text/html",
-
"Referer=",
-
"Snapshot=t70.inf",
-
"Mode=HTML",
-
EXTRARES,
-
"URL=/bugfree/themes/classic/assets/images/blue/seperate_line.png", ENDITEM,
-
"URL=/bugfree/themes/classic/assets/images/blue/logo_login.png", ENDITEM,
-
LAST);
-
-
lr_start_transaction("登录");
-
-
web_submit_data("login_2",
-
"Action=http://192.168.0.100/bugfree/index.php/site/login",
-
"Method=POST",
-
"TargetFrame=",
-
"RecContentType=text/html",
-
"Referer=http://192.168.0.100/bugfree/index.php/site/login",
-
"Snapshot=t71.inf",
-
"Mode=HTML",
-
ITEMDATA,
-
"Name=LoginForm[username]", "Value=admin", ENDITEM,
-
"Name=LoginForm[password]", "Value=123456", ENDITEM,
-
"Name=LoginForm[language]", "Value=zh_cn", ENDITEM,
-
"Name=LoginForm[rememberMe]", "Value=0", ENDITEM,
-
EXTRARES,
-
"URL=/bugfree/themes/classic/assets/images/active.png", "Referer=http://192.168.0.100/bugfree/index.php/bug/list/1", ENDITEM,
-
"URL=/bugfree/themes/classic/assets/images/resolved.png", "Referer=http://192.168.0.100/bugfree/index.php/bug/list/1", ENDITEM,
-
"URL=/bugfree/themes/classic/assets/images/down.gif", "Referer=http://192.168.0.100/bugfree/index.php/bug/list/1", ENDITEM,
-
"URL=/bugfree/assets/bceb9043/jui/css/base/images/ui-bg_flat_75_ffffff_40x100.png", "Referer=http://192.168.0.100/bugfree/index.php/bug/list/1", ENDITEM,
-
"URL=/bugfree/assets/627dec5d/img/page.gif", "Referer=http://192.168.0.100/bugfree/index.php/bug/list/1", ENDITEM,
-
"URL=/bugfree/assets/bceb9043/jui/css/base/images/ui-bg_highlight-soft_75_cccccc_1x100.png", "Referer=http://192.168.0.100/bugfree/index.php/bug/list/1", ENDITEM,
-
"URL=/bugfree/assets/bceb9043/jui/css/base/images/ui-icons_222222_256x240.png", "Referer=http://192.168.0.100/bugfree/index.php/bug/list/1", ENDITEM,
-
LAST);
-
-
web_submit_data("getProductModule",
-
"Action=http://192.168.0.100/bugfree/index.php/search/getProductModule",
-
"Method=POST",
-
"TargetFrame=",
-
"RecContentType=text/html",
-
"Referer=http://192.168.0.100/bugfree/index.php/bug/list/1",
-
"Snapshot=t72.inf",
-
"Mode=HTML",
-
ITEMDATA,
-
"Name=product_id", "Value=1", ENDITEM,
-
"Name=productmodule_id", "Value=0", ENDITEM,
-
LAST);
-
-
lr_end_transaction("登录", LR_AUTO);
-
-
lr_start_transaction("新建case");
-
-
lr_think_time(13);
-
-
web_url("edit",
-
"URL=http://192.168.0.100/bugfree/index.php/info/edit?type=bug&action=opened&product_id=1",
-
"TargetFrame=",
-
"Resource=0",
-
"RecContentType=text/html",
-
"Referer=http://192.168.0.100/bugfree/index.php/bug/list/1",
-
"Snapshot=t73.inf",
-
"Mode=HTML",
-
EXTRARES,
-
"URL=/bugfree/assets/5839844b/themes/default/default.css", "Referer=http://192.168.0.100/bugfree/index.php/info/edit?type=bug&action=opened&product_id=1", ENDITEM,
-
"URL=/bugfree/assets/5839844b/themes/default/default.png", "Referer=http://192.168.0.100/bugfree/index.php/info/edit?type=bug&action=opened&product_id=1", ENDITEM,
-
"URL=/bugfree/assets/31570e3b/indicator.gif", "Referer=http://192.168.0.100/bugfree/index.php/info/edit?type=bug&action=opened&product_id=1", ENDITEM,
-
LAST);
-
-
lr_think_time(35);
-
-
web_reg_find("Search=All",
-
"TextPfx=/bug/",
-
"TextSfx=\"",
-
LAST);
-
//Correlation comment - Do not change!Original value='4' Name ='CorrelationParameter_1'
-
-
web_reg_save_param(
-
"CorrelationParameter_1",
-
"LB=bug/",
-
"RB=';</script",
-
"Ordinal=5",
-
SEARCH_FILTERS,
-
"Scope=All",
-
"RequestUrl=*/edit*",
-
LAST);
-
-
web_submit_data("edit_2",
-
"Action=http://192.168.0.100/bugfree/index.php/info/edit?type=bug&action=opened&product_id=1",
-
"Method=POST",
-
"EncType=multipart/form-data",
-
"TargetFrame=",
-
"RecContentType=text/html",
-
"Referer=http://192.168.0.100/bugfree/index.php/info/edit?type=bug&action=opened&product_id=1",
-
"Snapshot=t74.inf",
-
"Mode=HTML",
-
ITEMDATA,
-
"Name=BugInfoView[deleted_file_id]", "Value=", ENDITEM,
-
"Name=BugInfoView[lock_version]", "Value=", ENDITEM,
-
"Name=BugInfoView[product_id]", "Value=1", ENDITEM,
-
"Name=isPageDirty", "Value=1", ENDITEM,
-
"Name=templateTitle", "Value=", ENDITEM,
-
"Name=BugInfoView[title]", "Value=case03", ENDITEM,
-
"Name=layer1_module", "Value=0", ENDITEM,
-
"Name=BugInfoView[productmodule_id]", "Value=0", ENDITEM,
-
"Name=BugInfoView[assign_to_name]", "Value=系统管理员", ENDITEM,
-
"Name=BugInfoView[mail_to]", "Value=", ENDITEM,
-
"Name=BugInfoView[severity]", "Value=1", ENDITEM,
-
"Name=BugInfoView[priority]", "Value=1", ENDITEM,
-
"Name=Custom[BugType]", "Value=用户界面", ENDITEM,
-
"Name=Custom[HowFound]", "Value=功能测试", ENDITEM,
-
"Name=Custom[BugOS]", "Value=Windows 7", ENDITEM,
-
"Name=Custom[BugBrowser]", "Value=IE 8.0", ENDITEM,
-
"Name=Custom[OpenedBuild]", "Value=B001", ENDITEM,
-
"Name=Custom[ResolvedBuild]", "Value=", ENDITEM,
-
"Name=Custom[BugSubStatus]", "Value=", ENDITEM,
-
"Name=Custom[BugMachine]", "Value=", ENDITEM,
-
"Name=Custom[BugKeyword]", "Value=", ENDITEM,
-
"Name=BugInfoView[related_bug]", "Value=", ENDITEM,
-
"Name=BugInfoView[related_case]", "Value=", ENDITEM,
-
"Name=BugInfoView[related_result]", "Value=", ENDITEM,
-
"Name=attachment_file[]", "Value=", "File=yes", ENDITEM,
-
"Name=BugInfoView[action_note]", "Value=登录失败", ENDITEM,
-
"Name=BugInfoView[repeat_step]", "Value=[步骤]<br />\r\n"
-
"1.登录<br />\r\n"
-
"2.<br />\r\n"
-
"<br />\r\n"
-
"[结果]<br />\r\n"
-
" 登录失败<br />\r\n"
-
"[期望]<br />\r\n"
-
" 登录成功<br />\r\n"
-
"[备注]<br />\r\n"
-
"<br />", ENDITEM,
-
LAST);
-
-
web_url("BugFree",
-
"URL=http://192.168.0.100/bugfree/index.php/bug/list/1",
-
"TargetFrame=",
-
"Resource=0",
-
"RecContentType=text/html",
-
"Referer=http://192.168.0.100/bugfree/index.php/info/edit?type=bug&action=opened&product_id=1",
-
"Snapshot=t75.inf",
-
"Mode=HTML",
-
LAST);
-
-
web_url("case03",
-
"URL=http://192.168.0.100/bugfree/index.php/bug/{CorrelationParameter_1}",
-
"TargetFrame=_blank",
-
"Resource=0",
-
"RecContentType=text/html",
-
"Referer=http://192.168.0.100/bugfree/index.php/info/edit?type=bug&action=opened&product_id=1",
-
"Snapshot=t76.inf",
-
"Mode=HTML",
-
LAST);
-
-
web_custom_request("s.x.baidu.com",
-
"URL=http://s.x.baidu.com/",
-
"Method=POST",
-
"TargetFrame=",
-
"Resource=0",
-
"RecContentType=application/octet-stream",
-
"Referer=",
-
"Snapshot=t77.inf",
-
"Mode=HTML",
-
"EncType=application/octet-stream",
-
"BodyBinary=\\x00\\x00\\x00A\\x00\\x00\\x08\\x0B\\x10\\x01\\x18\\x00\" eb8e0f0d521396106a88e2e50eac0a70(\\xFF箑\\x80\\x80\\x80纮\\x042\\x008\\x02@\\x00H\\x06P\\x01X鬘` \\x00\\x00\\x00\\x00\\x00\\x00",
-
LAST);
-
-
web_submit_data("getProductModule_2",
-
"Action=http://192.168.0.100/bugfree/index.php/search/getProductModule",
-
"Method=POST",
-
"TargetFrame=",
-
"RecContentType=text/html",
-
"Referer=http://192.168.0.100/bugfree/index.php/bug/list/1",
-
"Snapshot=t78.inf",
-
"Mode=HTML",
-
ITEMDATA,
-
"Name=product_id", "Value=1", ENDITEM,
-
"Name=productmodule_id", "Value=0", ENDITEM,
-
LAST);
-
-
web_url("getPreNextId",
-
"URL=http://192.168.0.100/bugfree/index.php/search/getPreNextId?id={CorrelationParameter_1}&type=bug&product_id=1",
-
"TargetFrame=",
-
"Resource=0",
-
"RecContentType=text/html",
-
"Referer=http://192.168.0.100/bugfree/index.php/bug/{CorrelationParameter_1}",
-
"Snapshot=t79.inf",
-
"Mode=HTML",
-
LAST);
-
-
web_custom_request("s.x.baidu.com_2",
-
"URL=http://s.x.baidu.com/",
-
"Method=POST",
-
"TargetFrame=",
-
"Resource=0",
-
"RecContentType=application/octet-stream",
-
"Referer=",
-
"Snapshot=t80.inf",
-
"Mode=HTML",
-
"EncType=application/octet-stream",
-
"BodyBinary=\\x00\\x00\\x00y\\x00\\x00\\x08\\x0B\\x10\\x01\\x18\\x00\" eb8e0f0d521396106a88e2e50eac0a70(\\xFF箑\\x80\\x80\\x80纮\\x04285袸暘\\x13m灌\\x15L鞋7洺q2XX8在z\\xF4\\x0E厞O勫?5{亽8'2\n"
-
"螳k\\x80钖H,~箦\\x1C\\x16u78\\x02@\\x00H\\x06P\\x01X鬘` \\x00\\x00\\x00@\\x00\\x00h\\x03?C}獽\\xC6\\x05l%zpZ\\xDD/荎\\xE5\\x1AG;慟\\xFC+篻r嬫造鄹]\\x17\\x0B$\\xFFEc訆蔪縋l8kH叓9炘鮶\\x0E圥\\xA3",
-
LAST);
-
-
lr_end_transaction("新建case", LR_AUTO);
-
-
lr_think_time(8);
-
-
web_url("4",
-
"URL=http://192.168.0.100/bugfree/index.php/bug/{CorrelationParameter_1}",
-
"TargetFrame=",
-
"Resource=0",
-
"RecContentType=text/html",
-
"Referer=http://192.168.0.100/bugfree/index.php/bug/list/1",
-
"Snapshot=t81.inf",
-
"Mode=HTML",
-
LAST);
-
-
web_url("getPreNextId_2",
-
"URL=http://192.168.0.100/bugfree/index.php/search/getPreNextId?id={CorrelationParameter_1}&type=bug&product_id=1",
-
"TargetFrame=",
-
"Resource=0",
-
"RecContentType=text/html",
-
"Referer=http://192.168.0.100/bugfree/index.php/bug/{CorrelationParameter_1}",
-
"Snapshot=t82.inf",
-
"Mode=HTML",
-
LAST);
-
-
lr_start_transaction("解决case");
-
-
lr_think_time(10);
-
-
web_custom_request("s.x.baidu.com_3",
-
"URL=http://s.x.baidu.com/",
-
"Method=POST",
-
"TargetFrame=",
-
"Resource=0",
-
"RecContentType=application/octet-stream",
-
"Referer=",
-
"Snapshot=t83.inf",
-
"Mode=HTML",
-
"EncType=application/octet-stream",
-
"BodyBinary=\\x00\\x00\\x00y\\x00\\x00\\x08\\x0B\\x10\\x01\\x18\\x01\" eb8e0f0d521396106a88e2e50eac0a70(\\xFF箑\\x80\\x80\\x80纮\\x04285袸暘\\x13m灌\\x15L鞋7洺q2XX8在z\\xF4\\x0E厞O勫?5{亽8'2\n"
-
"螳k\\x80钖H,~箦\\x1C\\x16u78\\x02@\\x00H\\x06P\\x01X鬘` \\x00\\x00\\x00H\\x00\\x00誠拖鵪\\x17避?\\x97\\xFFi熓\\x14锋v_襲|~锝坩t菎\\x1C\\x91,Z?\\x80⑷蕷\\xF048\\xAF\\x14軗s嫃\\x07%药2B\\xB0\\x1Af\\x04DdA\\xE2\\x0C泧幺",
-
LAST);
-
-
web_url("resolved",
-
"URL=http://192.168.0.100/bugfree/index.php/bug/{CorrelationParameter_1}/resolved",
-
"TargetFrame=",
-
"Resource=0",
-
"RecContentType=text/html",
-
"Referer=http://192.168.0.100/bugfree/index.php/bug/{CorrelationParameter_1}",
-
"Snapshot=t84.inf",
-
"Mode=HTML",
-
LAST);
-
-
lr_think_time(17);
-
-
web_submit_data("resolved_2",
-
"Action=http://192.168.0.100/bugfree/index.php/bug/{CorrelationParameter_1}/resolved",
-
"Method=POST",
-
"EncType=multipart/form-data",
-
"TargetFrame=",
-
"RecContentType=text/html",
-
"Referer=http://192.168.0.100/bugfree/index.php/bug/{CorrelationParameter_1}/resolved",
-
"Snapshot=t85.inf",
-
"Mode=HTML",
-
ITEMDATA,
-
"Name=BugInfoView[deleted_file_id]", "Value=", ENDITEM,
-
"Name=BugInfoView[lock_version]", "Value=1", ENDITEM,
-
"Name=BugInfoView[product_id]", "Value=1", ENDITEM,
-
"Name=isPageDirty", "Value=1", ENDITEM,
-
"Name=templateTitle", "Value=", ENDITEM,
-
"Name=BugInfoView[title]", "Value=case03", ENDITEM,
-
"Name=layer1_module", "Value=0", ENDITEM,
-
"Name=BugInfoView[productmodule_id]", "Value=0", ENDITEM,
-
"Name=BugInfoView[assign_to_name]", "Value=系统管理员", ENDITEM,
-
"Name=BugInfoView[mail_to]", "Value=", ENDITEM,
-
"Name=BugInfoView[severity]", "Value=1", ENDITEM,
-
"Name=BugInfoView[priority]", "Value=1", ENDITEM,
-
"Name=Custom[BugType]", "Value=用户界面", ENDITEM,
-
"Name=Custom[HowFound]", "Value=功能测试", ENDITEM,
-
"Name=Custom[BugOS]", "Value=Windows 7", ENDITEM,
-
"Name=Custom[BugBrowser]", "Value=IE 8.0", ENDITEM,
-
"Name=Custom[OpenedBuild]", "Value=B001", ENDITEM,
-
"Name=Custom[ResolvedBuild]", "Value=B002", ENDITEM,
-
"Name=BugInfoView[solution]", "Value=Fixed", ENDITEM,
-
"Name=BugInfoView[duplicate_id]", "Value=", ENDITEM,
-
"Name=Custom[BugSubStatus]", "Value=", ENDITEM,
-
"Name=Custom[BugMachine]", "Value=", ENDITEM,
-
"Name=Custom[BugKeyword]", "Value=", ENDITEM,
-
"Name=BugInfoView[related_bug]", "Value=", ENDITEM,
-
"Name=BugInfoView[related_case]", "Value=", ENDITEM,
-
"Name=BugInfoView[related_result]", "Value=", ENDITEM,
-
"Name=attachment_file[]", "Value=", "File=yes", ENDITEM,
-
"Name=BugInfoView[action_note]", "Value=已解决", ENDITEM,
-
"Name=BugInfoView[repeat_step]", "Value=[步骤]<br />\r\n"
-
"1.登录<br />\r\n"
-
"2.<br />\r\n"
-
"<br />\r\n"
-
"[结果]<br />\r\n"
-
" 登录失败<br />\r\n"
-
"[期望]<br />\r\n"
-
" 登录成功<br />\r\n"
-
"[备注]<br />\r\n"
-
"<br />", ENDITEM,
-
LAST);
-
-
web_url("BugFree_2",
-
"URL=http://192.168.0.100/bugfree/index.php/bug/list/1",
-
"TargetFrame=",
-
"Resource=0",
-
"RecContentType=text/html",
-
"Referer=http://192.168.0.100/bugfree/index.php/bug/{CorrelationParameter_1}/resolved",
-
"Snapshot=t86.inf",
-
"Mode=HTML",
-
LAST);
-
-
web_url("case03_2",
-
"URL=http://192.168.0.100/bugfree/index.php/bug/{CorrelationParameter_1}",
-
"TargetFrame=_blank",
-
"Resource=0",
-
"RecContentType=text/html",
-
"Referer=http://192.168.0.100/bugfree/index.php/bug/{CorrelationParameter_1}/resolved",
-
"Snapshot=t87.inf",
-
"Mode=HTML",
-
LAST);
-
-
web_submit_data("getProductModule_3",
-
"Action=http://192.168.0.100/bugfree/index.php/search/getProductModule",
-
"Method=POST",
-
"TargetFrame=",
-
"RecContentType=text/html",
-
"Referer=http://192.168.0.100/bugfree/index.php/bug/list/1",
-
"Snapshot=t88.inf",
-
"Mode=HTML",
-
ITEMDATA,
-
"Name=product_id", "Value=1", ENDITEM,
-
"Name=productmodule_id", "Value=0", ENDITEM,
-
LAST);
-
-
web_url("getPreNextId_3",
-
"URL=http://192.168.0.100/bugfree/index.php/search/getPreNextId?id={CorrelationParameter_1}&type=bug&product_id=1",
-
"TargetFrame=",
-
"Resource=0",
-
"RecContentType=text/html",
-
"Referer=http://192.168.0.100/bugfree/index.php/bug/{CorrelationParameter_1}",
-
"Snapshot=t89.inf",
-
"Mode=HTML",
-
LAST);
-
-
lr_end_transaction("解决case", LR_AUTO);
-
-
return 0;
-
}
-
Action()
-
{
-
-
web_add_cookie("1_product=9eb104cd00a9d6a393eb08ebacb5c5a037163480s%3A1%3A%221%22%3B; DOMAIN=192.168.0.100");
-
-
web_add_cookie("pageSize=53dc3588e660b6b16975b6e0474a2401f9a1f7bas%3A2%3A%2220%22%3B; DOMAIN=192.168.0.100");
-
-
web_add_cookie("ac-cookie=%5B%7B%22data%22%3A%5B%22%E7%B3%BB%E7%BB%9F%E7%AE%A1%E7%90%86%E5%91%98%22%2C%22%E7%B3%BB%E7%BB%9F%E7%AE%A1%E7%90%86%E5%91%98%5Badmin%5D%22%5D%2C%22value%22%3A%22%E7%B3%BB%E7%BB%9F%E7%AE%A1%E7%90%86%E5%91%98%22%2C%22result%22%3A%22%E7%B3%BB%E7%BB%9F%E7%AE%A1%E7%90%86%E5%91%98%22%7D%5D; DOMAIN=192.168.0.100");
-
-
web_add_cookie("language=1f54bcb747776c1d17a4277c793d67ca34353faes%3A5%3A%22zh_cn%22%3B; DOMAIN=192.168.0.100");
-
-
web_url("login",
-
"URL=http://192.168.0.100/bugfree/index.php/site/login",
-
"TargetFrame=",
-
"Resource=0",
-
"RecContentType=text/html",
-
"Referer=",
-
"Snapshot=t70.inf",
-
"Mode=HTML",
-
EXTRARES,
-
"URL=/bugfree/themes/classic/assets/images/blue/seperate_line.png", ENDITEM,
-
"URL=/bugfree/themes/classic/assets/images/blue/logo_login.png", ENDITEM,
-
LAST);
-
-
lr_start_transaction("登录");
-
-
web_submit_data("login_2",
-
"Action=http://192.168.0.100/bugfree/index.php/site/login",
-
"Method=POST",
-
"TargetFrame=",
-
"RecContentType=text/html",
-
"Referer=http://192.168.0.100/bugfree/index.php/site/login",
-
"Snapshot=t71.inf",
-
"Mode=HTML",
-
ITEMDATA,
-
"Name=LoginForm[username]", "Value=admin", ENDITEM,
-
"Name=LoginForm[password]", "Value=123456", ENDITEM,
-
"Name=LoginForm[language]", "Value=zh_cn", ENDITEM,
-
"Name=LoginForm[rememberMe]", "Value=0", ENDITEM,
-
EXTRARES,
-
"URL=/bugfree/themes/classic/assets/images/active.png", "Referer=http://192.168.0.100/bugfree/index.php/bug/list/1", ENDITEM,
-
"URL=/bugfree/themes/classic/assets/images/resolved.png", "Referer=http://192.168.0.100/bugfree/index.php/bug/list/1", ENDITEM,
-
"URL=/bugfree/themes/classic/assets/images/down.gif", "Referer=http://192.168.0.100/bugfree/index.php/bug/list/1", ENDITEM,
-
"URL=/bugfree/assets/bceb9043/jui/css/base/images/ui-bg_flat_75_ffffff_40x100.png", "Referer=http://192.168.0.100/bugfree/index.php/bug/list/1", ENDITEM,
-
"URL=/bugfree/assets/627dec5d/img/page.gif", "Referer=http://192.168.0.100/bugfree/index.php/bug/list/1", ENDITEM,
-
"URL=/bugfree/assets/bceb9043/jui/css/base/images/ui-bg_highlight-soft_75_cccccc_1x100.png", "Referer=http://192.168.0.100/bugfree/index.php/bug/list/1", ENDITEM,
-
"URL=/bugfree/assets/bceb9043/jui/css/base/images/ui-icons_222222_256x240.png", "Referer=http://192.168.0.100/bugfree/index.php/bug/list/1", ENDITEM,
-
LAST);
-
-
web_submit_data("getProductModule",
-
"Action=http://192.168.0.100/bugfree/index.php/search/getProductModule",
-
"Method=POST",
-
"TargetFrame=",
-
"RecContentType=text/html",
-
"Referer=http://192.168.0.100/bugfree/index.php/bug/list/1",
-
"Snapshot=t72.inf",
-
"Mode=HTML",
-
ITEMDATA,
-
"Name=product_id", "Value=1", ENDITEM,
-
"Name=productmodule_id", "Value=0", ENDITEM,
-
LAST);
-
-
lr_end_transaction("登录", LR_AUTO);
-
-
lr_start_transaction("新建case");
-
-
lr_think_time(13);
-
-
web_url("edit",
-
"URL=http://192.168.0.100/bugfree/index.php/info/edit?type=bug&action=opened&product_id=1",
-
"TargetFrame=",
-
"Resource=0",
-
"RecContentType=text/html",
-
"Referer=http://192.168.0.100/bugfree/index.php/bug/list/1",
-
"Snapshot=t73.inf",
-
"Mode=HTML",
-
EXTRARES,
-
"URL=/bugfree/assets/5839844b/themes/default/default.css", "Referer=http://192.168.0.100/bugfree/index.php/info/edit?type=bug&action=opened&product_id=1", ENDITEM,
-
"URL=/bugfree/assets/5839844b/themes/default/default.png", "Referer=http://192.168.0.100/bugfree/index.php/info/edit?type=bug&action=opened&product_id=1", ENDITEM,
-
"URL=/bugfree/assets/31570e3b/indicator.gif", "Referer=http://192.168.0.100/bugfree/index.php/info/edit?type=bug&action=opened&product_id=1", ENDITEM,
-
LAST);
-
-
lr_think_time(35);
-
-
web_reg_find("Search=All",
-
"TextPfx=/bug/",
-
"TextSfx=\"",
-
LAST);
-
//Correlation comment - Do not change!Original value='4' Name ='CorrelationParameter_1'
-
-
web_reg_save_param(
-
"CorrelationParameter_1",
-
"LB=bug/",
-
"RB=';</script",
-
"Ordinal=5",
-
SEARCH_FILTERS,
-
"Scope=All",
-
"RequestUrl=*/edit*",
-
LAST);
-
-
web_submit_data("edit_2",
-
"Action=http://192.168.0.100/bugfree/index.php/info/edit?type=bug&action=opened&product_id=1",
-
"Method=POST",
-
"EncType=multipart/form-data",
-
"TargetFrame=",
-
"RecContentType=text/html",
-
"Referer=http://192.168.0.100/bugfree/index.php/info/edit?type=bug&action=opened&product_id=1",
-
"Snapshot=t74.inf",
-
"Mode=HTML",
-
ITEMDATA,
-
"Name=BugInfoView[deleted_file_id]", "Value=", ENDITEM,
-
"Name=BugInfoView[lock_version]", "Value=", ENDITEM,
-
"Name=BugInfoView[product_id]", "Value=1", ENDITEM,
-
"Name=isPageDirty", "Value=1", ENDITEM,
-
"Name=templateTitle", "Value=", ENDITEM,
-
"Name=BugInfoView[title]", "Value=case03", ENDITEM,
-
"Name=layer1_module", "Value=0", ENDITEM,
-
"Name=BugInfoView[productmodule_id]", "Value=0", ENDITEM,
-
"Name=BugInfoView[assign_to_name]", "Value=系统管理员", ENDITEM,
-
"Name=BugInfoView[mail_to]", "Value=", ENDITEM,
-
"Name=BugInfoView[severity]", "Value=1", ENDITEM,
-
"Name=BugInfoView[priority]", "Value=1", ENDITEM,
-
"Name=Custom[BugType]", "Value=用户界面", ENDITEM,
-
"Name=Custom[HowFound]", "Value=功能测试", ENDITEM,
-
"Name=Custom[BugOS]", "Value=Windows 7", ENDITEM,
-
"Name=Custom[BugBrowser]", "Value=IE 8.0", ENDITEM,
-
"Name=Custom[OpenedBuild]", "Value=B001", ENDITEM,
-
"Name=Custom[ResolvedBuild]", "Value=", ENDITEM,
-
"Name=Custom[BugSubStatus]", "Value=", ENDITEM,
-
"Name=Custom[BugMachine]", "Value=", ENDITEM,
-
"Name=Custom[BugKeyword]", "Value=", ENDITEM,
-
"Name=BugInfoView[related_bug]", "Value=", ENDITEM,
-
"Name=BugInfoView[related_case]", "Value=", ENDITEM,
-
"Name=BugInfoView[related_result]", "Value=", ENDITEM,
-
"Name=attachment_file[]", "Value=", "File=yes", ENDITEM,
-
"Name=BugInfoView[action_note]", "Value=登录失败", ENDITEM,
-
"Name=BugInfoView[repeat_step]", "Value=[步骤]<br />\r\n"
-
"1.登录<br />\r\n"
-
"2.<br />\r\n"
-
"<br />\r\n"
-
"[结果]<br />\r\n"
-
" 登录失败<br />\r\n"
-
"[期望]<br />\r\n"
-
" 登录成功<br />\r\n"
-
"[备注]<br />\r\n"
-
"<br />", ENDITEM,
-
LAST);
-
-
web_url("BugFree",
-
"URL=http://192.168.0.100/bugfree/index.php/bug/list/1",
-
"TargetFrame=",
-
"Resource=0",
-
"RecContentType=text/html",
-
"Referer=http://192.168.0.100/bugfree/index.php/info/edit?type=bug&action=opened&product_id=1",
-
"Snapshot=t75.inf",
-
"Mode=HTML",
-
LAST);
-
-
web_url("case03",
-
"URL=http://192.168.0.100/bugfree/index.php/bug/{CorrelationParameter_1}",
-
"TargetFrame=_blank",
-
"Resource=0",
-
"RecContentType=text/html",
-
"Referer=http://192.168.0.100/bugfree/index.php/info/edit?type=bug&action=opened&product_id=1",
-
"Snapshot=t76.inf",
-
"Mode=HTML",
-
LAST);
-
-
web_custom_request("s.x.baidu.com",
-
"URL=http://s.x.baidu.com/",
-
"Method=POST",
-
"TargetFrame=",
-
"Resource=0",
-
"RecContentType=application/octet-stream",
-
"Referer=",
-
"Snapshot=t77.inf",
-
"Mode=HTML",
-
"EncType=application/octet-stream",
-
"BodyBinary=\\x00\\x00\\x00A\\x00\\x00\\x08\\x0B\\x10\\x01\\x18\\x00\" eb8e0f0d521396106a88e2e50eac0a70(\\xFF箑\\x80\\x80\\x80纮\\x042\\x008\\x02@\\x00H\\x06P\\x01X鬘` \\x00\\x00\\x00\\x00\\x00\\x00",
-
LAST);
-
-
web_submit_data("getProductModule_2",
-
"Action=http://192.168.0.100/bugfree/index.php/search/getProductModule",
-
"Method=POST",
-
"TargetFrame=",
-
"RecContentType=text/html",
-
"Referer=http://192.168.0.100/bugfree/index.php/bug/list/1",
-
"Snapshot=t78.inf",
-
"Mode=HTML",
-
ITEMDATA,
-
"Name=product_id", "Value=1", ENDITEM,
-
"Name=productmodule_id", "Value=0", ENDITEM,
-
LAST);
-
-
web_url("getPreNextId",
-
"URL=http://192.168.0.100/bugfree/index.php/search/getPreNextId?id={CorrelationParameter_1}&type=bug&product_id=1",
-
"TargetFrame=",
-
"Resource=0",
-
"RecContentType=text/html",
-
"Referer=http://192.168.0.100/bugfree/index.php/bug/{CorrelationParameter_1}",
-
"Snapshot=t79.inf",
-
"Mode=HTML",
-
LAST);
-
-
web_custom_request("s.x.baidu.com_2",
-
"URL=http://s.x.baidu.com/",
-
"Method=POST",
-
"TargetFrame=",
-
"Resource=0",
-
"RecContentType=application/octet-stream",
-
"Referer=",
-
"Snapshot=t80.inf",
-
"Mode=HTML",
-
"EncType=application/octet-stream",
-
"BodyBinary=\\x00\\x00\\x00y\\x00\\x00\\x08\\x0B\\x10\\x01\\x18\\x00\" eb8e0f0d521396106a88e2e50eac0a70(\\xFF箑\\x80\\x80\\x80纮\\x04285袸暘\\x13m灌\\x15L鞋7洺q2XX8在z\\xF4\\x0E厞O勫?5{亽8'2\n"
-
"螳k\\x80钖H,~箦\\x1C\\x16u78\\x02@\\x00H\\x06P\\x01X鬘` \\x00\\x00\\x00@\\x00\\x00h\\x03?C}獽\\xC6\\x05l%zpZ\\xDD/荎\\xE5\\x1AG;慟\\xFC+篻r嬫造鄹]\\x17\\x0B$\\xFFEc訆蔪縋l8kH叓9炘鮶\\x0E圥\\xA3",
-
LAST);
-
-
lr_end_transaction("新建case", LR_AUTO);
-
-
lr_think_time(8);
-
-
web_url("4",
-
"URL=http://192.168.0.100/bugfree/index.php/bug/{CorrelationParameter_1}",
-
"TargetFrame=",
-
"Resource=0",
-
"RecContentType=text/html",
-
"Referer=http://192.168.0.100/bugfree/index.php/bug/list/1",
-
"Snapshot=t81.inf",
-
"Mode=HTML",
-
LAST);
-
-
web_url("getPreNextId_2",
-
"URL=http://192.168.0.100/bugfree/index.php/search/getPreNextId?id={CorrelationParameter_1}&type=bug&product_id=1",
-
"TargetFrame=",
-
"Resource=0",
-
"RecContentType=text/html",
-
"Referer=http://192.168.0.100/bugfree/index.php/bug/{CorrelationParameter_1}",
-
"Snapshot=t82.inf",
-
"Mode=HTML",
-
LAST);
-
-
lr_start_transaction("解决case");
-
-
lr_think_time(10);
-
-
web_custom_request("s.x.baidu.com_3",
-
"URL=http://s.x.baidu.com/",
-
"Method=POST",
-
"TargetFrame=",
-
"Resource=0",
-
"RecContentType=application/octet-stream",
-
"Referer=",
-
"Snapshot=t83.inf",
-
"Mode=HTML",
-
"EncType=application/octet-stream",
-
"BodyBinary=\\x00\\x00\\x00y\\x00\\x00\\x08\\x0B\\x10\\x01\\x18\\x01\" eb8e0f0d521396106a88e2e50eac0a70(\\xFF箑\\x80\\x80\\x80纮\\x04285袸暘\\x13m灌\\x15L鞋7洺q2XX8在z\\xF4\\x0E厞O勫?5{亽8'2\n"
-
"螳k\\x80钖H,~箦\\x1C\\x16u78\\x02@\\x00H\\x06P\\x01X鬘` \\x00\\x00\\x00H\\x00\\x00誠拖鵪\\x17避?\\x97\\xFFi熓\\x14锋v_襲|~锝坩t菎\\x1C\\x91,Z?\\x80⑷蕷\\xF048\\xAF\\x14軗s嫃\\x07%药2B\\xB0\\x1Af\\x04DdA\\xE2\\x0C泧幺",
-
LAST);
-
-
web_url("resolved",
-
"URL=http://192.168.0.100/bugfree/index.php/bug/{CorrelationParameter_1}/resolved",
-
"TargetFrame=",
-
"Resource=0",
-
"RecContentType=text/html",
-
"Referer=http://192.168.0.100/bugfree/index.php/bug/{CorrelationParameter_1}",
-
"Snapshot=t84.inf",
-
"Mode=HTML",
-
LAST);
-
-
lr_think_time(17);
-
-
web_submit_data("resolved_2",
-
"Action=http://192.168.0.100/bugfree/index.php/bug/{CorrelationParameter_1}/resolved",
-
"Method=POST",
-
"EncType=multipart/form-data",
-
"TargetFrame=",
-
"RecContentType=text/html",
-
"Referer=http://192.168.0.100/bugfree/index.php/bug/{CorrelationParameter_1}/resolved",
-
"Snapshot=t85.inf",
-
"Mode=HTML",
-
ITEMDATA,
-
"Name=BugInfoView[deleted_file_id]", "Value=", ENDITEM,
-
"Name=BugInfoView[lock_version]", "Value=1", ENDITEM,
-
"Name=BugInfoView[product_id]", "Value=1", ENDITEM,
-
"Name=isPageDirty", "Value=1", ENDITEM,
-
"Name=templateTitle", "Value=", ENDITEM,
-
"Name=BugInfoView[title]", "Value=case03", ENDITEM,
-
"Name=layer1_module", "Value=0", ENDITEM,
-
"Name=BugInfoView[productmodule_id]", "Value=0", ENDITEM,
-
"Name=BugInfoView[assign_to_name]", "Value=系统管理员", ENDITEM,
-
"Name=BugInfoView[mail_to]", "Value=", ENDITEM,
-
"Name=BugInfoView[severity]", "Value=1", ENDITEM,
-
"Name=BugInfoView[priority]", "Value=1", ENDITEM,
-
"Name=Custom[BugType]", "Value=用户界面", ENDITEM,
-
"Name=Custom[HowFound]", "Value=功能测试", ENDITEM,
-
"Name=Custom[BugOS]", "Value=Windows 7", ENDITEM,
-
"Name=Custom[BugBrowser]", "Value=IE 8.0", ENDITEM,
-
"Name=Custom[OpenedBuild]", "Value=B001", ENDITEM,
-
"Name=Custom[ResolvedBuild]", "Value=B002", ENDITEM,
-
"Name=BugInfoView[solution]", "Value=Fixed", ENDITEM,
-
"Name=BugInfoView[duplicate_id]", "Value=", ENDITEM,
-
"Name=Custom[BugSubStatus]", "Value=", ENDITEM,
-
"Name=Custom[BugMachine]", "Value=", ENDITEM,
-
"Name=Custom[BugKeyword]", "Value=", ENDITEM,
-
"Name=BugInfoView[related_bug]", "Value=", ENDITEM,
-
"Name=BugInfoView[related_case]", "Value=", ENDITEM,
-
"Name=BugInfoView[related_result]", "Value=", ENDITEM,
-
"Name=attachment_file[]", "Value=", "File=yes", ENDITEM,
-
"Name=BugInfoView[action_note]", "Value=已解决", ENDITEM,
-
"Name=BugInfoView[repeat_step]", "Value=[步骤]<br />\r\n"
-
"1.登录<br />\r\n"
-
"2.<br />\r\n"
-
"<br />\r\n"
-
"[结果]<br />\r\n"
-
" 登录失败<br />\r\n"
-
"[期望]<br />\r\n"
-
" 登录成功<br />\r\n"
-
"[备注]<br />\r\n"
-
"<br />", ENDITEM,
-
LAST);
-
-
web_url("BugFree_2",
-
"URL=http://192.168.0.100/bugfree/index.php/bug/list/1",
-
"TargetFrame=",
-
"Resource=0",
-
"RecContentType=text/html",
-
"Referer=http://192.168.0.100/bugfree/index.php/bug/{CorrelationParameter_1}/resolved",
-
"Snapshot=t86.inf",
-
"Mode=HTML",
-
LAST);
-
-
web_url("case03_2",
-
"URL=http://192.168.0.100/bugfree/index.php/bug/{CorrelationParameter_1}",
-
"TargetFrame=_blank",
-
"Resource=0",
-
"RecContentType=text/html",
-
"Referer=http://192.168.0.100/bugfree/index.php/bug/{CorrelationParameter_1}/resolved",
-
"Snapshot=t87.inf",
-
"Mode=HTML",
-
LAST);
-
-
web_submit_data("getProductModule_3",
-
"Action=http://192.168.0.100/bugfree/index.php/search/getProductModule",
-
"Method=POST",
-
"TargetFrame=",
-
"RecContentType=text/html",
-
"Referer=http://192.168.0.100/bugfree/index.php/bug/list/1",
-
"Snapshot=t88.inf",
-
"Mode=HTML",
-
ITEMDATA,
-
"Name=product_id", "Value=1", ENDITEM,
-
"Name=productmodule_id", "Value=0", ENDITEM,
-
LAST);
-
-
web_url("getPreNextId_3",
-
"URL=http://192.168.0.100/bugfree/index.php/search/getPreNextId?id={CorrelationParameter_1}&type=bug&product_id=1",
-
"TargetFrame=",
-
"Resource=0",
-
"RecContentType=text/html",
-
"Referer=http://192.168.0.100/bugfree/index.php/bug/{CorrelationParameter_1}",
-
"Snapshot=t89.inf",
-
"Mode=HTML",
-
LAST);
-
-
lr_end_transaction("解决case", LR_AUTO);
-
-
return 0;
-
}
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/21112063/viewspace-1792882/
,如需转载,请注明出处,否则将追究法律责任。