Action()
{ web_reg_find("Search=Body",
"SaveCount=find_cnt",
"Text=code\":\"0\"",
LAST); lr_start_transaction("post_s"); web_url("get_json", "URL=http://localhost:8080/pinter/com/userList?genderType=0", LAST ); if(atoi(lr_eval_string("{find_cnt}")) > ){ lr_end_transaction("post_s", LR_PASS); }else{
lr_end_transaction("post_s", LR_FAIL); } return ;
}
 Virtual User Script started at : -- ::
Starting action vuser_init.
Web Turbo Replay of LoadRunner 11.0. for WINXP; build (Aug ::) [MsgId: MMSG-]
Run Mode: HTML [MsgId: MMSG-]
Run-Time Settings file: "C:\test_huzhenyu\Script\get_js\\default.cfg" [MsgId: MMSG-]
Ending action vuser_init.
Running Vuser...
Starting iteration .
Starting action Action.
Action.c(): Registering web_reg_find was successful [MsgId: MMSG-]
Action.c(): Notify: Transaction "post_s" started.
Action.c(): t=626ms: -byte response headers for "http://localhost:8080/pinter/com/userList?genderType=0" (RelFrameId=, Internal ID=)
Action.c(): HTTP/1.1 \r\n
Action.c(): Content-Type: application/json;charset=UTF-\r\n
Action.c(): Transfer-Encoding: chunked\r\n
Action.c(): Date: Sat, Mar :: GMT\r\n
Action.c(): \r\n
Action.c(): t=671ms: -byte chunked response overhead for "http://localhost:8080/pinter/com/userList?genderType=0" (RelFrameId=, Internal ID=)
Action.c(): c77\r\n
Action.c(): t=681ms: -byte chunked response overhead for "http://localhost:8080/pinter/com/userList?genderType=0" (RelFrameId=, Internal ID=)
Action.c(): \r\n
Action.c(): t=697ms: -byte chunked response body for "http://localhost:8080/pinter/com/userList?genderType=0" (RelFrameId=, Internal ID=)
Action.c(): {"code":"","message":"success","data":[{"id":,"userName":"鎬ц兘娴嬭瘯瀛﹀憳0","password
Action.c(): ":null,"age":13,"gender":0,"phoneNum":"","email":"beihe@testfan.com","address":
Action.c(): "鍖椾含甯傛槍骞冲尯绉戞槦瑗胯矾106鍙烽櫌锛堝浗椋庣編鍞愯姳鍥患鍚堟ゼ锛\x893鍙锋ゼ1111","
Action.c(): createTime":"--16T09::52.651+","updateTime":"--16T09::52.651+"},{"
Action.c(): id":1,"userName":"鎬ц兘娴嬭瘯瀛﹀憳1","password":null,"age":88,"gender":0,"phoneNum":"
Action.c(): ","email":"beihe@testfan.com","address":"鍖椾含甯傛槍骞冲尯绉戞槦瑗胯矾106鍙烽櫌锛
Action.c(): 堝浗椋庣編鍞愯姳鍥患鍚堟ゼ锛\x893鍙锋ゼ1111","createTime":"--16T09::52.651+"
Action.c(): ,"updateTime":"2019-03-16T09:38:52.651+0000"},{"id":,"userName":"鎬ц兘娴嬭瘯瀛﹀憳2","pa
Action.c(): ssword":null,"age":77,"gender":0,"phoneNum":"","email":"beihe@testfan.com","add
Action.c(): ress":"鍖椾含甯傛槍骞冲尯绉戞槦瑗胯矾106鍙烽櫌锛堝浗椋庣編鍞愯姳鍥患鍚堟ゼ锛\x893鍙锋ゼ1
Action.c(): ","createTime":"--16T09::52.651+","updateTime":"--16T09::52.651+
Action.c(): "},{"id":3,"userName":"鎬ц兘娴嬭瘯瀛﹀憳3","password":null,"age":96,"gender":0,"phoneNum
Action.c(): ":"","email":"beihe@testfan.com","address":"鍖椾含甯傛槍骞冲尯绉戞槦瑗胯矾106鍙
Action.c(): 烽櫌锛堝浗椋庣編鍞愯姳鍥患鍚堟ゼ锛\x893鍙锋ゼ1111","createTime":"--16T09::52.651
Action.c(): +","updateTime":"--16T09::52.651+"},{"id":4,"userName":"鎬ц兘娴嬭瘯瀛﹀憳
Action.c(): ","password":null,"age":53,"gender":0,"phoneNum":"","email":"beihe@testfan.com
Action.c(): ","address":"鍖椾含甯傛槍骞冲尯绉戞槦瑗胯矾106鍙烽櫌锛堝浗椋庣編鍞愯姳鍥患鍚堟ゼ锛\x893鍙
Action.c(): 锋ゼ1111","createTime":"--16T09::52.651+","updateTime":"--16T09::52.65
Action.c(): +"},{"id":5,"userName":"鎬ц兘娴嬭瘯瀛﹀憳5","password":null,"age":50,"gender":0,"pho
Action.c(): neNum":"","email":"beihe@testfan.com","address":"鍖椾含甯傛槍骞冲尯绉戞槦瑗胯矾
Action.c(): 106鍙烽櫌锛堝浗椋庣編鍞愯姳鍥患鍚堟ゼ锛\x893鍙锋ゼ1111","createTime":"--16T09::
Action.c(): 2.651+","updateTime":"--16T09::52.651+"},{"id":6,"userName":"鎬ц兘娴嬭瘯瀛
Action.c(): ﹀憳6","password":null,"age":55,"gender":0,"phoneNum":"","email":"beihe@testfan
Action.c(): .com","address":"鍖椾含甯傛槍骞冲尯绉戞槦瑗胯矾106鍙烽櫌锛堝浗椋庣編鍞愯姳鍥患鍚堟ゼ锛\x89
Action.c(): 3鍙锋ゼ1111","createTime":"--16T09::52.651+","updateTime":"--16T09::
Action.c(): .+"},{"id":7,"userName":"鎬ц兘娴嬭瘯瀛﹀憳7","password":null,"age":56,"gender":0,"
Action.c(): phoneNum":"","email":"beihe@testfan.com","address":"鍖椾含甯傛槍骞冲尯绉戞槦瑗胯
Action.c(): 矾106鍙烽櫌锛堝浗椋庣編鍞愯姳鍥患鍚堟ゼ锛\x893鍙锋ゼ1111","createTime":"--16T09:
Action.c(): :52.651+","updateTime":"--16T09::52.651+"},{"id":8,"userName":"鎬ц兘娴嬭瘯
Action.c(): 瀛﹀憳8","password":null,"age":49,"gender":0,"phoneNum":"","email":"beihe@testf
Action.c(): an.com","address":"鍖椾含甯傛槍骞冲尯绉戞槦瑗胯矾106鍙烽櫌锛堝浗椋庣編鍞愯姳鍥患鍚堟ゼ锛
Action.c(): \x893鍙锋ゼ1111","createTime":"--16T09::52.651+","updateTime":"--16T09:
Action.c(): :52.651+"},{"id":9,"userName":"鎬ц兘娴嬭瘯瀛﹀憳9","password":null,"age":12,"gender"
Action.c(): :,"phoneNum":"","email":"beihe@testfan.com","address":"鍖椾含甯傛槍骞冲尯绉戞槦
Action.c(): 瑗胯矾106鍙烽櫌锛堝浗椋庣編鍞愯姳鍥患鍚堟ゼ锛\x893鍙锋ゼ1111","createTime":"--16T0
Action.c(): ::52.651+","updateTime":"--16T09::52.651+"}]}
Action.c(): HTML parsing not performed for Content-Type "application/json" ("ParseHtmlContentType" Run-Time Setting is "TEXT"). URL="http://localhost:8080/pinter/com/userList?genderType=0" [MsgId: MMSG-]
Action.c(): t=1268ms: -byte chunked response overhead for "http://localhost:8080/pinter/com/userList?genderType=0" (RelFrameId=, Internal ID=)
Action.c(): \r\n
Action.c(): \r\n
Action.c(): Registered web_reg_find successful for "Text=code":""" (count=1) [MsgId: MMSG-26364]
Action.c(): Notify: Saving Parameter "find_cnt = 1".
Action.c(): web_url("get_json") was successful, body bytes, header bytes, chunking overhead bytes [MsgId: MMSG-]
Action.c(): Notify: Parameter Substitution: parameter "find_cnt" = ""
Action.c(): Notify: Transaction "post_s" ended with "Pass" status (Duration: 1.2613 Wasted Time: 0.4238).
Ending action Action.
Ending iteration .
Ending Vuser...
Starting action vuser_end.
Ending action vuser_end.
Vuser Terminated.

log

返回json数组的GET接口的更多相关文章

  1. php返回json数组

    1.后端 //处理json数组中文问题 function arrayRecursive(&$array, $function, $apply_to_keys_also = false) { s ...

  2. 中国天气网接口返回json格式分析及接口(XML、图片接口)说明

    实时天气: city        "北京"//城市 cityid      "101010100"//城市编码 temp        "17&qu ...

  3. ajax返回json数组遍历添加到html

    大致需求为类型限制根据类型获取不同结果列表,再根据模糊查询搜索出结果,效果如下:

  4. 【接口】常见接口集合(返回JSON)

    转<JSON校验网站…>http://www.bejson.com/go.html?u=http://www.bejson.com/webInterface.html 这里为大家搜集了一些 ...

  5. JSON API免费接口 各种提供JSON格式数据返回服务网站的API接口

    这里为大家搜集了一些能够返回JSON格式的服务接口.部分需要用JSONP调用. 电商接口 京东获取单个商品价格接口: http://p.3.cn/prices/mgets?skuIds=J_商品ID& ...

  6. jquery ajax调用返回json格式数据处理

    Ajax请求默认的都是异步的 如果想同步 async设置为false就可以(默认是true) var html = $.ajax({ url: "some.php", async: ...

  7. 美化WebApi,使其统一返回Json格式

    博客部分代码来自其他博主,暂时找不到你的博文连接,如果您觉得我的代码中引入了您的代码或者文章,可在下方把您的博客文章写在下面,谢谢!!! WebApi有两种返回数据格式,一种是XML,一种是Json, ...

  8. C#调用接口返回json数据中含有双引号 或其他非法字符的解决办法

    这几天,调用别人接口返回json数据含有特殊符号(双引号),当转换成json对象总是报错, json字符格式如下 { "BOXINFO":[ { ", "ITE ...

  9. dbda封装类(包括:返回二维数组、Ajax调用返回字符串、Ajax调用返回JSON)

    <?php class DBDA { public $host = "localhost"; public $uid = "root"; public $ ...

随机推荐

  1. Mac--查看公钥

    打开macbook的终端输入以下命令: $ cd ~/.ssh $ ls $ cat id_rsa.pub

  2. 第20章 USART—串口通讯

    本章参考资料:<STM32F76xxx参考手册>USART章节. 学习本章时,配合<STM32F76xxx参考手册>USART章节一起阅读,效果会更佳,特别是涉及到寄存器说明的 ...

  3. Python书单

    gitbook.jb51 1.Python基础教程 2.流畅的Python:总有论坛的人吐槽它翻译的还是不太友好,其实真正的差别没有那么大,重要的还是有所收获 3.<Python进阶>译本 ...

  4. asp.net mvc5 step by step(一)——CURD增删查改Demo

    1.  新建一个项目:

  5. linux系统基础之---文件系统(基于centos7.4 1708)

  6. java实现验证码功能主要代码

    package com.baojuan.servlet; import java.awt.Color;import java.awt.Font;import java.awt.Graphics2D;i ...

  7. 如何给ioloop.run_sync()中调用的函数传入参数

    问题 如何给tornado.ioloop.IOLoop中的run_sync方法中调用的函数添加参数 解决方案 使用functools.partial 解决示例 from tornado import ...

  8. Product Helper

    using System; using Microsoft.Xrm.Sdk; using Microsoft.Crm.Sdk.Messages; /// <summary> /// 产品 ...

  9. 2.2 vivi虚拟视频驱动测试

    学习目标:在linux终端安装xawtv,并测试vivi.ko驱动程序. 一.安装xawtv 1)ubuntu能上网情况下,使用命令:# sudo apt-get install xawtv 2)如果 ...

  10. C语言之一般树

    1.一般树 将这种一般的树转化成我们熟悉的单链表形式,这有三层,每一层都可以看成单链表或者多个分散的单链表 数据节点如下: struct tree {        int elem;        ...