Loadrunner查询博客列表并循环删除博客列表中的所有博客

Posted testway

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Loadrunner查询博客列表并循环删除博客列表中的所有博客相关的知识,希望对你有一定的参考价值。

Loadrunner查询博客列表并循环删除博客列表中的所有博客,在博客列表请求中使用关联,获取出列表中博客的数量,并找出博客列表请求的必要参数。关联使用Ordinal=All 找出所有匹配值

查找出所有相关信息再循环逐个删除

 // 查询博客列表,关联出博客id,删除参数_wpnonce, 用Ordinal=All匹配出所有博客
    web_reg_save_param("_wpnonce","LB=\;_wpnonce=","RB=\" class=\"submitdelete","Ordinal=All",LAST);
    web_reg_save_param("id","LB=tr id=\"post-","RB=\" class=","Ordinal=All",LAST);

完整代码

Action()
    
    int i;
    int count;
    char c_id[12];
    char c_nonce[18];
    // 打开登陆页
    web_url("wp-login.php", 
        "URL=http://autotest/wordpress/wp-login.php", 
        "Resource=0", 
        "RecContentType=text/html", 
        "Referer=", 
        "Snapshot=t19.inf", 
        "Mode=HTTP", 
        LAST);
    // 登录
    web_submit_data("wp-login.php_2", 
        "Action=http://autotest/wordpress/wp-login.php", 
        "Method=POST", 
        "RecContentType=text/html", 
        "Referer=http://autotest/wordpress/wp-login.php", 
        "Snapshot=t20.inf", 
        "Mode=HTTP", 
        ITEMDATA, 
        "Name=log", "Value=admin", ENDITEM, 
        "Name=pwd", "Value=123456", ENDITEM, 
        "Name=wp-submit", "Value=鐧诲綍", ENDITEM, 
        "Name=redirect_to", "Value=http://autotest/wordpress/wp-admin/", ENDITEM, 
        "Name=testcookie", "Value=1", ENDITEM, 
        LAST);
    

    // 查询博客列表,关联出博客id,删除参数_wpnonce, 用Ordinal=All匹配出所有博客
    web_reg_save_param("_wpnonce","LB=\;_wpnonce=","RB=\" class=\"submitdelete","Ordinal=All",LAST);
    web_reg_save_param("id","LB=tr id=\"post-","RB=\" class=","Ordinal=All",LAST);

    web_url("edit.php", 
        "URL=http://autotest/wordpress/wp-admin/edit.php", 
        "Resource=0", 
        "RecContentType=text/html", 
        "Referer=http://autotest/wordpress/wp-admin/edit.php", 
        "Snapshot=t28.inf", 
        "Mode=HTTP", 
    LAST);
    // 找出博客数量 以便循环
    count = atoi(lr_eval_string("id_count"));
    lr_message("count:%d:",count);
    for(i=1;i<=count;i++)
        // 组装id_1 id_2 ...  格式,并赋值给c语言变量c_id
        sprintf(c_id, "id_%d", i );    
            lr_output_message("post id  c 变量  %s ",  lr_eval_string(c_id) );    
        // 把c变量变成 loadrunner参数             
            lr_save_string(lr_eval_string(c_id),"lr_id");
        // 组装_wpnonce_1 _wpnonce_2 ...  格式,并赋值给c语言变量c_nonce
            sprintf(c_nonce, "_wpnonce_%d", i );    
            lr_output_message("nonce  c 变量  %s ",  lr_eval_string(c_nonce) );        
            // 把c变量变成 loadrunner参数     
            lr_save_string(lr_eval_string(c_nonce),"lr_nonce");
        //把post参数值替换为lr_id,把_wpnonce参数替换为  lr_nonce值
        web_url("回收站", 
            "URL=http://autotest/wordpress/wp-admin/post.php?post=lr_id&action=trash&_wpnonce=lr_nonce", 
            "Resource=0", 
            "RecContentType=text/html", 
            "Referer=http://autotest/wordpress/wp-admin/edit.php", 
            "Snapshot=t29.inf", 
            "Mode=HTTP", 
        LAST);
    
    
    return 0;

执行结果

Virtual User Script started at: 2019/8/11 21:28:34
Starting action vuser_init.
Web Turbo Replay of LoadRunner 12.60.0 for Windows 10; build 971 (8月 09 2018 11:27:13) [MsgId: MMSG-26983]
Run mode: HTML [MsgId: MMSG-26993]
Replay user agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36 [MsgId: MMSG-26988]
Runtime Settings file: "C:\Users\think\Documents\VuGen\Scripts\WebHttpHtml18\\default.cfg" [MsgId: MMSG-27141]
Ending action vuser_init.
Running Vuser...
Starting iteration 1.
Maximum number of concurrent connections per server: 6 [MsgId: MMSG-26989]
Starting action Action.
Action.c(8): web_url("wp-login.php") started [MsgId: MMSG-26355]
Action.c(8): web_url("wp-login.php") was successful, 2349 body bytes, 477 header bytes [MsgId: MMSG-26386]
Action.c(17): web_submit_data("wp-login.php_2") started [MsgId: MMSG-26355]
Action.c(17): Redirecting "http://autotest/wordpress/wp-login.php" (redirection depth is 0) [MsgId: MMSG-26694]
Action.c(17): To location "http://autotest/wordpress/wp-admin/" [MsgId: MMSG-26693]
Action.c(17): web_submit_data("wp-login.php_2") was successful, 59583 body bytes, 1945 header bytes, 61 chunking overhead bytes [MsgId: MMSG-26385]
Action.c(34): web_reg_save_param started [MsgId: MMSG-26355]
Action.c(34): Registering web_reg_save_param was successful [MsgId: MMSG-26390]
Action.c(35): web_reg_save_param started [MsgId: MMSG-26355]
Action.c(35): Registering web_reg_save_param was successful [MsgId: MMSG-26390]
Action.c(37): web_url("edit.php") started [MsgId: MMSG-26355]
Action.c(37): Notify: Saving Parameter "id_1 = 1708".
Action.c(37): Notify: Saving Parameter "_wpnonce_1 = 8cb9046989".
Action.c(37): Notify: Saving Parameter "id_2 = 1701".
Action.c(37): Notify: Saving Parameter "_wpnonce_2 = 916416b2a3".
Action.c(37): Notify: Saving Parameter "id_3 = 1703".
Action.c(37): Notify: Saving Parameter "_wpnonce_3 = f08a5e26f5".
Action.c(37): Notify: Saving Parameter "id_4 = 1702".
Action.c(37): Notify: Saving Parameter "_wpnonce_4 = b92c4098ea".
Action.c(37): Notify: Saving Parameter "id_5 = 1696".
Action.c(37): Notify: Saving Parameter "_wpnonce_5 = dbdfd7cf13".
Action.c(37): Notify: Saving Parameter "id_6 = 1693".
Action.c(37): Notify: Saving Parameter "_wpnonce_6 = 0c95e8ce8e".
Action.c(37): Notify: Saving Parameter "id_7 = 1694".
Action.c(37): Notify: Saving Parameter "_wpnonce_7 = 782b95dc99".
Action.c(37): Notify: Saving Parameter "id_8 = 1695".
Action.c(37): Notify: Saving Parameter "_wpnonce_8 = f9ad3b99ff".
Action.c(37): Notify: Saving Parameter "id_9 = 1684".
Action.c(37): Notify: Saving Parameter "_wpnonce_9 = 50324b4dea".
Action.c(37): Notify: Saving Parameter "id_10 = 1687".
Action.c(37): Notify: Saving Parameter "_wpnonce_10 = 4ca0a7ab99".
Action.c(37): Notify: Saving Parameter "id_11 = 1685".
Action.c(37): Notify: Saving Parameter "_wpnonce_11 = 8401a1ab7d".
Action.c(37): Notify: Saving Parameter "id_12 = 1686".
Action.c(37): Notify: Saving Parameter "_wpnonce_12 = 8ee456f365".
Action.c(37): Notify: Saving Parameter "id_13 = 1683".
Action.c(37): Notify: Saving Parameter "_wpnonce_13 = d7ef5966ec".
Action.c(37): Notify: Saving Parameter "id_14 = 1676".
Action.c(37): Notify: Saving Parameter "_wpnonce_14 = 5df44fbfe3".
Action.c(37): Notify: Saving Parameter "id_15 = 1677".
Action.c(37): Notify: Saving Parameter "_wpnonce_15 = bb6e715bfd".
Action.c(37): Notify: Saving Parameter "id_16 = 1673".
Action.c(37): Notify: Saving Parameter "_wpnonce_16 = d8b751ddef".
Action.c(37): Notify: Saving Parameter "id_17 = 1675".
Action.c(37): Notify: Saving Parameter "_wpnonce_17 = dfa9ebafd0".
Action.c(37): Notify: Saving Parameter "id_18 = 1674".
Action.c(37): Notify: Saving Parameter "_wpnonce_18 = a1b9b52c2b".
Action.c(37): Notify: Saving Parameter "id_19 = 1667".
Action.c(37): Notify: Saving Parameter "_wpnonce_19 = bd7f3ef24d".
Action.c(37): Notify: Saving Parameter "id_20 = 1669".
Action.c(37): Notify: Saving Parameter "_wpnonce_20 = 17b1a92aeb".
Action.c(37): Notify: Saving Parameter "_wpnonce_count = 20".
Action.c(37): Notify: Saving Parameter "id_count = 20".
Action.c(37): web_url("edit.php") was successful, 110210 body bytes, 463 header bytes, 109 chunking overhead bytes [MsgId: MMSG-26385]
Action.c(46): Notify: Parameter Substitution: parameter "id_count" = "20"
count:20:
Action.c(51): Notify: Parameter Substitution: parameter "id_1" = "1708"
Action.c(51): post id c 变量 1708
Action.c(53): Notify: Parameter Substitution: parameter "id_1" = "1708"
Action.c(53): Notify: Saving Parameter "lr_id = 1708".
Action.c(56): Notify: Parameter Substitution: parameter "_wpnonce_1" = "8cb9046989"
Action.c(56): nonce c 变量 8cb9046989
Action.c(58): Notify: Parameter Substitution: parameter "_wpnonce_1" = "8cb9046989"
Action.c(58): Notify: Saving Parameter "lr_nonce = 8cb9046989".
Action.c(60): web_url("回收站") started [MsgId: MMSG-26355]
Action.c(60): Notify: Parameter Substitution: parameter "lr_id" = "1708"
Action.c(60): Notify: Parameter Substitution: parameter "lr_nonce" = "8cb9046989"
Action.c(60): Redirecting "http://autotest/wordpress/wp-admin/post.php?post=1708&action=trash&_wpnonce=8cb9046989" (redirection depth is 0) [MsgId: MMSG-26694]
Action.c(60): To location "http://autotest/wordpress/wp-admin/edit.php?trashed=1&ids=1708" [MsgId: MMSG-26693]
Action.c(60): web_url("回收站") was successful, 110584 body bytes, 994 header bytes, 109 chunking overhead bytes [MsgId: MMSG-26385]
Action.c(51): Notify: Parameter Substitution: parameter "id_2" = "1701"
Action.c(51): post id c 变量 1701
Action.c(53): Notify: Parameter Substitution: parameter "id_2" = "1701"
Action.c(53): Notify: Saving Parameter "lr_id = 1701".
Action.c(56): Notify: Parameter Substitution: parameter "_wpnonce_2" = "916416b2a3"
Action.c(56): nonce c 变量 916416b2a3
Action.c(58): Notify: Parameter Substitution: parameter "_wpnonce_2" = "916416b2a3"
Action.c(58): Notify: Saving Parameter "lr_nonce = 916416b2a3".
Action.c(60): web_url("回收站") started [MsgId: MMSG-26355]
Action.c(60): Notify: Parameter Substitution: parameter "lr_id" = "1701"
Action.c(60): Notify: Parameter Substitution: parameter "lr_nonce" = "916416b2a3"
Action.c(60): Redirecting "http://autotest/wordpress/wp-admin/post.php?post=1701&action=trash&_wpnonce=916416b2a3" (redirection depth is 0) [MsgId: MMSG-26694]
Action.c(60): To location "http://autotest/wordpress/wp-admin/edit.php?trashed=1&ids=1701" [MsgId: MMSG-26693]
Action.c(60): web_url("回收站") was successful, 110584 body bytes, 994 header bytes, 109 chunking overhead bytes [MsgId: MMSG-26385]
Action.c(51): Notify: Parameter Substitution: parameter "id_3" = "1703"
Action.c(51): post id c 变量 1703
Action.c(53): Notify: Parameter Substitution: parameter "id_3" = "1703"
Action.c(53): Notify: Saving Parameter "lr_id = 1703".
Action.c(56): Notify: Parameter Substitution: parameter "_wpnonce_3" = "f08a5e26f5"
Action.c(56): nonce c 变量 f08a5e26f5
Action.c(58): Notify: Parameter Substitution: parameter "_wpnonce_3" = "f08a5e26f5"
Action.c(58): Notify: Saving Parameter "lr_nonce = f08a5e26f5".
Action.c(60): web_url("回收站") started [MsgId: MMSG-26355]
Action.c(60): Notify: Parameter Substitution: parameter "lr_id" = "1703"
Action.c(60): Notify: Parameter Substitution: parameter "lr_nonce" = "f08a5e26f5"
Action.c(60): Redirecting "http://autotest/wordpress/wp-admin/post.php?post=1703&action=trash&_wpnonce=f08a5e26f5" (redirection depth is 0) [MsgId: MMSG-26694]
Action.c(60): To location "http://autotest/wordpress/wp-admin/edit.php?trashed=1&ids=1703" [MsgId: MMSG-26693]
Action.c(60): web_url("回收站") was successful, 110584 body bytes, 994 header bytes, 109 chunking overhead bytes [MsgId: MMSG-26385]
Action.c(51): Notify: Parameter Substitution: parameter "id_4" = "1702"
Action.c(51): post id c 变量 1702
Action.c(53): Notify: Parameter Substitution: parameter "id_4" = "1702"
Action.c(53): Notify: Saving Parameter "lr_id = 1702".
Action.c(56): Notify: Parameter Substitution: parameter "_wpnonce_4" = "b92c4098ea"
Action.c(56): nonce c 变量 b92c4098ea
Action.c(58): Notify: Parameter Substitution: parameter "_wpnonce_4" = "b92c4098ea"
Action.c(58): Notify: Saving Parameter "lr_nonce = b92c4098ea".
Action.c(60): web_url("回收站") started [MsgId: MMSG-26355]
Action.c(60): Notify: Parameter Substitution: parameter "lr_id" = "1702"
Action.c(60): Notify: Parameter Substitution: parameter "lr_nonce" = "b92c4098ea"
Action.c(60): Redirecting "http://autotest/wordpress/wp-admin/post.php?post=1702&action=trash&_wpnonce=b92c4098ea" (redirection depth is 0) [MsgId: MMSG-26694]
Action.c(60): To location "http://autotest/wordpress/wp-admin/edit.php?trashed=1&ids=1702" [MsgId: MMSG-26693]
Action.c(60): web_url("回收站") was successful, 110584 body bytes, 994 header bytes, 109 chunking overhead bytes [MsgId: MMSG-26385]
Action.c(51): Notify: Parameter Substitution: parameter "id_5" = "1696"
Action.c(51): post id c 变量 1696
Action.c(53): Notify: Parameter Substitution: parameter "id_5" = "1696"
Action.c(53): Notify: Saving Parameter "lr_id = 1696".
Action.c(56): Notify: Parameter Substitution: parameter "_wpnonce_5" = "dbdfd7cf13"
Action.c(56): nonce c 变量 dbdfd7cf13
Action.c(58): Notify: Parameter Substitution: parameter "_wpnonce_5" = "dbdfd7cf13"
Action.c(58): Notify: Saving Parameter "lr_nonce = dbdfd7cf13".
Action.c(60): web_url("回收站") started [MsgId: MMSG-26355]
Action.c(60): Notify: Parameter Substitution: parameter "lr_id" = "1696"
Action.c(60): Notify: Parameter Substitution: parameter "lr_nonce" = "dbdfd7cf13"
Action.c(60): Redirecting "http://autotest/wordpress/wp-admin/post.php?post=1696&action=trash&_wpnonce=dbdfd7cf13" (redirection depth is 0) [MsgId: MMSG-26694]
Action.c(60): To location "http://autotest/wordpress/wp-admin/edit.php?trashed=1&ids=1696" [MsgId: MMSG-26693]
Action.c(60): web_url("回收站") was successful, 110584 body bytes, 994 header bytes, 109 chunking overhead bytes [MsgId: MMSG-26385]
Action.c(51): Notify: Parameter Substitution: parameter "id_6" = "1693"
Action.c(51): post id c 变量 1693
Action.c(53): Notify: Parameter Substitution: parameter "id_6" = "1693"
Action.c(53): Notify: Saving Parameter "lr_id = 1693".
Action.c(56): Notify: Parameter Substitution: parameter "_wpnonce_6" = "0c95e8ce8e"
Action.c(56): nonce c 变量 0c95e8ce8e
Action.c(58): Notify: Parameter Substitution: parameter "_wpnonce_6" = "0c95e8ce8e"
Action.c(58): Notify: Saving Parameter "lr_nonce = 0c95e8ce8e".
Action.c(60): web_url("回收站") started [MsgId: MMSG-26355]
Action.c(60): Notify: Parameter Substitution: parameter "lr_id" = "1693"
Action.c(60): Notify: Parameter Substitution: parameter "lr_nonce" = "0c95e8ce8e"
Action.c(60): Redirecting "http://autotest/wordpress/wp-admin/post.php?post=1693&action=trash&_wpnonce=0c95e8ce8e" (redirection depth is 0) [MsgId: MMSG-26694]
Action.c(60): To location "http://autotest/wordpress/wp-admin/edit.php?trashed=1&ids=1693" [MsgId: MMSG-26693]
Action.c(60): web_url("回收站") was successful, 110584 body bytes, 994 header bytes, 109 chunking overhead bytes [MsgId: MMSG-26385]
Action.c(51): Notify: Parameter Substitution: parameter "id_7" = "1694"
Action.c(51): post id c 变量 1694
Action.c(53): Notify: Parameter Substitution: parameter "id_7" = "1694"
Action.c(53): Notify: Saving Parameter "lr_id = 1694".
Action.c(56): Notify: Parameter Substitution: parameter "_wpnonce_7" = "782b95dc99"
Action.c(56): nonce c 变量 782b95dc99
Action.c(58): Notify: Parameter Substitution: parameter "_wpnonce_7" = "782b95dc99"
Action.c(58): Notify: Saving Parameter "lr_nonce = 782b95dc99".
Action.c(60): web_url("回收站") started [MsgId: MMSG-26355]
Action.c(60): Notify: Parameter Substitution: parameter "lr_id" = "1694"
Action.c(60): Notify: Parameter Substitution: parameter "lr_nonce" = "782b95dc99"
Action.c(60): Redirecting "http://autotest/wordpress/wp-admin/post.php?post=1694&action=trash&_wpnonce=782b95dc99" (redirection depth is 0) [MsgId: MMSG-26694]
Action.c(60): To location "http://autotest/wordpress/wp-admin/edit.php?trashed=1&ids=1694" [MsgId: MMSG-26693]
Action.c(60): web_url("回收站") was successful, 110584 body bytes, 994 header bytes, 109 chunking overhead bytes [MsgId: MMSG-26385]
Action.c(51): Notify: Parameter Substitution: parameter "id_8" = "1695"
Action.c(51): post id c 变量 1695
Action.c(53): Notify: Parameter Substitution: parameter "id_8" = "1695"
Action.c(53): Notify: Saving Parameter "lr_id = 1695".
Action.c(56): Notify: Parameter Substitution: parameter "_wpnonce_8" = "f9ad3b99ff"
Action.c(56): nonce c 变量 f9ad3b99ff
Action.c(58): Notify: Parameter Substitution: parameter "_wpnonce_8" = "f9ad3b99ff"
Action.c(58): Notify: Saving Parameter "lr_nonce = f9ad3b99ff".
Action.c(60): web_url("回收站") started [MsgId: MMSG-26355]
Action.c(60): Notify: Parameter Substitution: parameter "lr_id" = "1695"
Action.c(60): Notify: Parameter Substitution: parameter "lr_nonce" = "f9ad3b99ff"
Action.c(60): Redirecting "http://autotest/wordpress/wp-admin/post.php?post=1695&action=trash&_wpnonce=f9ad3b99ff" (redirection depth is 0) [MsgId: MMSG-26694]
Action.c(60): To location "http://autotest/wordpress/wp-admin/edit.php?trashed=1&ids=1695" [MsgId: MMSG-26693]
Action.c(60): web_url("回收站") was successful, 110584 body bytes, 994 header bytes, 109 chunking overhead bytes [MsgId: MMSG-26385]
Action.c(51): Notify: Parameter Substitution: parameter "id_9" = "1684"
Action.c(51): post id c 变量 1684
Action.c(53): Notify: Parameter Substitution: parameter "id_9" = "1684"
Action.c(53): Notify: Saving Parameter "lr_id = 1684".
Action.c(56): Notify: Parameter Substitution: parameter "_wpnonce_9" = "50324b4dea"
Action.c(56): nonce c 变量 50324b4dea
Action.c(58): Notify: Parameter Substitution: parameter "_wpnonce_9" = "50324b4dea"
Action.c(58): Notify: Saving Parameter "lr_nonce = 50324b4dea".
Action.c(60): web_url("回收站") started [MsgId: MMSG-26355]
Action.c(60): Notify: Parameter Substitution: parameter "lr_id" = "1684"
Action.c(60): Notify: Parameter Substitution: parameter "lr_nonce" = "50324b4dea"
Action.c(60): Redirecting "http://autotest/wordpress/wp-admin/post.php?post=1684&action=trash&_wpnonce=50324b4dea" (redirection depth is 0) [MsgId: MMSG-26694]
Action.c(60): To location "http://autotest/wordpress/wp-admin/edit.php?trashed=1&ids=1684" [MsgId: MMSG-26693]
Action.c(60): web_url("回收站") was successful, 110584 body bytes, 994 header bytes, 109 chunking overhead bytes [MsgId: MMSG-26385]
Action.c(51): Notify: Parameter Substitution: parameter "id_10" = "1687"
Action.c(51): post id c 变量 1687
Action.c(53): Notify: Parameter Substitution: parameter "id_10" = "1687"
Action.c(53): Notify: Saving Parameter "lr_id = 1687".
Action.c(56): Notify: Parameter Substitution: parameter "_wpnonce_10" = "4ca0a7ab99"
Action.c(56): nonce c 变量 4ca0a7ab99
Action.c(58): Notify: Parameter Substitution: parameter "_wpnonce_10" = "4ca0a7ab99"
Action.c(58): Notify: Saving Parameter "lr_nonce = 4ca0a7ab99".
Action.c(60): web_url("回收站") started [MsgId: MMSG-26355]
Action.c(60): Notify: Parameter Substitution: parameter "lr_id" = "1687"
Action.c(60): Notify: Parameter Substitution: parameter "lr_nonce" = "4ca0a7ab99"
Action.c(60): Redirecting "http://autotest/wordpress/wp-admin/post.php?post=1687&action=trash&_wpnonce=4ca0a7ab99" (redirection depth is 0) [MsgId: MMSG-26694]
Action.c(60): To location "http://autotest/wordpress/wp-admin/edit.php?trashed=1&ids=1687" [MsgId: MMSG-26693]
Action.c(60): web_url("回收站") was successful, 110584 body bytes, 994 header bytes, 109 chunking overhead bytes [MsgId: MMSG-26385]
Action.c(51): Notify: Parameter Substitution: parameter "id_11" = "1685"
Action.c(51): post id c 变量 1685
Action.c(53): Notify: Parameter Substitution: parameter "id_11" = "1685"
Action.c(53): Notify: Saving Parameter "lr_id = 1685".
Action.c(56): Notify: Parameter Substitution: parameter "_wpnonce_11" = "8401a1ab7d"
Action.c(56): nonce c 变量 8401a1ab7d
Action.c(58): Notify: Parameter Substitution: parameter "_wpnonce_11" = "8401a1ab7d"
Action.c(58): Notify: Saving Parameter "lr_nonce = 8401a1ab7d".
Action.c(60): web_url("回收站") started [MsgId: MMSG-26355]
Action.c(60): Notify: Parameter Substitution: parameter "lr_id" = "1685"
Action.c(60): Notify: Parameter Substitution: parameter "lr_nonce" = "8401a1ab7d"
Action.c(60): Redirecting "http://autotest/wordpress/wp-admin/post.php?post=1685&action=trash&_wpnonce=8401a1ab7d" (redirection depth is 0) [MsgId: MMSG-26694]
Action.c(60): To location "http://autotest/wordpress/wp-admin/edit.php?trashed=1&ids=1685" [MsgId: MMSG-26693]
Action.c(60): web_url("回收站") was successful, 110584 body bytes, 994 header bytes, 109 chunking overhead bytes [MsgId: MMSG-26385]
Action.c(51): Notify: Parameter Substitution: parameter "id_12" = "1686"
Action.c(51): post id c 变量 1686
Action.c(53): Notify: Parameter Substitution: parameter "id_12" = "1686"
Action.c(53): Notify: Saving Parameter "lr_id = 1686".
Action.c(56): Notify: Parameter Substitution: parameter "_wpnonce_12" = "8ee456f365"
Action.c(56): nonce c 变量 8ee456f365
Action.c(58): Notify: Parameter Substitution: parameter "_wpnonce_12" = "8ee456f365"
Action.c(58): Notify: Saving Parameter "lr_nonce = 8ee456f365".
Action.c(60): web_url("回收站") started [MsgId: MMSG-26355]
Action.c(60): Notify: Parameter Substitution: parameter "lr_id" = "1686"
Action.c(60): Notify: Parameter Substitution: parameter "lr_nonce" = "8ee456f365"
Action.c(60): Redirecting "http://autotest/wordpress/wp-admin/post.php?post=1686&action=trash&_wpnonce=8ee456f365" (redirection depth is 0) [MsgId: MMSG-26694]
Action.c(60): To location "http://autotest/wordpress/wp-admin/edit.php?trashed=1&ids=1686" [MsgId: MMSG-26693]
Action.c(60): web_url("回收站") was successful, 110584 body bytes, 994 header bytes, 109 chunking overhead bytes [MsgId: MMSG-26385]
Action.c(51): Notify: Parameter Substitution: parameter "id_13" = "1683"
Action.c(51): post id c 变量 1683
Action.c(53): Notify: Parameter Substitution: parameter "id_13" = "1683"
Action.c(53): Notify: Saving Parameter "lr_id = 1683".
Action.c(56): Notify: Parameter Substitution: parameter "_wpnonce_13" = "d7ef5966ec"
Action.c(56): nonce c 变量 d7ef5966ec
Action.c(58): Notify: Parameter Substitution: parameter "_wpnonce_13" = "d7ef5966ec"
Action.c(58): Notify: Saving Parameter "lr_nonce = d7ef5966ec".
Action.c(60): web_url("回收站") started [MsgId: MMSG-26355]
Action.c(60): Notify: Parameter Substitution: parameter "lr_id" = "1683"
Action.c(60): Notify: Parameter Substitution: parameter "lr_nonce" = "d7ef5966ec"
Action.c(60): Redirecting "http://autotest/wordpress/wp-admin/post.php?post=1683&action=trash&_wpnonce=d7ef5966ec" (redirection depth is 0) [MsgId: MMSG-26694]
Action.c(60): To location "http://autotest/wordpress/wp-admin/edit.php?trashed=1&ids=1683" [MsgId: MMSG-26693]
Action.c(60): web_url("回收站") was successful, 110584 body bytes, 994 header bytes, 109 chunking overhead bytes [MsgId: MMSG-26385]
Action.c(51): Notify: Parameter Substitution: parameter "id_14" = "1676"
Action.c(51): post id c 变量 1676
Action.c(53): Notify: Parameter Substitution: parameter "id_14" = "1676"
Action.c(53): Notify: Saving Parameter "lr_id = 1676".
Action.c(56): Notify: Parameter Substitution: parameter "_wpnonce_14" = "5df44fbfe3"
Action.c(56): nonce c 变量 5df44fbfe3
Action.c(58): Notify: Parameter Substitution: parameter "_wpnonce_14" = "5df44fbfe3"
Action.c(58): Notify: Saving Parameter "lr_nonce = 5df44fbfe3".
Action.c(60): web_url("回收站") started [MsgId: MMSG-26355]
Action.c(60): Notify: Parameter Substitution: parameter "lr_id" = "1676"
Action.c(60): Notify: Parameter Substitution: parameter "lr_nonce" = "5df44fbfe3"
Action.c(60): Redirecting "http://autotest/wordpress/wp-admin/post.php?post=1676&action=trash&_wpnonce=5df44fbfe3" (redirection depth is 0) [MsgId: MMSG-26694]
Action.c(60): To location "http://autotest/wordpress/wp-admin/edit.php?trashed=1&ids=1676" [MsgId: MMSG-26693]
Action.c(60): web_url("回收站") was successful, 110584 body bytes, 994 header bytes, 109 chunking overhead bytes [MsgId: MMSG-26385]
Action.c(51): Notify: Parameter Substitution: parameter "id_15" = "1677"
Action.c(51): post id c 变量 1677
Action.c(53): Notify: Parameter Substitution: parameter "id_15" = "1677"
Action.c(53): Notify: Saving Parameter "lr_id = 1677".
Action.c(56): Notify: Parameter Substitution: parameter "_wpnonce_15" = "bb6e715bfd"
Action.c(56): nonce c 变量 bb6e715bfd
Action.c(58): Notify: Parameter Substitution: parameter "_wpnonce_15" = "bb6e715bfd"
Action.c(58): Notify: Saving Parameter "lr_nonce = bb6e715bfd".
Action.c(60): web_url("回收站") started [MsgId: MMSG-26355]
Action.c(60): Notify: Parameter Substitution: parameter "lr_id" = "1677"
Action.c(60): Notify: Parameter Substitution: parameter "lr_nonce" = "bb6e715bfd"
Action.c(60): Redirecting "http://autotest/wordpress/wp-admin/post.php?post=1677&action=trash&_wpnonce=bb6e715bfd" (redirection depth is 0) [MsgId: MMSG-26694]
Action.c(60): To location "http://autotest/wordpress/wp-admin/edit.php?trashed=1&ids=1677" [MsgId: MMSG-26693]
Action.c(60): web_url("回收站") was successful, 110584 body bytes, 994 header bytes, 109 chunking overhead bytes [MsgId: MMSG-26385]
Action.c(51): Notify: Parameter Substitution: parameter "id_16" = "1673"
Action.c(51): post id c 变量 1673
Action.c(53): Notify: Parameter Substitution: parameter "id_16" = "1673"
Action.c(53): Notify: Saving Parameter "lr_id = 1673".
Action.c(56): Notify: Parameter Substitution: parameter "_wpnonce_16" = "d8b751ddef"
Action.c(56): nonce c 变量 d8b751ddef
Action.c(58): Notify: Parameter Substitution: parameter "_wpnonce_16" = "d8b751ddef"
Action.c(58): Notify: Saving Parameter "lr_nonce = d8b751ddef".
Action.c(60): web_url("回收站") started [MsgId: MMSG-26355]
Action.c(60): Notify: Parameter Substitution: parameter "lr_id" = "1673"
Action.c(60): Notify: Parameter Substitution: parameter "lr_nonce" = "d8b751ddef"
Action.c(60): Redirecting "http://autotest/wordpress/wp-admin/post.php?post=1673&action=trash&_wpnonce=d8b751ddef" (redirection depth is 0) [MsgId: MMSG-26694]
Action.c(60): To location "http://autotest/wordpress/wp-admin/edit.php?trashed=1&ids=1673" [MsgId: MMSG-26693]
Action.c(60): web_url("回收站") was successful, 110584 body bytes, 994 header bytes, 109 chunking overhead bytes [MsgId: MMSG-26385]
Action.c(51): Notify: Parameter Substitution: parameter "id_17" = "1675"
Action.c(51): post id c 变量 1675
Action.c(53): Notify: Parameter Substitution: parameter "id_17" = "1675"
Action.c(53): Notify: Saving Parameter "lr_id = 1675".
Action.c(56): Notify: Parameter Substitution: parameter "_wpnonce_17" = "dfa9ebafd0"
Action.c(56): nonce c 变量 dfa9ebafd0
Action.c(58): Notify: Parameter Substitution: parameter "_wpnonce_17" = "dfa9ebafd0"
Action.c(58): Notify: Saving Parameter "lr_nonce = dfa9ebafd0".
Action.c(60): web_url("回收站") started [MsgId: MMSG-26355]
Action.c(60): Notify: Parameter Substitution: parameter "lr_id" = "1675"
Action.c(60): Notify: Parameter Substitution: parameter "lr_nonce" = "dfa9ebafd0"
Action.c(60): Redirecting "http://autotest/wordpress/wp-admin/post.php?post=1675&action=trash&_wpnonce=dfa9ebafd0" (redirection depth is 0) [MsgId: MMSG-26694]
Action.c(60): To location "http://autotest/wordpress/wp-admin/edit.php?trashed=1&ids=1675" [MsgId: MMSG-26693]
Action.c(60): web_url("回收站") was successful, 110584 body bytes, 994 header bytes, 109 chunking overhead bytes [MsgId: MMSG-26385]
Action.c(51): Notify: Parameter Substitution: parameter "id_18" = "1674"
Action.c(51): post id c 变量 1674
Action.c(53): Notify: Parameter Substitution: parameter "id_18" = "1674"
Action.c(53): Notify: Saving Parameter "lr_id = 1674".
Action.c(56): Notify: Parameter Substitution: parameter "_wpnonce_18" = "a1b9b52c2b"
Action.c(56): nonce c 变量 a1b9b52c2b
Action.c(58): Notify: Parameter Substitution: parameter "_wpnonce_18" = "a1b9b52c2b"
Action.c(58): Notify: Saving Parameter "lr_nonce = a1b9b52c2b".
Action.c(60): web_url("回收站") started [MsgId: MMSG-26355]
Action.c(60): Notify: Parameter Substitution: parameter "lr_id" = "1674"
Action.c(60): Notify: Parameter Substitution: parameter "lr_nonce" = "a1b9b52c2b"
Action.c(60): Redirecting "http://autotest/wordpress/wp-admin/post.php?post=1674&action=trash&_wpnonce=a1b9b52c2b" (redirection depth is 0) [MsgId: MMSG-26694]
Action.c(60): To location "http://autotest/wordpress/wp-admin/edit.php?trashed=1&ids=1674" [MsgId: MMSG-26693]
Action.c(60): web_url("回收站") was successful, 110584 body bytes, 994 header bytes, 109 chunking overhead bytes [MsgId: MMSG-26385]
Action.c(51): Notify: Parameter Substitution: parameter "id_19" = "1667"
Action.c(51): post id c 变量 1667
Action.c(53): Notify: Parameter Substitution: parameter "id_19" = "1667"
Action.c(53): Notify: Saving Parameter "lr_id = 1667".
Action.c(56): Notify: Parameter Substitution: parameter "_wpnonce_19" = "bd7f3ef24d"
Action.c(56): nonce c 变量 bd7f3ef24d
Action.c(58): Notify: Parameter Substitution: parameter "_wpnonce_19" = "bd7f3ef24d"
Action.c(58): Notify: Saving Parameter "lr_nonce = bd7f3ef24d".
Action.c(60): web_url("回收站") started [MsgId: MMSG-26355]
Action.c(60): Notify: Parameter Substitution: parameter "lr_id" = "1667"
Action.c(60): Notify: Parameter Substitution: parameter "lr_nonce" = "bd7f3ef24d"
Action.c(60): Redirecting "http://autotest/wordpress/wp-admin/post.php?post=1667&action=trash&_wpnonce=bd7f3ef24d" (redirection depth is 0) [MsgId: MMSG-26694]
Action.c(60): To location "http://autotest/wordpress/wp-admin/edit.php?trashed=1&ids=1667" [MsgId: MMSG-26693]
Action.c(60): web_url("回收站") was successful, 110584 body bytes, 994 header bytes, 109 chunking overhead bytes [MsgId: MMSG-26385]
Action.c(51): Notify: Parameter Substitution: parameter "id_20" = "1669"
Action.c(51): post id c 变量 1669
Action.c(53): Notify: Parameter Substitution: parameter "id_20" = "1669"
Action.c(53): Notify: Saving Parameter "lr_id = 1669".
Action.c(56): Notify: Parameter Substitution: parameter "_wpnonce_20" = "17b1a92aeb"
Action.c(56): nonce c 变量 17b1a92aeb
Action.c(58): Notify: Parameter Substitution: parameter "_wpnonce_20" = "17b1a92aeb"
Action.c(58): Notify: Saving Parameter "lr_nonce = 17b1a92aeb".
Action.c(60): web_url("回收站") started [MsgId: MMSG-26355]
Action.c(60): Notify: Parameter Substitution: parameter "lr_id" = "1669"
Action.c(60): Notify: Parameter Substitution: parameter "lr_nonce" = "17b1a92aeb"
Action.c(60): Redirecting "http://autotest/wordpress/wp-admin/post.php?post=1669&action=trash&_wpnonce=17b1a92aeb" (redirection depth is 0) [MsgId: MMSG-26694]
Action.c(60): To location "http://autotest/wordpress/wp-admin/edit.php?trashed=1&ids=1669" [MsgId: MMSG-26693]
Action.c(60): web_url("回收站") was successful, 110584 body bytes, 994 header bytes, 109 chunking overhead bytes [MsgId: MMSG-26385]
Ending action Action.
Ending iteration 1.
Ending Vuser...
Starting action vuser_end.
Ending action vuser_end.
Vuser Terminated.

 

以上是关于Loadrunner查询博客列表并循环删除博客列表中的所有博客的主要内容,如果未能解决你的问题,请参考以下文章

在 VueJS 中使用计算属性搜索过滤器

Python3基础 for循环 遍历并输出一个字符串的列表

博客作业2---线性表

Python3基础 使用for循环 删除一个列表中的重复项

C博客作业--指针

从零开始写博客系统——新增查询修改