测试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 ...
随机推荐
- CSS页面布局与网格(下)
3.二维布局:CSS Grid Layout CSS Grid Layout模块为了能在二维空间里控制元素的顺序.位置和大小而定义了一组CSS属性. 被设值为display: grid的元素叫网格容器 ...
- webgl实现发光线框(glow wireframe)效果
在之前这篇文章, WebGL 单通道wireframe渲染 我们介绍了webgl如何实现单通道wireframe的效果. 本篇文章就是在此技术原理基础之上,来实现发光的wireframe效果. 要实现 ...
- Qt之先用了再说系列-多线程方式2
继Qt之先用了再说系列-多线程方式2 本次说说在Qt里多线程使用第2种方式,也是qt官方比较推荐用的方式,相对与直接继承QThread 重写run方法中灵活了一些,如果第一次使用可能会转不湾来,没有直 ...
- 02树莓派4B—C语言编程——PWM
01树莓派直接输出PWM波 —— 硬件PWM程序 (推荐使用) #include <stdio.h> #include <wiringPi.h> #include <s ...
- TestLink使用指南
TestLink安装上之后,局域网内用户可以登陆使用,下面介绍本软件的使用方式. 1.TestLink简介 TestLink是基于Web的开源测试管理工具,用户可以使用这个工具创建测试项目和测试用例, ...
- 【WC2013】 糖果公园 - 树上莫队
问题描述 Candyland 有一座糖果公园,公园里不仅有美丽的风景.好玩的游乐项目,还有许多免费糖果的发放点,这引来了许多贪吃的小朋友来糖果公园游玩.糖果公园的结构十分奇特,它由 n 个游览点构成, ...
- 本blog的地图
欢迎 CTRL+F收索 / CTRL+D 持续更新 C++: C++快速排序 C++归并排序 高精度 CSS: CSS实现ps基础操作 PYTHON: python爬虫教程,一篇就够了 其他推荐 ...
- vue a标签下载图片文档显示下载失败
解决:把所要下载的文件放到static文件下,具体原因-静态文件放在static内,否则webpack会打包.
- SEGGER studio问题
刚开始学习用SEGGER studio编译调试nordic 52840程序,在此记录遇到的问题. 1. Additional Load File[0]:"E:\nordic/nRF5_SD ...
- 6.oracle用户管理口令
一.使用profile管理用户口令概述:profile是口令限制,资源限制的命令集合,当建立数据库时,oracle会自动建立名称为default的profile.当建立用户没有指定profile选项时 ...