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. 【题解】洛谷P1065 [NOIP2006TG] 作业调度方案(模拟+阅读理解)

    次元传送门:洛谷P1065 思路 简单讲一下用到的数组含义 work 第i个工件已经做了几道工序 num 第i个工序的安排顺序 finnish 第i个工件每道工序的结束时间 need 第i个工件第j道 ...

  2. Matplotlib——中级

    关于Matplotlib的愚见 初级中,我只是简单介绍了Matplotlib的使用方法,在中级部分,我系统地说一下我总结的内容. 上图是我画的关于Matplotlib几个对象之间的关系图.它们都来自于 ...

  3. MyBatis之Mapper XML 文件详解(一)

    MyBatis 的真正强大在于它的映射语句,也是它的魔力所在.由于它的异常强大,映射器的 XML 文件就显得相对简单.如果拿它跟具有相同功能的 JDBC 代码进行对比,你会立即发现省掉了将近 95% ...

  4. Oracle在线重定义(online redefinition)--将普通表改为分区表

    使用Oracle的在线重定义技术,可以将Oracle的普通表改为分区表.操作如下: STEP1:测试表是否可以在线重定义,这里以unixdev数据库的LIJIAMAN.BSTEST为例 EXEC DB ...

  5. ObjC之RunTime(上)

    转载自这里. 最近看了一本书——iOS6 programming Pushing the Limits(亚马逊有中文版),最后一章是关于Deep ObjC的,主要内容是ObjC的runtime.虽然之 ...

  6. jQuery 遍历 - children() 方法 获取指定id下子元素的值

    <a id="Aobj_2_2" class="" specid="2" specvid="2" href=&qu ...

  7. Python Homework 001

    1 #!/usr/bin/env python 2 #-*- coding:utf-8 -*- 3 4 import getpass 5 name = "xilong" 6 pas ...

  8. css3实现自定义滚动条样式详解

    在写页面的时候有时候滚动条的样式与页面风格不统一这时候就用到了自定义滚动条 1.首先弄清楚页面的滚动条分为哪些部分,在写的时候分为几块 定义滚动条的时候先进行宏观定义,定义滚动条,然后定义滑块,然后定 ...

  9. hql返回数值

    public int getCountUser() throws ParseException { Session hSession = sessionFactory.getCurrentSessio ...

  10. 一分钟完成pip安装

    很多实用Python的小伙伴都需要使用pip安装相应的包,对于初学者而已,检查遇到pip安装不成功的情况,如以下典型错误: Traceback (most recent call last): Fil ...