07 2019 档案

摘要:locust官网:https://locust.io/ locust安装(不支持python3.7):pip install locustio 或者pycharm安装 官网给出的样例 根据官网代码新建一个脚本 执行:locust -f 脚本 --host=要压的host:locust -f locu 阅读全文
posted @ 2019-07-29 22:12 向前走。 阅读(449) 评论(0) 推荐(0) 编辑
摘要:监控平台的js 阅读全文
posted @ 2019-07-22 00:29 向前走。 阅读(360) 评论(0) 推荐(0) 编辑
摘要:监控平台的html 阅读全文
posted @ 2019-07-22 00:27 向前走。 阅读(287) 评论(0) 推荐(0) 编辑
摘要:视图层的代码 阅读全文
posted @ 2019-07-22 00:24 向前走。 阅读(307) 评论(0) 推荐(0) 编辑
摘要:获取机器的数据 处理逻辑 阅读全文
posted @ 2019-07-22 00:20 向前走。 阅读(400) 评论(0) 推荐(0) 编辑
摘要:实现效果,选择时间段和ip,展示所选时间段下该ip的资源使用情况 MongoDB里面增加一个获取表名的方法,后面用被监控的机器的ip做表名 common里面增加发邮件的功能,用于监控触发预设值后发邮件报警 准备好一个选时间的控件,这里使用bootstrap的 阅读全文
posted @ 2019-07-22 00:15 向前走。 阅读(217) 评论(0) 推荐(0) 编辑
摘要:from selenium import webdriverfrom common import get_case_idfrom common.mongo import Mongoclass Logic(object): """ 每一个方法名对应前端的操作的元素,方便反射 """ def __init__(self): self.mongo = Mongo() ... 阅读全文
posted @ 2019-07-17 22:25 向前走。 阅读(274) 评论(0) 推荐(0) 编辑
摘要://添加网址的函数,生成一个输入网址的标签,并且把标签append到id为cases下function browser() { var html = '\ <div class="row" command="browser">\ <label>打开网址:</label>\ <input type=" 阅读全文
posted @ 2019-07-17 22:24 向前走。 阅读(456) 评论(0) 推荐(0) 编辑
摘要:{% extends "base.html" %}{% block script %} <!-- 引入js文件,需要在base.html留入口,不然渲染会出问题。 --> <script src="/automation/static/automation.js"></script>{% endbl 阅读全文
posted @ 2019-07-17 22:22 向前走。 阅读(485) 评论(0) 推荐(0) 编辑
摘要:实现效果,在页面时配置 后台执行 蓝图结构 视图代码 阅读全文
posted @ 2019-07-17 22:20 向前走。 阅读(283) 评论(0) 推荐(0) 编辑
摘要:common.js base.html footer.html header.html test-platform.py(程序入口) 阅读全文
posted @ 2019-07-07 22:56 向前走。 阅读(911) 评论(1) 推荐(0) 编辑
摘要:create的js report的js,这里使用百度的echarts:https://echarts.baidu.com/examples/ create的html report的html 蓝图的视图 interface蓝图的处理逻辑 阅读全文
posted @ 2019-07-07 22:54 向前走。 阅读(496) 评论(0) 推荐(0) 编辑
摘要:实现接口测试平台使用jsonpath进行取值来断言,效果: 访问页面: 调试功能:http://www.kuaidi100.com/query 保存功能 触发执行功能 查看报告功能 目录结构 common的代码: init: mongo: 阅读全文
posted @ 2019-07-07 22:45 向前走。 阅读(417) 评论(0) 推荐(0) 编辑
摘要:准备两个接口方便后面进行测试 阅读全文
posted @ 2019-07-01 20:20 向前走。 阅读(321) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示