返回json数组的GET接口
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接口的更多相关文章
- php返回json数组
1.后端 //处理json数组中文问题 function arrayRecursive(&$array, $function, $apply_to_keys_also = false) { s ...
- 中国天气网接口返回json格式分析及接口(XML、图片接口)说明
实时天气: city "北京"//城市 cityid "101010100"//城市编码 temp "17&qu ...
- ajax返回json数组遍历添加到html
大致需求为类型限制根据类型获取不同结果列表,再根据模糊查询搜索出结果,效果如下:
- 【接口】常见接口集合(返回JSON)
转<JSON校验网站…>http://www.bejson.com/go.html?u=http://www.bejson.com/webInterface.html 这里为大家搜集了一些 ...
- JSON API免费接口 各种提供JSON格式数据返回服务网站的API接口
这里为大家搜集了一些能够返回JSON格式的服务接口.部分需要用JSONP调用. 电商接口 京东获取单个商品价格接口: http://p.3.cn/prices/mgets?skuIds=J_商品ID& ...
- jquery ajax调用返回json格式数据处理
Ajax请求默认的都是异步的 如果想同步 async设置为false就可以(默认是true) var html = $.ajax({ url: "some.php", async: ...
- 美化WebApi,使其统一返回Json格式
博客部分代码来自其他博主,暂时找不到你的博文连接,如果您觉得我的代码中引入了您的代码或者文章,可在下方把您的博客文章写在下面,谢谢!!! WebApi有两种返回数据格式,一种是XML,一种是Json, ...
- C#调用接口返回json数据中含有双引号 或其他非法字符的解决办法
这几天,调用别人接口返回json数据含有特殊符号(双引号),当转换成json对象总是报错, json字符格式如下 { "BOXINFO":[ { ", "ITE ...
- dbda封装类(包括:返回二维数组、Ajax调用返回字符串、Ajax调用返回JSON)
<?php class DBDA { public $host = "localhost"; public $uid = "root"; public $ ...
随机推荐
- 使用BSRR和BRR寄存器直接操作STM32的I/O端口
STM32的每个GPIO端口都有两个特别的寄存器,GPIOx_BSRR和GPIOx_BRR寄存器,通过这两个寄存器可以直接对对应的GPIOx端口置'1'或置'0'. GPIOx_BSRR的高16位中每 ...
- 并发之AtomicIntegerFieldUpdater
基于反射的实用工具,可以对指定类的指定 volatile int 字段进行原子更新.此类用于原子数据结构,该结构中同一节点的几个字段都独立受原子更新控制. 先来看一段代码: package autom ...
- React--- react 初见React 总结
简介 react 程序代码是透明的,需要什么装什么 代码实现逻辑清晰可见 第一天 React 基础构造 分别是 继承的 React.component(继承的依赖类)/dom(dom元素)/pro ...
- BZOJ 3771: Triple(生成函数 FFT)
Time Limit: 20 Sec Memory Limit: 64 MBSubmit: 911 Solved: 528[Submit][Status][Discuss] Description ...
- 竞赛题解 - NOIP2018 旅行
\(\mathcal {NOIP2018} 旅行 - 竞赛题解\) 坑还得一层一层的填 填到Day2T1了 洛谷 P5022 题目 (以下copy自洛谷,有删减/修改 (●ˇ∀ˇ●)) 题目描述 小 ...
- 浅析MySQL 5.7组复制技术(Group Replication)
Group Replication is know as an up to date HA(High Availablity) solution which is supported in ...
- MySQL至TiDB复制延迟监控
因生产环境mysql中有较多复杂sql且运行效率低,因此采用tidb作为生产环境的从库进行部分慢sql及报表的读写分离.其中MySQL至TIDB采用Syncer工具同步.关于TIDB的安装及Synce ...
- QWT编译与配置-Windows/Linux环境
QWT编译与配置-Windows/Linux环境 QWT和FFTW两种开源组件是常用的工程软件支持组件,QWT可以提供丰富的绘图组件功能,FFTW是优秀数字波形分析软件.本文使用基于LGPL版权协议的 ...
- phpcms v9 完美更换整合Ueditor 1.3
phpcms这套系统相信大家不陌生,它做的很不错,但是也有好多地方不满足我们的需求,比如在线编辑器. 它自带的是CKEditor编辑器,功能较少,比如代码加亮功能就没有. 所以我来说一下怎么替换php ...
- 运用busybox构建最小根文件系统
平台:vmware下ubuntu14.04前期准备:安装交叉编译环境arm-linux-gcc-4.5.1;下载完成BusyBox 1.23.2一.busybox构建1.make menuconfig ...