自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(47)
  • 资源 (4)
  • 收藏
  • 关注

原创 ChromeDriverService start java.lang.NoSuchMethodError

Exception in thread "main" java.lang.NoSuchMethodError: 'void com.google.common.base.Preconditions.checkState(boolean, java.lang.String, java.lang.Object)' at org.openqa.selenium.remote.service.DriverService.checkExecutable(DriverService.java:146) ...

2021-10-15 11:10:16 395

转载 MySQL锁系列之锁的种类和概念

转自:http://keithlan.github.io/2017/06/05/innodb_locks_1/锁是MySQL里面最难理解的知识,但是又无处不在。一开始接触锁的时候,感觉被各种锁类型和名词弄得晕头转向,就别说其他了。本文是通过DBA的视角(非InnoDB内核开发)来分析和窥探锁的奥秘,并解决实际工作当中遇到的问题锁的种类&概念想要啃掉这块最难的大骨头,必须先画一个框架,先了解...

2018-02-13 17:09:57 3269

转载 处理mysql锁争用的一个示例

处理mysql锁争用的一个示例转自 http://blog.itpub.net/29612462/viewspace-1162167模拟一个场景:建一个innodb引擎的表:create table shuzhi(  id mediumint(8) primary key,  name varchar(30),  shuzhi mediumint(10));alter table shuzhi e...

2018-02-13 17:06:26 458

原创 Can't find AVD or SDK manager in Eclipse

Can't find AVD or SDK manager in EclipseI have solved this as follows:Window > Customize Perspective... (you will see Android and AVD Manager are disabled)Command Groups Availabi

2018-02-05 17:45:45 171

转载 Fiddler显示服务器ip地址列

转自:http://blog.csdn.net/qiqizhiyun/article/details/523857171、点击菜单栏rules——customize rules...2、ctrl+f 搜索“static function main”3、在main函数里加入下面一行代码,调用fiddlerUI函数,显示ip地址列    FiddlerObject.UI.lvSessions.AddB

2018-01-17 20:16:13 736

原创 Linux – Which application is using port 8080

Always, Java developers need to know which application is using the high demand 8080 port. In this tutorial, we will show you two ways to find out which application is using port 8080 on Linux.1.

2017-03-14 17:44:18 507

原创 ssh-keygen的使用方法

关键是看有没有用 something 和 something.pub 来命名的一对文件,这个 something 通常就是 id_dsa 或 id_rsa。有 .pub 后缀的文件就是公钥,另一个文件则是密钥。假如没有这些文件,或者干脆连 .ssh 目录都没有,可以用 ssh-keygen 来创建。它先要求你确认保存公钥的位置(.ssh/id_rsa),然后它会让你重复一个

2017-03-11 18:21:14 1701

原创 CentOS7使用firewalld

1、firewalld的基本使用启动: systemctl start firewalld查看状态: systemctl status firewalld 停止: systemctl disable firewalld禁用: systemctl stop firewalld 2.systemctl是CentOS7的服务管理工具中主要的工具,它融合之前service和chkconfig的功

2017-03-08 14:42:17 355

原创 C# Call WebService

Input Address —>Click Go—>Input NameSpace var projectName = ConfigurationManager.AppSettings["ProjectName"]; var executionName = ConfigurationManager.AppSettings["ExecutionName"];

2016-01-06 16:54:20 370

原创 Java实现对MongoDB的AND、OR和IN操作

reference: http://blog.csdn.net/mydeman/article/details/6652387@SuppressWarnings("deprecation") public boolean Is_Execution_In_The_Status_Under_Project(String ProjectName, String ExecutionName,

2016-01-06 16:24:09 493

转载 Calling Executable Files in PowerShell

Calling Executable Files in PowerShellI was called out on my approach on this in work today, so I thought I would share my thoughts on this topic.  The actual executable concerned was STSADM

2015-09-18 11:46:55 588

原创 Failed to load the sqljdbc_auth.dll cause :- no sqljdbc_auth in java.library.path

First , download the latest version of jdbc driver from following address:http://www.microsoft.com/zh-cn/download/details.aspx?id=11774click the application you have downloaded .Copy

2015-08-13 10:18:47 3090

转载 Java String and Date convert

//String to dateString date = "15/04/2015";SimpleDateFormat sf = new SimpleDateFormat("dd/MM/yyyy");try { Date myDate = sf.parse(date); } catch (java.text.ParseException e) { e.printStackTrace()

2015-02-05 17:38:06 438

原创 Compare two different format date string

//Compare two different format date string, if two date same, return true, else return falsepublic static boolean IsTwoDateSame(String sDateA, String sDateB) { boolean flag=false; SimpleDateF

2015-02-05 17:06:23 449

转载 java中正则表达式运用实例(用String类的matches方法演示)

测试代码 package test; /** * 在String的matches()方法,split()方法中使用正则表达式. * @author fhd001 */ public class RegexTest { public static void main(String[] ar

2015-02-05 16:54:26 1006

转载 [Fixed] Whoa! Google Chrome has Crashed error in Windows®

From: http://networkingstudy.net/index.php/whoa-google-chrome-has-crashed,-relaunch-now.htmlWhoa! Google Chrome has crashed, relaunch now on Windows 7/Xp, Windows 8.Google chrome is work

2014-12-24 11:06:33 911

原创 Windows power shell 运行方式汇总

首先要看运行的是Powershell命令,还是Powershell

2014-07-30 16:43:53 3190

原创 execute Windows powershell command or .ps1 file by java

public static String executePSCommand(String command) throws Exception { //String cmd = "cmd /c c:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell -noprofile -noexit -executionP

2014-07-30 11:08:51 1092 1

原创 'powershell' is not recognized as an internal or external command, operable program or batch file

String cmd = "cmd /c c:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell -ExecutionPolicy RemoteSigned -noprofile -noninteractive " + command;String cmd = "cmd /c c:\\Windows\\System32\

2014-07-30 10:59:14 2392

转载 java中Class.getResource用法

转自 : http://sailinglee.iteye.com/blog/433097

2014-07-28 17:31:15 379

原创 Windows Power Shell 关闭无用的Chrome

最近在用Selenium做自动测试,遇到

2014-07-22 17:40:07 1946

原创 sendKeys(CharSequence[])

I created selenium demo in eclipse, I got erro message as following:The method sendKeys(CharSequence[]) in the type WebElement is not applicable for the arguments (String)When I write fo

2014-04-19 12:36:45 1506

原创 C# user define control demo

Environment: Visual Studio 2012Create a windows form application named UserDefineControl.Create a user control named UCSetup user control as followingUC.cs code a

2014-02-26 15:03:30 557

原创 Vbscript在DataGridView中折半查找某一行

'Binary search an item in a certain table's certain column'Writer Markin.Q.Li'Create Date 2013-4-24'Return RowIndex'min The min row index'max The max row

2014-02-08 15:44:27 654

原创 Vbscript 将数组转换为字符串

'Convert array to string'Writer Markin.Q.Li'Create Date 2013-4-28'arrayName arrayName'separator separator'Example ConvertArrayToString(arrayName, ",")Public Function

2014-02-08 15:37:57 3403

原创 Vbscript 获取随机数

'Get Rand Number'Writer Markin.Q.Li'Create Date 2013-4-28'min min'max max'Example GetRandNumber(5,10)Public Function GetRandNumber(min, max) Randomize G

2014-02-08 15:35:30 2690

转载 DataGridView的Cell的字体颜色变化

转自: http://www.cnblogs.com/jiutianxingchen/archive/2013/05/06/3063148.html今天写代码,用DataGridView显示数据,但是有些单元格需要改变字体颜色,直接在LOAD事件中调用改变颜色的方法时,页面没有任何反应(即还是原来的字体颜色);但是点查询按钮后,就可以出现颜色变化了,但是直接进入的不变颜色,不知道原因。

2013-11-01 09:29:31 1948

转载 C# XML Format

/// /// Formats the provided XML so it's indented and humanly-readable. /// /// The input XML to format. /// private static string FormatXml(string inpu

2013-11-01 08:23:50 747

转载 C#常用字符串截取

http://www.cnblogs.com/ketianlin/articles/2039087.htmlstring str="123abc456";int i=3;1 取字符串的前i个字符   str=str.Substring(0,i); // or  str=str.Remove(i,str.Length-i); 2 去掉字符串的前i个字符:   str=

2013-08-20 14:33:55 569

原创 ChinaTest 资料下载地址

http://vdisk.weibo.com/s/KAg9r/1374203184

2013-07-21 10:58:21 406

原创 VBScript Sub and Function Demo

Option ExplicitGreetUser GetUserNameSub GreetUser(strUserName) If IsNumeric(strUserName) Or IsDate(strUserName) Then MsgBox "That is not a legal name." Exit Sub End If MsgBox "H

2013-04-06 16:24:42 638

原创 VBScript Empty, Null, Nothing

Dim MyVarMsgBox MyVarMsgBox TypeName(MyVar)MsgBox IsEmpty(MyVar)Dim MyVarMyVar=NullMsgBox "" & MyVarMsgBox TypeName(MyVar)MsgBox IsNull(MyVar)Dim MyObjSet MyObj = CreateObject("Scr

2013-04-06 16:05:43 1068

原创 Vbscript data type

VbScript is loosely typed language.You can use a variant with out define like this:MyVar = 50 or MyVar = "UserName"The only one data type in vbscript is Variant. There are subtypes such as Int

2013-04-06 10:51:57 509

原创 Groovy get current time

def now= new Date()println nowdef longType= now.timeprintln longTypedef gCalendar= new GregorianCalendar()println gCalendar.timeprintln gCalendar.time.timeprintln System.currentTimeMilli

2013-04-03 16:34:39 996

原创 Groovy 学习资料

Book:Groovy in action   Down load address:http://download.csdn.net/detail/markinlqx/4459750http://groovy.codehaus.org/api/http://docs.oracle.com/javase/6/docs/api/

2013-04-03 16:25:05 481

原创 Groovy Convert between string and date

Reference:http://java.dzone.com/articles/groovy-jdk-gdk-date-andhttp://www.javabeat.net/2008/09/sample-code-for-simpledateformat///String to Dateimport java.util.Datedef newDate ='

2013-04-03 13:38:37 3082

转载 VBscript常用函数

原文地址:http://www.360doc.com/content/06/0501/21/3123_108694.shtmlVBscript常用函数: 1.数值型函数: abs(num): 返回绝对值 sgn(num): num>0 1; num=0 0; numhex(num): 返回十六进制值 直接表示:&Hxx 最大8位 oct(num): 返回八进制值 直接表示:

2013-03-26 08:44:29 600

原创 SoapUI offen use script

1.1. Get and Set propertiesGetting properties from groovy is straight-forward; all objects that contain properties have a getPropertyValue / setPropertyValue methods. The following examples are from i

2013-03-21 13:41:47 1154

原创 QTP 描述性编程时,属性里面有特殊字符的处理方法

QTP 描述性编程时,属性的描述字符串会被当成正则表达式处理,如果里面有特殊字符,控件的描述信息就有可能不被正确识别。解决办法是:1) 给特殊字符前面加上“\”2)将属性描述信息的RegularExpression设置为False,如下:set MyDesc = Description.Create()MyDesc("PropName").Value = PropValue

2013-02-16 16:40:55 531

原创 QTP对象能识别,但回放的时候却不响应

今天遇到一个问题QTP可以识别所有的对象,但是回放的时候按钮就点不上了。后来发现鼠标必须指在距离控件有一点距离的地方才能识别,与正常我们想的鼠标要放到控件上才能识别这个控件不同。出现这种现象是因为,浏览器的Zoom跟录制时的Zoom不一致了,我修改为100%就解决了。所以,大家要注意在录制的时候就选择一个合适的Zoom,回放时也要使用这个Zoom。

2013-01-31 17:48:15 744

WebDriver xpath css selector

很好的WebDriver 元素选择参考,对比展示了使用Xpath Css 等方法选取页面元素 对自动化测试人员很实用

2014-07-03

Webdriver element selector

很好的WebDriver Xpath Css 元素识别参考 http://www.techques.com/question/1-8076659/Selenium-WebDriver-Issue-with-By.CSSSelector http://blog.csdn.net/expect88/article/details/8279435

2014-07-03

Java data base programming

Database Porgramming With Jdbc And Java 2nd Edition 很好的JDBC使用说明

2012-10-16

Groovy in action

Groovy in action 很好的Groovy 学习文档,英文版的,对我自己很有用,Share 一下。

2012-07-28

空空如也

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

TA关注的人

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