`
文章列表

maven setting

    博客分类:
  • Java
<?xml version="1.0" encoding="UTF-8"?> <classpath> <classpathentry kind="src" output="target/classes" path="src/main/java"/> <classpathentry kind="src" output="target/test-classes" path="src/test/ja ...

Test file name

    博客分类:
  • Java
public static void main(String[] args) throws Exception { File dir = new File("c:/mockData/com.taobao.client.sys.getAppToken_@"); dir.mkdirs(); String fileName = "sign=8a0068b0034e2390e7357adb226abf1e&ttid=201200@taobao_iphone_2.2.1&t=20120516103748& ...

每日至少一句

2012-05-16: Although apparently rigid, bones exhibit a degree of elasticity that enables the skeleton to withstand considerable impact. That xenon could not form chemical compounds was once belived by scientists. Research into the dynamics of storms is directed toward imporving the ability ...
沪江小编:职场中,白领们常习惯于中英夹杂着讲话。有人认为把中文和英文混在一起特别傻,特别装;也有人觉得这样说非常有用,利于有效沟通。你们觉得呢?以下10个是中国白领最常用的商务英文单词,看看你是不是每天 ...

GetDriverInfo

    博客分类:
  • Java
package test; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.firefox.Firefox ...

log parser

rule.txt warning /[Ww]arning|WARNING|null/ error /BUILD FAILED/ error /ERROR/ error /[Ff]ail/ error /[Ee]rror/ error /[^0] TC FAILED/ info /0 TC FAILED/

dom4j

    博客分类:
  • Java
public static Document read(String fileName) throws MalformedURLException, DocumentException, SAXException { SAXReader reader = new SAXReader(); reader.setFeature("http://apache.org/xml/features/nonvalidating/load-external-dtd", false); ...

junit

    博客分类:
  • Java
Parameter: package test; import java.util.Arrays; import java.util.Collection; import junit.framework.Assert; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.Parameterized; import org.junit.runners.Parameterized.Parameters; @RunWith(Parameterized. ...

get parameter of request

    博客分类:
  • Java
Enumeration<String> paramEnum = request.getParameterNames(); while(paramEnum.hasMoreElements()) { String paramName = paramEnum.nextElement(); String paramValue = request.getParameter(paramName); System.out.println(paramName + "=" + paramValue); } response.setContentType(&q ...

notepad++ 小结

空行:^\s*$ return ([^;]*) ==> return \1 == null ? new BigDecimal(0) : \1

ant junit demo

    博客分类:
  • Java
<target name="autotest"> <delete dir="${classes.dir}" /> <mkdir dir="${classes.dir}/autotest" /> <javac srcdir="autotest" destdir="${classes.dir}" /> <junit printsummary="yes" fork="yes"> ...

selenium 截图

    博客分类:
  • Java
File tmpFile = ((TakesScreenshot) driver).getScreenshotAs(OutputType.FILE);

selenium

    博客分类:
  • Java
<input type="checkbox" value="true" id="cb_ID74"/> <input type="checkbox" value="true" id="ckb_ID73"/> //input //input[position()=1] //input[2] //input[last()] //input[contains(@id, ‘cb')] =========================== ...

business english

2012-04-19 and so forth 等等 shed me a light 指点

simple test code

function Login_Mobile(){ target.frontMostApp().tabBar().buttons()["我的淘宝"].tap(); if(target.frontMostApp().navigationBar().rightButton().name()=="登录"){ target.frontMostApp().mainWindow().tableViews()["空列表"].cells()[0].tapWithOptions({tapOffset:{ ...
Global site tag (gtag.js) - Google Analytics