INSERT INTO tb_testcases (create_time, update_time, id, name, include, author, request, interface_id) VALUES ('2019-11-06 07:03:59.035206', '2019-11-06 08:35:48.352484', 1, '登录接口_正向用例', '{"config":1,"testcases":[]}', '可优', '{"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"}]}}', 1);
INSERT INTO tb_testcases (create_time, update_time, id, name, include, author, request, interface_id) VALUES ('2019-11-06 07:20:56.780181', '2019-11-06 08:36:48.365589', 2, '登录接口_参数化用例_$title', '{"config":1,"testcases":[]}', '柠檬小姐姐', '{"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"}]}}', 1);
INSERT INTO tb_testcases (create_time, update_time, id, name, include, author, request, interface_id) VALUES ('2019-11-06 08:47:08.173015', '2019-11-06 08:49:33.053917', 3, '创建项目接口_正向用例', '{"config":null,"testcases":[1]}', '小优优', '{"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"}]}}', 1);
INSERT INTO tb_testcases (create_time, update_time, id, name, include, author, request, interface_id) VALUES ('2019-11-06 08:53:53.652009', '2019-11-06 09:11:47.639794', 4, '创建项目接口_参数化用例_$title', '{"config":null,"testcases":[1]}', '柠檬小姐姐', '{"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"}]}}', 3);
INSERT INTO tb_testcases (create_time, update_time, id, name, include, author, request, interface_id) VALUES ('2019-11-06 09:27:05.067557', '2019-11-06 09:31:00.082747', 5, '查看项目列表接口_正向用例', '{"config":2,"testcases":[]}', '可优', '{"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"}]}}', 6);
INSERT INTO tb_testcases (create_time, update_time, id, name, include, author, request, interface_id) VALUES ('2019-11-06 09:47:49.566260', '2020-12-09 16:02:06.017117', 6, '这是一个演示用例', '{"config":1,"testcases":[1,3]}', '小优优', '{"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"]}}', 1);