共计 15196 个字符,预计需要花费 38 分钟才能阅读完成。
前言
定时的 Task,置信大家工作的我的项目中必定都用着呢,这个货色是在咱们工作中真的是无奈少了它,很多性能都须要依附定时工作来实现,自动化测试也一样。然而咱们之前应用的工具通通没有这个性能,这回 Eolink 进去个这个性能是相当的给力,我晓得这个性能后也是第一工夫进行了测试。上面就是我整个的测试过程,心愿能对大家有所帮忙。
演示步骤
1、我的项目创立
2、创立定时工作
3、定时工作测试
一、我的项目创立
1、抉择 API 自动化测试性能
咱们要测试的是定时工作,必定是属于自动化测试,这个功能位置安顿的就很正当,这里须要给 GUI 的产品布局点个赞。
2、增加我的项目
咱们既然测试一个新性能为了更加明确,咱们独自创立一个新的我的项目。
填入自动化测试的名称以及备注,这里备注是【选填】。
3、引入测试用例
咱们须要进入到我的项目中为我的项目增加对应的测试用例。
用例采纳我提供的就能够,服务是在线的 MySQL,间接用即可。相对可用,保障测试过程的顺畅。
间接复制,并制作成一个 json 文件。
{"caseList":[{"caseID":553171,"caseName":"Eolink_MySQL_API","caseDesc":"","caseType":0,"caseCode":"","caseTag":"","userID":643871,"priority":0,"caseStyle":"general","commonCaseList":[],"commonCaseApiConnCaseList":[],"caseSingleList":[],"dbStepList":[{"connID":6492,"caseID":553171,"apiName":"1\u3001\u65e0\u53c2\u6570\u67e5\u8be2","dbID":1022,"caseData":"{\"params\":[],\"keepGoing\":1,\"sqlCode\":\"select * from eolink_mysql_api;\"}","orderNumber":1,"isLock":0,"delayTime":0,"matchType":2,"matchRule":"\/\/\u6570\u636e\u5e93\u8fd4\u56de\u7ed3\u679c\u6821\u9a8c\u811a\u672c\u793a\u4f8b\n\/\/\u6570\u636e\u5e93\u64cd\u4f5c\u7ed3\u679c\u793a\u4f8b\u8bf7\u67e5\u770b\u5e2e\u52a9\u4e2d\u5fc3\u6559\u7a0b\n\/\/\u6570\u636e\u5e93\u6267\u884c\u7684\u8fd4\u56de\u7ed3\u679c\u50a8\u5b58\u5728\u53d8\u91cfdb_result\u4e2d\nif(db_result[\"status\"]==\"success\"){\n\t\/\/\u6570\u636e\u5e93\u8bed\u53e5\u6574\u4f53\u6267\u884c\u6210\u529f\n\t\/\/\u6bcf\u4e00\u6761\u6570\u636e\u5e93\u8bed\u53e5\u7684\u6267\u884c\u7ed3\u679c\u50a8\u5b58\u5728db_result[\"query\"][...]\u6570\u7ec4\u4e2d\n\t\/\/\u53ef\u4ee5\u901a\u8fc7\u5982db_result[\"query\"][0][\"result\"]\u53d6\u51fa\u7b2c\u4e00\u6761\u8bed\u53e5\u6267\u884c\u7684\u8fd4\u56de\u7ed3\u679c\n\t\/\/\u53ef\u4ee5\u901a\u8fc7\u5982db_result[\"query\"][0][\"info\"][\"status\"]\u53d6\u51fa\u7b2c\u4e00\u6761\u8bed\u53e5\u6267\u884c\u7684\u72b6\u6001\n\t\/\/\u53ef\u4ee5\u901a\u8fc7\u5982db_result[\"query\"][0][\"info\"][\"time\"]\u53d6\u51fa\u7b2c\u4e00\u6761\u8bed\u53e5\u6267\u884c\u7684\u65f6\u95f4\n\teo.info(db_result[\"query\"][0][\"result\"]);\n}\nelse{\n\t\/\/\u6267\u884c\u5931\u8d25\n\teo.stop(\"\u6570\u636e\u5e93\u8bed\u53e5\u6267\u884c\u5931\u8d25\");\n}","generateResponseCode":"","updateTime":"2022-11-29 18:43:29","createTime":"2022-11-29 18:43:29","isExecute":1,"resultParam":"[]","customInfo":"{}","operationGroupID":0,"dbConnectName":"Eolink_MySQL_Test","dbCreateTime":"2022-11-29 18:25:40","dbInfo":{"dbID":1022,"dbConnectName":"Eolink_MySQL_Test","dbType":0,"dbInfoList":"[{\"envID\":0,\"port\":\"3306\",\"name\":\"eolink_test\",\"host\":\"C82b0XR5i89FWlGw6tQULUe7Ca+c6jquXsNF1UIzDZD1gP9\/Ac9cC6686FZW9zSs\",\"user\":\"Hy51ZQGees0ZX5lkDBa2xA==\",\"password\":\"NY18bypH9WTLsMMxErulHg==\"}]","dbDesc":"\u6d4b\u8bd5Eolink\u8fde\u63a5MySQL\u5e76\u521b\u5efa\u6d4b\u8bd5","createTime":"2022-11-29 18:25:40","dbCreateTime":"2022-11-29 18:25:40"}},{"connID":6493,"caseID":553171,"apiName":"2\u3001\u6709\u53c2\u67e5\u8be2\u8bed\u53e5","dbID":1022,"caseData":"{\"params\":[{\"paramKey\":\"userName\",\"paramNotNull\":\"0\",\"paramInfo\":\"Eolink_admin\"}],\"keepGoing\":1,\"sqlCode\":\"select * from eolink_mysql_api where userName = '$${userName}';\"}","orderNumber":2,"isLock":0,"delayTime":0,"matchType":2,"matchRule":"\nif(db_result[\"status\"]==\"success\"){\n\tif(db_result[\"query\"][0][\"result\"][0][\"userName\"]==\"Eolink_admin\"){\n\t eo.info(\"\u67e5\u8be2\u7ed3\u679c\u7684userName\u662fEolink_admin\u6240\u4ee5\u6d4b\u8bd5\u6210\u529f\");\n\t}else{\n\t eo.stop(\"\u8fd4\u56de\u7ed3\u679c\u4e0e\u9700\u6c42\u4e0d\u7b26\");\n\t}\n}\nelse{\n\t\/\/\u6267\u884c\u5931\u8d25\n\teo.stop(\"\u6570\u636e\u5e93\u8bed\u53e5\u6267\u884c\u5931\u8d25\");\n}","generateResponseCode":"","updateTime":"2022-11-29 18:57:50","createTime":"2022-11-29 18:54:46","isExecute":1,"resultParam":"[]","customInfo":"{}","operationGroupID":0,"dbConnectName":"Eolink_MySQL_Test","dbCreateTime":"2022-11-29 18:25:40","dbInfo":{"dbID":1022,"dbConnectName":"Eolink_MySQL_Test","dbType":0,"dbInfoList":"[{\"envID\":0,\"port\":\"3306\",\"name\":\"eolink_test\",\"host\":\"C82b0XR5i89FWlGw6tQULUe7Ca+c6jquXsNF1UIzDZD1gP9\/Ac9cC6686FZW9zSs\",\"user\":\"Hy51ZQGees0ZX5lkDBa2xA==\",\"password\":\"NY18bypH9WTLsMMxErulHg==\"}]","dbDesc":"\u6d4b\u8bd5Eolink\u8fde\u63a5MySQL\u5e76\u521b\u5efa\u6d4b\u8bd5","createTime":"2022-11-29 18:25:40","dbCreateTime":"2022-11-29 18:25:40"}},{"connID":6494,"caseID":553171,"apiName":"\u589e\u52a0\u8bed\u53e5","dbID":1022,"caseData":"{\"params\":[{\"paramKey\":\"phone\",\"paramNotNull\":\"0\",\"paramInfo\":\"13472040766\"},{\"paramKey\":\"userName\",\"paramNotNull\":\"0\",\"paramInfo\":\"Eolink_super_admin\"},{\"paramKey\":\"pwd\",\"paramNotNull\":\"0\",\"paramInfo\":\"123456\"},{\"paramKey\":\"introduce\",\"paramNotNull\":\"0\",\"paramInfo\":\"\u4e13\u4e3a\u5f00\u53d1\u8005\u8bbe\u8ba1\u7684API\u534f\u4f5c\u5e73\u53f0\"}],\"keepGoing\":1,\"sqlCode\":\"insert into eolink_mysql_api VALUES(0,NOW(),NOW(),'$${phone}','$${userName}','$${pwd}','$${introduce}');\"}","orderNumber":3,"isLock":0,"delayTime":0,"matchType":2,"matchRule":"\/\/\u6570\u636e\u5e93\u8fd4\u56de\u7ed3\u679c\u6821\u9a8c\u811a\u672c\u793a\u4f8b\n\/\/\u6570\u636e\u5e93\u64cd\u4f5c\u7ed3\u679c\u793a\u4f8b\u8bf7\u67e5\u770b\u5e2e\u52a9\u4e2d\u5fc3\u6559\u7a0b\n\/\/\u6570\u636e\u5e93\u6267\u884c\u7684\u8fd4\u56de\u7ed3\u679c\u50a8\u5b58\u5728\u53d8\u91cfdb_result\u4e2d\nif(db_result[\"status\"]==\"success\"){\n\t\/\/\u6570\u636e\u5e93\u8bed\u53e5\u6574\u4f53\u6267\u884c\u6210\u529f\n\t\/\/\u6bcf\u4e00\u6761\u6570\u636e\u5e93\u8bed\u53e5\u7684\u6267\u884c\u7ed3\u679c\u50a8\u5b58\u5728db_result[\"query\"][...]\u6570\u7ec4\u4e2d\n\t\/\/\u53ef\u4ee5\u901a\u8fc7\u5982db_result[\"query\"][0][\"result\"]\u53d6\u51fa\u7b2c\u4e00\u6761\u8bed\u53e5\u6267\u884c\u7684\u8fd4\u56de\u7ed3\u679c\n\t\/\/\u53ef\u4ee5\u901a\u8fc7\u5982db_result[\"query\"][0][\"info\"][\"status\"]\u53d6\u51fa\u7b2c\u4e00\u6761\u8bed\u53e5\u6267\u884c\u7684\u72b6\u6001\n\t\/\/\u53ef\u4ee5\u901a\u8fc7\u5982db_result[\"query\"][0][\"info\"][\"time\"]\u53d6\u51fa\u7b2c\u4e00\u6761\u8bed\u53e5\u6267\u884c\u7684\u65f6\u95f4\n\teo.info(db_result[\"query\"][0][\"result\"]);\n}\nelse{\n\t\/\/\u6267\u884c\u5931\u8d25\n\teo.stop(\"\u6570\u636e\u5e93\u8bed\u53e5\u6267\u884c\u5931\u8d25\");\n}","generateResponseCode":"","updateTime":"2022-11-29 19:02:02","createTime":"2022-11-29 19:02:02","isExecute":1,"resultParam":"[]","customInfo":"{}","operationGroupID":0,"dbConnectName":"Eolink_MySQL_Test","dbCreateTime":"2022-11-29 18:25:40","dbInfo":{"dbID":1022,"dbConnectName":"Eolink_MySQL_Test","dbType":0,"dbInfoList":"[{\"envID\":0,\"port\":\"3306\",\"name\":\"eolink_test\",\"host\":\"C82b0XR5i89FWlGw6tQULUe7Ca+c6jquXsNF1UIzDZD1gP9\/Ac9cC6686FZW9zSs\",\"user\":\"Hy51ZQGees0ZX5lkDBa2xA==\",\"password\":\"NY18bypH9WTLsMMxErulHg==\"}]","dbDesc":"\u6d4b\u8bd5Eolink\u8fde\u63a5MySQL\u5e76\u521b\u5efa\u6d4b\u8bd5","createTime":"2022-11-29 18:25:40","dbCreateTime":"2022-11-29 18:25:40"}},{"connID":6495,"caseID":553171,"apiName":"\u5220\u9664\u8bed\u53e5","dbID":1022,"caseData":"{\"params\":[{\"paramKey\":\"phone\",\"paramNotNull\":\"0\",\"paramInfo\":\"13472040766\"}],\"keepGoing\":1,\"sqlCode\":\"DELETE from eolink_mysql_api where phone = '$${phone}';\"}","orderNumber":4,"isLock":0,"delayTime":0,"matchType":2,"matchRule":"\/\/\u6570\u636e\u5e93\u8fd4\u56de\u7ed3\u679c\u6821\u9a8c\u811a\u672c\u793a\u4f8b\n\/\/\u6570\u636e\u5e93\u64cd\u4f5c\u7ed3\u679c\u793a\u4f8b\u8bf7\u67e5\u770b\u5e2e\u52a9\u4e2d\u5fc3\u6559\u7a0b\n\/\/\u6570\u636e\u5e93\u6267\u884c\u7684\u8fd4\u56de\u7ed3\u679c\u50a8\u5b58\u5728\u53d8\u91cfdb_result\u4e2d\nif(db_result[\"status\"]==\"success\"){\n\t\/\/\u6570\u636e\u5e93\u8bed\u53e5\u6574\u4f53\u6267\u884c\u6210\u529f\n\t\/\/\u6bcf\u4e00\u6761\u6570\u636e\u5e93\u8bed\u53e5\u7684\u6267\u884c\u7ed3\u679c\u50a8\u5b58\u5728db_result[\"query\"][...]\u6570\u7ec4\u4e2d\n\t\/\/\u53ef\u4ee5\u901a\u8fc7\u5982db_result[\"query\"][0][\"result\"]\u53d6\u51fa\u7b2c\u4e00\u6761\u8bed\u53e5\u6267\u884c\u7684\u8fd4\u56de\u7ed3\u679c\n\t\/\/\u53ef\u4ee5\u901a\u8fc7\u5982db_result[\"query\"][0][\"info\"][\"status\"]\u53d6\u51fa\u7b2c\u4e00\u6761\u8bed\u53e5\u6267\u884c\u7684\u72b6\u6001\n\t\/\/\u53ef\u4ee5\u901a\u8fc7\u5982db_result[\"query\"][0][\"info\"][\"time\"]\u53d6\u51fa\u7b2c\u4e00\u6761\u8bed\u53e5\u6267\u884c\u7684\u65f6\u95f4\n\teo.info(db_result[\"query\"][0][\"result\"]);\n}\nelse{\n\t\/\/\u6267\u884c\u5931\u8d25\n\teo.stop(\"\u6570\u636e\u5e93\u8bed\u53e5\u6267\u884c\u5931\u8d25\");\n}","generateResponseCode":"","updateTime":"2022-11-29 19:05:31","createTime":"2022-11-29 19:05:11","isExecute":1,"resultParam":"[]","customInfo":"{}","operationGroupID":0,"dbConnectName":"Eolink_MySQL_Test","dbCreateTime":"2022-11-29 18:25:40","dbInfo":{"dbID":1022,"dbConnectName":"Eolink_MySQL_Test","dbType":0,"dbInfoList":"[{\"envID\":0,\"port\":\"3306\",\"name\":\"eolink_test\",\"host\":\"C82b0XR5i89FWlGw6tQULUe7Ca+c6jquXsNF1UIzDZD1gP9\/Ac9cC6686FZW9zSs\",\"user\":\"Hy51ZQGees0ZX5lkDBa2xA==\",\"password\":\"NY18bypH9WTLsMMxErulHg==\"}]","dbDesc":"\u6d4b\u8bd5Eolink\u8fde\u63a5MySQL\u5e76\u521b\u5efa\u6d4b\u8bd5","createTime":"2022-11-29 18:25:40","dbCreateTime":"2022-11-29 18:25:40"}},{"connID":6496,"caseID":553171,"apiName":"\u4fee\u6539\u8bed\u53e5","dbID":1022,"caseData":"{\"params\":[{\"paramKey\":\"pwd\",\"paramNotNull\":\"0\",\"paramInfo\":\"123456\"},{\"paramKey\":\"userName\",\"paramNotNull\":\"0\",\"paramInfo\":\"Eolink_admin\"}],\"keepGoing\":1,\"sqlCode\":\"update eolink_mysql_api set pwd =PASSWORD('$${pwd}') where userName ='$${userName}';\"}","orderNumber":5,"isLock":0,"delayTime":0,"matchType":2,"matchRule":"\/\/\u6570\u636e\u5e93\u8fd4\u56de\u7ed3\u679c\u6821\u9a8c\u811a\u672c\u793a\u4f8b\n\/\/\u6570\u636e\u5e93\u64cd\u4f5c\u7ed3\u679c\u793a\u4f8b\u8bf7\u67e5\u770b\u5e2e\u52a9\u4e2d\u5fc3\u6559\u7a0b\n\/\/\u6570\u636e\u5e93\u6267\u884c\u7684\u8fd4\u56de\u7ed3\u679c\u50a8\u5b58\u5728\u53d8\u91cfdb_result\u4e2d\nif(db_result[\"status\"]==\"success\"){\n\t\/\/\u6570\u636e\u5e93\u8bed\u53e5\u6574\u4f53\u6267\u884c\u6210\u529f\n\t\/\/\u6bcf\u4e00\u6761\u6570\u636e\u5e93\u8bed\u53e5\u7684\u6267\u884c\u7ed3\u679c\u50a8\u5b58\u5728db_result[\"query\"][...]\u6570\u7ec4\u4e2d\n\t\/\/\u53ef\u4ee5\u901a\u8fc7\u5982db_result[\"query\"][0][\"result\"]\u53d6\u51fa\u7b2c\u4e00\u6761\u8bed\u53e5\u6267\u884c\u7684\u8fd4\u56de\u7ed3\u679c\n\t\/\/\u53ef\u4ee5\u901a\u8fc7\u5982db_result[\"query\"][0][\"info\"][\"status\"]\u53d6\u51fa\u7b2c\u4e00\u6761\u8bed\u53e5\u6267\u884c\u7684\u72b6\u6001\n\t\/\/\u53ef\u4ee5\u901a\u8fc7\u5982db_result[\"query\"][0][\"info\"][\"time\"]\u53d6\u51fa\u7b2c\u4e00\u6761\u8bed\u53e5\u6267\u884c\u7684\u65f6\u95f4\n\teo.info(db_result[\"query\"][0][\"result\"]);\n}\nelse{\n\t\/\/\u6267\u884c\u5931\u8d25\n\teo.stop(\"\u6570\u636e\u5e93\u8bed\u53e5\u6267\u884c\u5931\u8d25\");\n}","generateResponseCode":"","updateTime":"2022-11-29 19:07:42","createTime":"2022-11-29 19:07:42","isExecute":1,"resultParam":"[]","customInfo":"{}","operationGroupID":0,"dbConnectName":"Eolink_MySQL_Test","dbCreateTime":"2022-11-29 18:25:40","dbInfo":{"dbID":1022,"dbConnectName":"Eolink_MySQL_Test","dbType":0,"dbInfoList":"[{\"envID\":0,\"port\":\"3306\",\"name\":\"eolink_test\",\"host\":\"C82b0XR5i89FWlGw6tQULUe7Ca+c6jquXsNF1UIzDZD1gP9\/Ac9cC6686FZW9zSs\",\"user\":\"Hy51ZQGees0ZX5lkDBa2xA==\",\"password\":\"NY18bypH9WTLsMMxErulHg==\"}]","dbDesc":"\u6d4b\u8bd5Eolink\u8fde\u63a5MySQL\u5e76\u521b\u5efa\u6d4b\u8bd5","createTime":"2022-11-29 18:25:40","dbCreateTime":"2022-11-29 18:25:40"}},{"connID":6497,"caseID":553171,"apiName":"\u89c6\u56fe\u67e5\u8be2","dbID":1022,"caseData":"{\"params\":[],\"keepGoing\":1,\"sqlCode\":\"select * from eolink_view;\"}","orderNumber":6,"isLock":0,"delayTime":0,"matchType":2,"matchRule":"\/\/\u6570\u636e\u5e93\u8fd4\u56de\u7ed3\u679c\u6821\u9a8c\u811a\u672c\u793a\u4f8b\n\/\/\u6570\u636e\u5e93\u64cd\u4f5c\u7ed3\u679c\u793a\u4f8b\u8bf7\u67e5\u770b\u5e2e\u52a9\u4e2d\u5fc3\u6559\u7a0b\n\/\/\u6570\u636e\u5e93\u6267\u884c\u7684\u8fd4\u56de\u7ed3\u679c\u50a8\u5b58\u5728\u53d8\u91cfdb_result\u4e2d\nif(db_result[\"status\"]==\"success\"){\n\t\/\/\u6570\u636e\u5e93\u8bed\u53e5\u6574\u4f53\u6267\u884c\u6210\u529f\n\t\/\/\u6bcf\u4e00\u6761\u6570\u636e\u5e93\u8bed\u53e5\u7684\u6267\u884c\u7ed3\u679c\u50a8\u5b58\u5728db_result[\"query\"][...]\u6570\u7ec4\u4e2d\n\t\/\/\u53ef\u4ee5\u901a\u8fc7\u5982db_result[\"query\"][0][\"result\"]\u53d6\u51fa\u7b2c\u4e00\u6761\u8bed\u53e5\u6267\u884c\u7684\u8fd4\u56de\u7ed3\u679c\n\t\/\/\u53ef\u4ee5\u901a\u8fc7\u5982db_result[\"query\"][0][\"info\"][\"status\"]\u53d6\u51fa\u7b2c\u4e00\u6761\u8bed\u53e5\u6267\u884c\u7684\u72b6\u6001\n\t\/\/\u53ef\u4ee5\u901a\u8fc7\u5982db_result[\"query\"][0][\"info\"][\"time\"]\u53d6\u51fa\u7b2c\u4e00\u6761\u8bed\u53e5\u6267\u884c\u7684\u65f6\u95f4\n\teo.info(db_result[\"query\"][0][\"result\"]);\n}\nelse{\n\t\/\/\u6267\u884c\u5931\u8d25\n\teo.stop(\"\u6570\u636e\u5e93\u8bed\u53e5\u6267\u884c\u5931\u8d25\");\n}","generateResponseCode":"","updateTime":"2022-11-29 19:09:55","createTime":"2022-11-29 19:09:55","isExecute":1,"resultParam":"[]","customInfo":"{}","operationGroupID":0,"dbConnectName":"Eolink_MySQL_Test","dbCreateTime":"2022-11-29 18:25:40","dbInfo":{"dbID":1022,"dbConnectName":"Eolink_MySQL_Test","dbType":0,"dbInfoList":"[{\"envID\":0,\"port\":\"3306\",\"name\":\"eolink_test\",\"host\":\"C82b0XR5i89FWlGw6tQULUe7Ca+c6jquXsNF1UIzDZD1gP9\/Ac9cC6686FZW9zSs\",\"user\":\"Hy51ZQGees0ZX5lkDBa2xA==\",\"password\":\"NY18bypH9WTLsMMxErulHg==\"}]","dbDesc":"\u6d4b\u8bd5Eolink\u8fde\u63a5MySQL\u5e76\u521b\u5efa\u6d4b\u8bd5","createTime":"2022-11-29 18:25:40","dbCreateTime":"2022-11-29 18:25:40"}}],"dbStepApiConnCaseList":[],"dataCollectionData":null}],"commonDatabasesList":[{"dbID":1022,"dbConnectName":"Eolink_MySQL_Test","dbType":0,"dbInfoList":"[{\"envID\":0,\"port\":\"3306\",\"name\":\"eolink_test\",\"host\":\"C82b0XR5i89FWlGw6tQULUe7Ca+c6jquXsNF1UIzDZD1gP9\/Ac9cC6686FZW9zSs\",\"user\":\"Hy51ZQGees0ZX5lkDBa2xA==\",\"password\":\"NY18bypH9WTLsMMxErulHg==\"}]","dbDesc":"\u6d4b\u8bd5Eolink\u8fde\u63a5MySQL\u5e76\u521b\u5efa\u6d4b\u8bd5","createTime":"2022-11-29 18:25:40","updateTime":"2022-11-29 18:25:40"}],"caseType":"sceneCase"}
在增加分组的下拉菜单中抉择【导入】
点击增加 *.json 文件,抉择咱们
咱们能够看到文件名,看到后代表抉择胜利过,点击确定进行上传。
咱们上传的过程中须要稍等一会,这里有 2 个步骤。
步骤一、上传 json 文件
步骤二、解析导入的 json 文件
实践上有步骤三,这里少了一步异步刷新。
稍等一会也就实现了。
咱们须要被动的点击刷新进行列表刷新,点击用例,进入用例查看 API。
用例导入胜利:
4、自动化批量测试
咱们先自行手动进行批量测试,一会再设定【定时工作】测试。
咱们这里能够通过 ID 右侧的 checkbox 来全选所有的 API,勾选实现后咱们点击指针批示的执行测试来进行批量自动化测试。
测试通过后会返回测试后果。咱们能够在测试后果中看到所有的 API 都是测试通过的。
二、创立定时工作
咱们须要切换到【定时工作】操作面板,抉择【增加定时工作】性能。
输出定时工作名称,备注是选填的,抉择测试的工夫,这里给定的工夫分为多种。
咱们须要依据本人的接口测试目标,人员负责的内容进行选择性告诉。能够批量抉择邮箱告诉,这是个好性能,十分同意。
定时到 19:00,因为马上就要到了,我用的是 12 小时的显示方式。故而显示 6:57PM。
三、定时工作测试👍👍👍👍👍
1、启动定时工作
设置结束后咱们抉择保留。保留后会跳回到【定时工作】面板。在此面板中咱们能看到刚创立的定时工作,在最右侧的更多下拉菜单中有【执行】操作,咱们点击执行。
能够看到【胜利】的提醒字样,以后的工夫是:【18:58】,咱们初创工作会默认执行一次。
2、初创工作告诉
默认执行的操作,收到邮件告诉:
在邮件中咱们能看到测试的后果与数据。以后工夫马上到 19:00 我 们再稍等一会期待定时工作。
3、定时工作执行
刚刚到定时工夫,咱们查看定时工作,在此能够看到她的状态为测试中。那么很显著,咱们的定时工作曾经开始执行 Eolink 的 UE 还是很不错的,晓得这个时候应该给个状态提醒。
正式定时工作告诉,工夫【19:00】我是【7:00PM】。
邮件告诉信息,我这里略微计算了一下总用时。
测试结束状态批改。
4、报告剖析
这里对报告的详情都给了肯定的剖析,为了展现这个数据我积攒了良久的数据呢。
上面是具体的定时工作列表:
四、总结
super,真是开发测试必备良品,总结一下开发与测试的具体应用步骤:
1、通过 Eolink 的主动正文工具进行全代码正文
2、通过一键上传 API 的形式上传到 Eolink 的 API 用例中
3、通过自动化 API 测试创立我的项目,引入 API 用例
4、批量测试通过率
5、创立定时工作
6、设置测试接口与告诉人员
7、等着收邮件👍👍👍👍👍
体验地址:API 自动化——定时工作