摘要: document.getElementById("idName").<doname> .innerHTML 更改元素内容 .src 更改图像的地址属性值 改变 HTML 样式 (CSS) .style.fontSize 字体大小 .style.display 元素隐藏显示 提示:把JavaScrip 阅读全文
posted @ 2021-08-26 18:25 大洋Blog 阅读(46) 评论(0) 推荐(0)
摘要: 外部 CSS <!DOCTYPE html> <html> <head> <link rel="stylesheet" type="text/css" href="mystyle.css"> </head> <body> <h1>This is a heading</h1> <p>This is a 阅读全文
posted @ 2021-08-25 19:09 大洋Blog 阅读(58) 评论(0) 推荐(0)
摘要: 1、运行错误、保存程序出错 Uncaught Exception java.lang.NoClassDefFoundError: Could not initialize class org.apache.jmeter.gui.util.FileDialoger in thread Thread[A 阅读全文
posted @ 2021-08-25 18:57 大洋Blog 阅读(771) 评论(0) 推荐(0)
摘要: 基于python 1、DES加密解密 from pyDes import des,CBC,PAD_PKCS5 Des_key = 'GraspDog' class Encryption: def des_encrypt(s): """ DES 加密 :param s:原始字符串 :return:加密 阅读全文
posted @ 2021-08-23 18:52 大洋Blog 阅读(85) 评论(0) 推荐(0)
摘要: question1: pytest_html生成的html报告中的Result一栏出现‘No log output captured’: 解决办法: run_test.py文件加上“--capture=sys”参数 阅读全文
posted @ 2021-08-23 18:50 大洋Blog 阅读(502) 评论(0) 推荐(1)
摘要: Requests库+Pytest单元测试框架+Pytest_html报告+SqlSever数据库 1、pytest-html 使用测试函数docstring添加描述列,添加可排序的时间列,并删除links列 from datetime import datetime from py.xml impo 阅读全文
posted @ 2021-08-20 19:06 大洋Blog 阅读(56) 评论(0) 推荐(0)
摘要: Requests库 阅读全文
posted @ 2021-08-19 18:03 大洋Blog 阅读(15) 评论(0) 推荐(0)
摘要: 1、pip install <packageName> ValueError: check_hostname requires server_hostname 解决办法: 开启了代理导致的,关闭代理(关闭fidder等) 阅读全文
posted @ 2021-08-18 16:36 大洋Blog 阅读(42) 评论(0) 推荐(0)
摘要: 1、原则: 3A: 初始化测试数据(造数据) 调用接口(传数据) 断言assert 2、加密 AES加密 3、web接口测试用例涉及 模拟不同的参数覆盖更多的代码逻辑 接口测试工具不足 测试数据不可控 无法测试加密接口 拓展能力不足 阅读全文
posted @ 2021-08-18 10:11 大洋Blog 阅读(124) 评论(0) 推荐(0)
摘要: 自定义Git 1、忽略特殊文件 .gitignore不生效 .gitignore只能忽略那些原来没有被track的文件,如果某些文件已经被纳入了版本管理中,则修改.gitignore是无效的。 2、配置别名 git config --global alias.<name> <orderName> g 阅读全文
posted @ 2021-08-16 15:06 大洋Blog 阅读(31) 评论(0) 推荐(0)