摘要: System.setProperty("webdriver.chrome.driver", "xxx/chromedriver"); // Chrome options = new ChromeOptions(); // 启动就最大化 // options.addArguments("start-fullscreen"); // options.addArguments("--start-ma... 阅读全文
posted @ 2019-04-11 22:07 嗯哼~ 阅读(4484) 评论(0) 推荐(0) 编辑
摘要: 组合键的使用以及对于 Keys 类型没有覆盖到的组合键的扩展 概念 在使用 Selenium WebDriver 做自动化测试的时候,会经常模拟鼠标和键盘的一些行为。比如使用鼠标单击、双击、右击、拖拽等动作;或者键盘输入、快捷键使用、组合键使用等模拟键盘的操作。在 WebDeriver 中,有一个专 阅读全文
posted @ 2019-04-11 22:00 嗯哼~ 阅读(266) 评论(0) 推荐(0) 编辑
摘要: #define VK_TSOFT2 VK_F2 // Softkey 2 #define VK_TTALK VK_F3 // Talk #define VK_TEND VK_F4 // End #define VK_THOME VK_LWIN // Home #define VK_TBACK VK_ 阅读全文
posted @ 2019-04-11 21:36 嗯哼~ 阅读(15317) 评论(0) 推荐(0) 编辑
摘要: server: port: 8080 spring: profiles: active: dev datasource: name: test #erverTimezone=UTC UTC是统一标准世界时间 url: jdbc:mysql://127.0.0.1:3306/database?useUnicode=true&characterEncod... 阅读全文
posted @ 2019-04-09 21:41 嗯哼~ 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 1、配置超时 int timeout = 5; RequestConfig config = RequestConfig.custom() .setConnectTimeout(timeout * 1000) .setConnectionRequestTimeout(timeout * 1000) 阅读全文
posted @ 2019-04-04 22:42 嗯哼~ 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/zuozewei/article/details/84727095 <! flowchart 箭头图标 勿删 文章目录HTTPS接口实现新建Spring Boot项目编写Entity统一异常处理创建RE 阅读全文
posted @ 2019-03-25 23:22 嗯哼~ 阅读(6235) 评论(1) 推荐(0) 编辑
摘要: 版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/zuozewei/article/details/84727450 <! flowchart 箭头图标 勿删 文章目录前言具体实现引包采用绕过证书验证测试HTTPS接口采用设置信任自签名证书测试HTTP 阅读全文
posted @ 2019-03-25 23:21 嗯哼~ 阅读(3274) 评论(0) 推荐(0) 编辑
摘要: 原 秒懂HTTPS接口(原理篇) 2018年12月03日 10:08:33 zuozewei 阅读数:441更多 所属专栏: Java接口自动化 版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/zuozewei/article/details/847 阅读全文
posted @ 2019-03-25 23:20 嗯哼~ 阅读(992) 评论(0) 推荐(0) 编辑
摘要: ``` //全局捕获异常对basePackages的包生效 @ControllerAdvice(basePackages = "com.wld.controller") public class GlobalExpectionHandler(){ //@ExceptionHandler(RuntimeException.class)仅仅捕获RuntimeException异常类型 @Exc... 阅读全文
posted @ 2019-03-20 23:35 嗯哼~ 阅读(294) 评论(0) 推荐(0) 编辑
摘要: 官网实例参考: http://hc.apache.org/httpcomponents client 4.5.x/ http://hc.apache.org/httpcomponents client 4.5.x/examples.html Https验证相关: https://docs.oracl 阅读全文
posted @ 2019-03-17 22:26 嗯哼~ 阅读(135) 评论(0) 推荐(0) 编辑