自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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 348

原创 ReentrantLock示例

ReentrantLock的可重入性public class ReentrantLockTest01 { public static void main(String[] args) { //默认为非公平锁 ReentrantLock lock = new ReentrantLock(); //在同一线程中,ReentrantLoc...

2019-10-18 00:23:37 212

原创 前端页面测试checklist

2019-10-16 23:06:08 671

原创 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 717

原创 Java类的加载

2019-10-07 21:52:41 151

原创 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 93

原创 常用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 856

原创 Selenium设置浏览器Device mode

背景在做UI自动化的过程中,有时会遇到需要通过chrome的device mode来打开的页面,这时就需要通过对chromeoptions做一些设置来改变chrome的模式。比如:方案ChromeOptions提供了丰富的chrome配置,这里我们主要针对mobileEmulation做配置,代码很简单:public class TestMain { public static...

2019-09-28 16:26:54 1019

原创 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 1206

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除