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. android中OpenMax的实现【2】AwesomePlayer中openmax的入口

    AwesomePlayer 中有个变量 OMXClient mClient; 让我们看看   OMXClient class OMXClient { public: OMXClient(); stat ...

  2. etcd部署说明

    etcd是一个K/V分布式存储,每个节点都保存完成的一份数据.有点类似redis.但是etcd不是数据库. 1.先说废话.之所以会用etcd,并不是实际项目需要,而是前面自己写的上传的DBCacheS ...

  3. AtomicStampedReference解决ABA问题

      在运用CAS做Lock-Free操作中有一个经典的ABA问题: 线程1准备用CAS将变量的值由A替换为B,在此之前,线程2将变量的值由A替换为C,又由C替换为A,然后线程1执行CAS时发现变量的值 ...

  4. Oracle条件判断列数量非where

    sum(case when typename='测试' then 1 else 0 end)

  5. Linux CentOs下安装lamp

    以home目录为例,进入/home cd /home 是否安装gcc与gcc-c++,没有则安装 yum -y install gcc gcc-c++ 一.安装Apache 下载httpd wget ...

  6. Cobbler实现自动化安装(下)--实现过程

    实验环境 [root@cobbler ~]# cat /etc/redhat-release CentOS Linux release 7.2.1511 (Core) [root@cobbler ~] ...

  7. Spring Boot在反序列化过程中:jackson.databind.exc.InvalidDefinitionException cannot deserialize from Object value

    错误场景 用Spring boot写了一个简单的RESTful API,在测试POST请求的时候,request body是一个符合对应实体类要求的json串,post的时候报错. 先贴一段error ...

  8. multiprocessing中进程池,线程池的使用

    multiprocessing 多进程基本使用 示例代码1 import time import random from multiprocessing import Process def run( ...

  9. 虚拟机(unbutun16.04)设置静态ip

    电脑上装了虚拟机,想用xshell连接,无奈按照默认的网络设置方式每次重启了虚拟机后都要修改ip才能访问,这怎么能忍,经过一番折腾终于搞定这个问题了,解决步骤如下: 大步骤分为两步:其一是主机的设置, ...

  10. day 21继承

    1.了解Python2和python3类的区别:   python2.3之前使用的是经典类, 在2.3版本之后组,使用的是新式类 MRO: method resolution order  方法的查找 ...