1、在获取一个session的时候会从tranactionFactory实例化一个对象放到session的属性中 2、什么时候开启事务呢? 3、什么时候提交或者关闭事务呢? ...
分类:
其他好文 时间:
2018-08-30 01:53:09
阅读次数:
171
Background If thou doest well, shalt thou not be accepted? and if thou doest not well, sin lieth at the door. And unto thee shall be his desire, and t ...
分类:
其他好文 时间:
2018-08-26 10:27:38
阅读次数:
186
转自:https://blog.csdn.net/five3/article/details/50013159 直接上代码,注意是基于chrome内核的浏览器,基于ie的请替换其中的chrome方法为ie,但自己未尝试过,如果有结果可以告知! from selenium.webdriver.chro ...
分类:
编程语言 时间:
2018-08-21 01:04:31
阅读次数:
177
在做android图片加载的时候,由于手机屏幕受限,很多大图加载过来的时候,我们要求等比例缩放,比如按照固定的宽度,等比例缩放高度,使得图片的尺寸比例得到相应的缩放,但图片没有变形。显然按照android:scaleType不能实现,因为会有很多限制,所以必须要自己写算法。 通过Picasso来缩放 ...
分类:
移动开发 时间:
2018-08-03 17:33:05
阅读次数:
225
Selenium出来已经有很多年了,从最初的Selenium1到后来的Selenium2,也变得越来越成熟,而且也已经被很多公司广泛使用。Selenium发展的过程中,分了很多模块,这里我们主要介绍Webdriver,Webdriver已经被很多浏览器所兼容。WebDriver在自动化脚本和浏览器之 ...
分类:
Web程序 时间:
2018-07-22 17:04:23
阅读次数:
310
一、Argument And Parameter the user who use the function say "give you a argument". the function say "Thank you for you parameter". The function return ...
分类:
其他好文 时间:
2018-07-22 00:11:05
阅读次数:
186
A palindrome partition is the partitioning of a string such that each separate substring is a palindrome. For example, the string "ABACABA" could be p ...
分类:
其他好文 时间:
2018-07-08 20:11:12
阅读次数:
149
1、创建监听器类TestNGListener,重写onTestFailure方法,里面定义了 监听的driver ,截图文件路径和名称 2、driver的来源 3、配置监听器 有两种配置方法 (1)有两种配置方法在需要捕捉的类上方 (2)在testng.xml里配置监听器 两种方式的差别在于,类上方 ...
分类:
移动开发 时间:
2018-06-28 19:31:59
阅读次数:
223
多浏览器兼容性测试(1) RIDE已经支持多浏览器兼容性测试,例如: firefox ie chrome safari 但是,项目要求支持360极速和360安全浏览器。所以,我们需要增加代码让RIDE识别。其他浏览器类似(本地浏览器)。 说明:基于Selenium: 3.0.2 上面是直接使用,如果 ...
分类:
其他好文 时间:
2018-06-28 13:58:01
阅读次数:
337
pom.xml pring Boot项目使用一个全局的配置文件application.properties或者是application.yml,在resources目录下 server.port=8088 ...
分类:
编程语言 时间:
2018-06-13 00:18:24
阅读次数:
153