# tb_testcases

create_time: 2019-11-06 07:03:59.035206
update_time: 2019-11-06 08:35:48.352484
name: 登录接口_正向用例
include: {"config":1,"testcases":[]}
author: 可优
request:
  {"test":{"name":"登录接口_正向用例","request":{"url":"/user/login/","method":"POST","json":{"username":"$username","password":"$password"}},"variables":[{"username":"keyou1"},{"password":"123456"}],"extract":[{"token":"content.token"}],"validate":[{"check":"status_code","expected":200,"comparator":"equals"}]}}


create_time: 2019-11-06 07:20:56.780181
update_time: 2019-11-06 08:36:48.365589
name: 登录接口_参数化用例_$title
include: {"config":1,"testcases":[]}
author: 柠檬小姐姐
request:
  {"test":{"name":"登录接口_参数化用例_$title","request":{"url":"/user/login/","method":"POST","json":{"username":"$username","password":"$password"}},"parameters":[{"title-username-password-status_code-contain_msg":"${get_accounts()}"}],"validate":[{"check":"status_code","expected":"$status_code","comparator":"equals"},{"check":"content","expected":"$contain_msg","comparator":"contains"}]}}


create_time: 2019-11-06 08:47:08.173015
update_time: 2019-11-06 08:49:33.053917
name: 创建项目接口_正向用例
include: {"config":null,"testcases":[1]}
author: 小优优
request:
  {"test":{"name":"创建项目接口_正向用例","request":{"url":"/projects/","method":"POST","json":{"name":"$name","leader":"$leader","tester":"$tester","programmer":"$programmer","publish_app":"$publish_app","desc":"$desc"},"headers":{"User-Agent":"Mozilla/5.0 Lemon Little Girl","Content-Type":"application/json","Accept":"application/json","Authorization":"JWT $token"}},"variables":[{"name":"${get_project_name()}"},{"leader":"可优"},{"tester":"柠檬小姐姐"},{"programmer":"优优"},{"publish_app":"国产大飞机C919研制应用"},{"desc":"此项目会提升民族自信心"}],"validate":[{"check":"status_code","expected":201,"comparator":"equals"}]}}


create_time: 2019-11-06 08:53:53.652009
update_time: 2019-11-06 09:11:47.639794
name: 创建项目接口_参数化用例_$title
include: {"config":null,"testcases":[1]}
author: 柠檬小姐姐
request:
  {"test":{"name":"创建项目接口_参数化用例_$title","request":{"url":"/projects/","method":"POST","json":{"name":"$name","leader":"$leader","tester":"$tester","programmer":"$programmer","publish_app":"$publish_app","desc":"$desc"},"headers":{"User-Agent":"Mozilla/5.0 Lemon Little Girl","Content-Type":"application/json","Accept":"application/json","Authorization":"JWT $token"}},"parameters":[{"title-name-leader-tester-programmer-publish_app-desc-status_code":"${create_project()}"}],"validate":[{"check":"status_code","expected":"$status_code","comparator":"equals"}]}}


create_time: 2019-11-06 09:27:05.067557
update_time: 2019-11-06 09:31:00.082747
name: 查看项目列表接口_正向用例
include: {"config":2,"testcases":[]}
author: 可优
request:
  {"test":{"name":"查看项目列表接口_正向用例","request":{"url":"/loans","method":"GET","params":{"pageIndex":"$pageIndex","pageSize":"$pageSize"}},"variables":[{"pageIndex":2},{"pageSize":3}],"validate":[{"check":"status_code","expected":200,"comparator":"equals"},{"check":"content.code","expected":0,"comparator":"equals"}]}}


create_time: 2019-11-06 09:47:49.566260
update_time: 2020-12-09 16:02:06.017117
name: 这是一个演示用例
include: {"config":1,"testcases":[1,3]}
author: 小优优
request:
  {"test":{"name":"这是一个演示用例","request":{"url":"/user/login/","method":"POST","json":{"username":"haha","age":18,"sex":null},"headers":{"uname":"keyou","age":"18"}},"parameters":[{"name-age":[["keyou",18],["lemon",19],["youyou",20]]},{"n-a":"${getname()}"}],"variables":[{"var1":"val1"},{"var2":100}],"extract":[{"username":"content.username"},{"myAge":"content.age"}],"validate":[{"check":"status_code","expected":200,"comparator":"equals"},{"check":"love","expected":"lemon","comparator":"equals"}],"setup_hooks":["sh1","sh2"],"teardown_hooks":["th1","th2"]}}


