- 博客(9)
- 收藏
- 关注
原创 java中的宏变量,宏替换
https://www.jianshu.com/p/1cc6bfc4ee48public class TestMain01 { public static void main(String[] args) { String hw = "hello world"; String hello = "hello"; final String ...
2019-11-27 20:49:26 358
原创 ReentrantLock示例
ReentrantLock的可重入性public class ReentrantLockTest01 { public static void main(String[] args) { //默认为非公平锁 ReentrantLock lock = new ReentrantLock(); //在同一线程中,ReentrantLoc...
2019-10-18 00:23:37 219
原创 Selenium失败及解决方案集锦
问题:Starting ChromeDriver 77.0.3865.40 (f484704e052e0b556f8030b65b953dce96503217-refs/branch-heads/3865@{#442}) on port 17153Only local connections are allowed.Please protect ports used by ChromeDriv...
2019-10-16 20:25:52 732
原创 Springboot Mybatis融合
创建springboot工程查看生成工程pom.xml<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:sc...
2019-10-07 21:48:35 98
原创 常用Java maven依赖
org.apache.commons.lang3: java.long相关的工具类封装<dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-lang3</artifactId> <versio...
2019-10-07 21:04:34 866
原创 Selenium设置浏览器Device mode
背景在做UI自动化的过程中,有时会遇到需要通过chrome的device mode来打开的页面,这时就需要通过对chromeoptions做一些设置来改变chrome的模式。比如:方案ChromeOptions提供了丰富的chrome配置,这里我们主要针对mobileEmulation做配置,代码很简单:public class TestMain { public static...
2019-09-28 16:26:54 1044
原创 TestNg重试机制
TestNg提供了失败重试接口IRetryAnalyzer,需要实现retry方法:package com.shunhe.testngprac.retry;import org.testng.IRetryAnalyzer;import org.testng.ITestResult;/** * 设置testng用例失败重试次数 * Created by alvin on 2019/2...
2019-09-25 19:07:55 1223
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人