测试JsonAnalyzer2的12个测试用例:
测试用例如下:
01.
Compact json text={"status":"","message":"success","data":{"title":{"id":"","name":"白菜"},"content":[{"id":"","value":"你好白菜"},{"id":"","value":"你好萝卜"}]}}
{
"data":{
"content":[
{
"id":"",
"value":"你好白菜"
},
{
"id":"",
"value":"你好萝卜"
}
],
"title":{
"id":"",
"name":"白菜"
}
},
"message":"success",
"status":""
}
02.
Compact json text={"animal":"cat","color":"orange"}
{
"animal":"cat",
"color":"orange"
}
03.
Compact json text={"name":"Flutty","breed":"Siamese","age":}
{
"age":,
"breed":"Siamese",
"name":"Flutty"
}
04.
Compact json text={"person":{"name":"LindsayBassett","heightInInches":,"head":{"hair":{"color":"lightblood","length":"short","style":"a-line"},"eyes":"green"}}}
{
"person":{
"head":{
"eyes":"green",
"hair":{
"color":"lightblood",
"length":"short",
"style":"a-line"
}
},
"heightInInches":,
"name":"LindsayBassett"
}
}
05.
Raw json text={"eggCartoon":["egg","egg","egg","egg","egg","egg","egg",null,"egg",null,"egg",]}
Compact json text={"eggCartoon":["egg","egg","egg","egg","egg","egg","egg",null,"egg",null,"egg",]}
{
"eggCartoon":[
"egg",
"egg",
"egg",
"egg",
"egg",
"egg",
"egg",
null,
"egg",
null,
"egg"
]
}
06.
Raw json text={"students":["张三","李四","王五","赵六","孙琪","钱吧"]}
Compact json text={"students":["张三","李四","王五","赵六","孙琪","钱吧"]}
{
"students":[
"张三",
"李四",
"王五",
"赵六",
"孙琪",
"钱吧"
]
}
07.
Raw json text={"scores":[,,,,]}
Compact json text={"scores":[,,,,]}
{
"scores":[
,
,
,
,
]
}
08.
Raw json text={"employees": [{ "firstName":"Bill" , "lastName":"Gates" },{ "firstName":"George" , "lastName":"Bush" },{ "firstName":"Thomas" , "lastName":"Carter" }]}
Compact json text={"employees":[{"firstName":"Bill","lastName":"Gates"},{"firstName":"George","lastName":"Bush"},{"firstName":"Thomas","lastName":"Carter"}]}
{
"employees":[
{
"firstName":"Bill",
"lastName":"Gates"
},
{
"firstName":"George",
"lastName":"Bush"
},
{
"firstName":"Thomas",
"lastName":"Carter"
}
]
}
09.
Raw json text={ "name": "username", "age": , "admin": true }
Compact json text={"name":"username","age":,"admin":true}
{
"admin":true,
"age":,
"name":"username"
}
10.
Raw json text={ "HeWeather6": [{ "basic": { "cid": "CN101010100", "location": "北京", "parent_city": "北京", "admin_area": "北京", "cnty": "中国", "lat": "39.90498734", "lon": "116.40528870", "tz": "8.0" }, "daily_forecast": [{ "cond_code_d": "", "cond_code_n": "", "cond_txt_d": "晴间多云", "cond_txt_n": "多云", "date": "2017-10-26", "hum": "", "pcpn": "0.0", "pop": "", "pres": "", "tmp_max": "", "tmp_min": "", "uv_index": "", "vis": "", "wind_deg": "", "wind_dir": "无持续风向", "wind_sc": "微风", "wind_spd": "" }, { "cond_code_d": "", "cond_code_n": "", "cond_txt_d": "多云", "cond_txt_n": "雾", "date": "2017-10-27", "hum": "", "pcpn": "0.0", "pop": "", "pres": "", "tmp_max": "", "tmp_min": "", "uv_index": "", "vis": "", "wind_deg": "", "wind_dir": "南风", "wind_sc": "微风", "wind_spd": "" }, { "cond_code_d": "", "cond_code_n": "", "cond_txt_d": "多云", "cond_txt_n": "多云", "date": "2017-10-28", "hum": "", "pcpn": "0.0", "pop": "", "pres": "", "tmp_max": "", "tmp_min": "", "uv_index": "", "vis": "", "wind_deg": "", "wind_dir": "北风", "wind_sc": "3-4", "wind_spd": "" }], "status": "ok", "update": { "loc": "2017-10-26 23_09", "utc": "2017-10-26 15_09" } }]}
Compact json text={"HeWeather6":[{"basic":{"cid":"CN101010100","location":"北京","parent_city":"北京","admin_area":"北京","cnty":"中国","lat":"39.90498734","lon":"116.40528870","tz":"8.0"},"daily_forecast":[{"cond_code_d":"","cond_code_n":"","cond_txt_d":"晴间多云","cond_txt_n":"多云","date":"2017-10-26","hum":"","pcpn":"0.0","pop":"","pres":"","tmp_max":"","tmp_min":"","uv_index":"","vis":"","wind_deg":"","wind_dir":"无持续风向","wind_sc":"微风","wind_spd":""},{"cond_code_d":"","cond_code_n":"","cond_txt_d":"多云","cond_txt_n":"雾","date":"2017-10-27","hum":"","pcpn":"0.0","pop":"","pres":"","tmp_max":"","tmp_min":"","uv_index":"","vis":"","wind_deg":"","wind_dir":"南风","wind_sc":"微风","wind_spd":""},{"cond_code_d":"","cond_code_n":"","cond_txt_d":"多云","cond_txt_n":"多云","date":"2017-10-28","hum":"","pcpn":"0.0","pop":"","pres":"","tmp_max":"","tmp_min":"","uv_index":"","vis":"","wind_deg":"","wind_dir":"北风","wind_sc":"3-4","wind_spd":""}],"status":"ok","update":{"loc":"2017-10-2623_09","utc":"2017-10-2615_09"}}]}
{
"HeWeather6":[
{
"basic":{
"admin_area":"北京",
"cid":"CN101010100",
"cnty":"中国",
"lat":"39.90498734",
"location":"北京",
"lon":"116.40528870",
"parent_city":"北京",
"tz":"8.0"
},
"daily_forecast":[
{
"cond_code_d":"",
"cond_code_n":"",
"cond_txt_d":"晴间多云",
"cond_txt_n":"多云",
"date":"2017-10-26",
"hum":"",
"pcpn":"0.0",
"pop":"",
"pres":"",
"tmp_max":"",
"tmp_min":"",
"uv_index":"",
"vis":"",
"wind_deg":"",
"wind_dir":"无持续风向",
"wind_sc":"微风",
"wind_spd":""
},
{
"cond_code_d":"",
"cond_code_n":"",
"cond_txt_d":"多云",
"cond_txt_n":"雾",
"date":"2017-10-27",
"hum":"",
"pcpn":"0.0",
"pop":"",
"pres":"",
"tmp_max":"",
"tmp_min":"",
"uv_index":"",
"vis":"",
"wind_deg":"",
"wind_dir":"南风",
"wind_sc":"微风",
"wind_spd":""
},
{
"cond_code_d":"",
"cond_code_n":"",
"cond_txt_d":"多云",
"cond_txt_n":"多云",
"date":"2017-10-28",
"hum":"",
"pcpn":"0.0",
"pop":"",
"pres":"",
"tmp_max":"",
"tmp_min":"",
"uv_index":"",
"vis":"",
"wind_deg":"",
"wind_dir":"北风",
"wind_sc":"3-4",
"wind_spd":""
}
],
"status":"ok",
"update":{
"loc":"2017-10-2623_09",
"utc":"2017-10-2615_09"
}
}
]
}
11.
Raw json text={ "data": [ { "deliveryListId": "", "shipperCode": "", "shortShipperName": "RB", "orderNo": "", "deliveryOrder": , "receiverName": "吉田 XXX", "receiverTelNo": "", "receiverAddress1": "東京都足立区足立1-1", "receiverAddress2": "東京都足立区足立1-2", "isCod": true, "billAmount": , "geocodingScore": , "latitudeJP": "56789.33", "longitudeJP": "123456.33", "latitude": "20180001.22", "longitude": "20180001.33", "vehicleId": "", "orderDetails": [ { "trackingNo": "", "quantity": , "lapCount": null, "statusCode": null, "statusNameMobile": null }, { "trackingNo": "", "quantity": , "lapCount": , "statusCode": "", "statusNameMobile": "配送準備中" }, { "trackingNo": "", "quantity": , "lapCount": , "statusCode": "", "statusNameMobile": "持出し" }, { "trackingNo": "", "quantity": , "lapCount": , "statusCode": "", "statusNameMobile": "配送準備中" }, { "trackingNo": "", "quantity": , "lapCount": , "statusCode": "", "statusNameMobile": "配送準備中" } ] } ]}
Compact json text={"data":[{"deliveryListId":"","shipperCode":"","shortShipperName":"RB","orderNo":"","deliveryOrder":,"receiverName":"吉田XXX","receiverTelNo":"","receiverAddress1":"東京都足立区足立1-1","receiverAddress2":"東京都足立区足立1-2","isCod":true,"billAmount":,"geocodingScore":,"latitudeJP":"56789.33","longitudeJP":"123456.33","latitude":"20180001.22","longitude":"20180001.33","vehicleId":"","orderDetails":[{"trackingNo":"","quantity":,"lapCount":null,"statusCode":null,"statusNameMobile":null},{"trackingNo":"","quantity":,"lapCount":,"statusCode":"","statusNameMobile":"配送準備中"},{"trackingNo":"","quantity":,"lapCount":,"statusCode":"","statusNameMobile":"持出し"},{"trackingNo":"","quantity":,"lapCount":,"statusCode":"","statusNameMobile":"配送準備中"},{"trackingNo":"","quantity":,"lapCount":,"statusCode":"","statusNameMobile":"配送準備中"}]}]}
{
"data":[
{
"billAmount":,
"deliveryListId":"",
"deliveryOrder":,
"geocodingScore":,
"isCod":true,
"latitude":"20180001.22",
"latitudeJP":"56789.33",
"longitude":"20180001.33",
"longitudeJP":"123456.33",
"orderDetails":[
{
"lapCount":null,
"quantity":,
"statusCode":null,
"statusNameMobile":null,
"trackingNo":""
},
{
"lapCount":,
"quantity":,
"statusCode":"",
"statusNameMobile":"配送準備中",
"trackingNo":""
},
{
"lapCount":,
"quantity":,
"statusCode":"",
"statusNameMobile":"持出し",
"trackingNo":""
},
{
"lapCount":,
"quantity":,
"statusCode":"",
"statusNameMobile":"配送準備中",
"trackingNo":""
},
{
"lapCount":,
"quantity":,
"statusCode":"",
"statusNameMobile":"配送準備中",
"trackingNo":""
}
],
"orderNo":"",
"receiverAddress1":"東京都足立区足立1-1",
"receiverAddress2":"東京都足立区足立1-2",
"receiverName":"吉田XXX",
"receiverTelNo":"",
"shipperCode":"",
"shortShipperName":"RB",
"vehicleId":""
}
]
}
12.
Raw json text={ "type": "object", "properties": { "first_name": { "type": "string" }, "last_name": { "type": "string" }, "age": { "type": "integer" }, "club": { "type": "object", "properties": { "name": { "type": "string" }, "founded": { "type": "integer" } }, "required": ["name"] } }, "required": ["first_name", "last_name", "age", "club"]}
Compact json text={"type":"object","properties":{"first_name":{"type":"string"},"last_name":{"type":"string"},"age":{"type":"integer"},"club":{"type":"object","properties":{"name":{"type":"string"},"founded":{"type":"integer"}},"required":["name"]}},"required":["first_name","last_name","age","club"]}
{
"properties":{
"age":{
"type":"integer"
},
"club":{
"properties":{
"founded":{
"type":"integer"
},
"name":{
"type":"string"
}
},
"required":[
"name"
],
"type":"object"
},
"first_name":{
"type":"string"
},
"last_name":{
"type":"string"
}
},
"required":[
"first_name",
"last_name",
"age",
"club"
],
"type":"object"
}
--2020年5月25日--
测试JsonAnalyzer2的12个测试用例:的更多相关文章
- 用于测试 JsonAnalyzer2 1.01版的测试用例
14. 原文={"animal":"ca,t","color":"ora:nge","isMale" ...
- 测试工程师的12最 作为测试猿的你是否都遇到过o_o ....
在51testing偶然看到一篇文章,觉得很不错,就转过来了.看完笑笑之后,如果能带来点思考就更好了. 1.测试工程师最开心的事:发现了一个很严重的bug,特别是那种隐藏很深,逻辑性的错误.偶第一次发 ...
- Apache JMeter开源压力测试/负载测试工具 2.12 官方最新版
软件介绍 Jmeter是一款使用Java开发的,开源免费的,测试工具, 主要用来做功能测试和性能测试(压力测试/负载测试),而且用Jmeter 来测试 Restful API, 非常好用. 如何学 ...
- 读入一个自然数n,计算其各位数字之和,用汉语拼音写出和的每一位数字。 输入格式:每个测试输入包含1个测试用例,即给出自然数n的值。这里保证n小于10的100次幂。 输出格式:在一行内输出n的各位数字之和的每一位,拼音数字间有1 空格,但一行中最后一个拼音数字后没有空格。 输入样例: 1234567890987654321123456789 输出样例: yi san wu
这是PAT中的一道练习题 刚开始的时候我想着直接定义正整数n,结果走了很大的弯路,因为题目中要求n小于10的100次幂,即最大的正整数n有100位,而C语言中整型数字最大占8个字节的存储空间,如果按无 ...
- API Studio 5.1.2 版本更新:加入全局搜索、支持批量测试API测试用例、读取代码注解生成文档支持Github与码云等
最近在EOLINKER的开发任务繁重,许久在博客园没有更新产品动态了,经过这些日子,EOLINKER又有了长足的进步,增加了更多易用的功能,比如加入全局搜索.支持批量测试API测试用例.读取代码注解生 ...
- 测试面试题集-测试用例设计:登录、购物车、QQ收藏表情、转账、充值、提现
以下内容首发于微信公众号[ITester软件测试小栈]: 测试面试题集-2.测试用例设计 大家好 我是coco小锦鲤 上周五给大家分享了测试基础理论题 这个周五给大家分享测试用例设计题 测试用例的考察 ...
- 测试思想-测试设计 史上最详细测试用例设计实践总结 Part2
史上最详细测试用例设计实践总结 by:授客 QQ:1033553122 -------------------------接 Part1-------------------------- 方法:这里 ...
- RIDE-工程、测试套件、测试用例三者关系
理论 type的选择: 一般来说:测试项目(directory)-测试套件(file)-测试用例 本质上,“测试项目”和“测试套件”并没有什么区别,但是testcase只能放在file类型的test ...
- Jmeter之测试片段--include控制器进行接口测试以及管理测试用例
1.线程组--右键添加--测试片段--测试片段 2.在测试片段中进行添加测试用例如下图: 3.通过include控制器进行调用测试片段 (通常使用全局) 选择线程组--右键添加--逻辑控制器--Inc ...
随机推荐
- spring boot中使用mybatis的注意点!!!
1 生成的mapper接口上打上注解 2 在pom.xml中需要导入mysql(根据需要),jdbc和mybatis的依赖 3 在主类上设置扫描 4 com.mysql.cj.exceptions等报 ...
- Docker 阿里镜像
Docker 配置阿里镜像 Dokcer 拉取镜像非常慢,配置阿里镜像加速. 步骤 首先注册阿里云,找到 "容器镜像服务" --> "镜像加速器" ,复制 ...
- Java Filter过滤器(拦截路径的配置+拦截方式的配置+生命周期+多个过滤器的先后执行顺序)
Java Filter过滤器+Listen监听器 啥是过滤器 顾名思义即过滤掉一些东西,比如我们经历的高考中考都是过滤器,他过滤掉一些在学习这一方面不是很好的人,而那些成绩好的人则升入高中,大学. 但 ...
- java web应用启动报错:Several ports (8080, 8009) required by Tomcat v6.0 Server at localhost are already in use.
Several ports (8080, 8009) required by Tomcat v6.0 Server at localhost are already in use. The serve ...
- K均值聚类和DBSCAN介绍
K均值(K-means)聚类 问题定义:给定数据$\vec{x}_1,\vec{x}_2,\cdots,\vec{x}_n$,将它们分到不同的$K$个簇(cluster)中.定义$\vec{c}=(c ...
- Hydra's plan
省选前的计划,实时更新(不知道能不能把挖的坑填完呢qwq) 链接
- 多元线性回归检验t检验(P值),F检验,R方等参数的含义
做线性回归的时候,检验回归方程和各变量对因变量的解释参数很容易搞混乱,下面对这些参数进行一下说明: 1.t检验:t检验是对单个变量系数的显著性检验 一般看p值: 如果p值小于0.05表示该自 ...
- 怎么给Ubuntu Server安装GUI桌面
sudo apt update sudo apt upgrade sudo add-apt-repository universe sudo add-apt-repository multiverse ...
- 4gl游标cursor
游標有多種寫法,一種是報表里常見的 這種寫法呢,先定義一個接受sql語句的變量l_sql,而接受到的語句實際上只是一連串的字符串,還包含了4gl裡面的一些變量.寫好的l_sql裡面之所以有多個分段的雙 ...
- Windows & Linux 安装使用 Vim 编辑器 3分钟入门 - 精简归纳
Windows & Linux 安装使用 Vim 编辑器 3分钟入门 - 精简归纳 JERRY_Z. ~ 2020 / 8 / 25 转载请注明出处! 目录 Windows & Lin ...