随笔分类 -  Java-RFT

Java script or IBMRFT
Automation testing framework for RFT execution with STAF+STAX . [Session-1]
摘要:Work by Jianfei is licensed under a Creative Commons wei 3.0 Unported License. [Background: In this documentit will show you how to build one test executionautomation framework with STAF+STAX.Andmake it helps you dailytesting schedule. TheSTAF is aJavaopen source testing automation framework , it c. 阅读全文
posted @ 2011-07-25 11:09 zencorn 阅读(786) 评论(0) 推荐(0)
Java context replacing with BufferedReader & PrintWriter
摘要:publicbooleanreplacesFileHeader(StringstrFillFullPath){booleanbFlag=false;try{Fileinfile=newFile(strFillFullPath);BufferedReaderin=newBufferedReader(newInputStreamReader(newFileInputStream(infile)));Fileoutfile=newFile(infile+".tmp");PrintWriterout=newPrintWriter(newBufferedWriter(newOutpu 阅读全文
posted @ 2011-06-29 16:56 zencorn 阅读(250) 评论(0) 推荐(0)
Java Instance return model note!
摘要:1. We have a class and define a static method of getInstance() publicclassGenDarwinGlobalextendsGenDarwinGlobalHelper{/***ScriptName:<b>GenDarwinGlobal</b>*Generated:<b>Mar31,20111:16:48AM</b>*Description:FunctionalTestScript*OriginalHost:WinNTVersion5.2Build3790(S)**@since20 阅读全文
posted @ 2011-05-11 15:41 zencorn 阅读(307) 评论(0) 推荐(0)
Java String judgement for null value.
摘要:Work by Jianfei is licensed under a Creative Commons wei 3.0 Unported License. It's better to take a look this code line in below, before we using a judgement code statement to verify a string value 1:if((objectA.getStringValue()!=null)&&(objectA.getStringValue().length()!=0))2:if(object 阅读全文
posted @ 2011-05-09 14:49 zencorn 阅读(206) 评论(0) 推荐(0)
Java method Exception throw with return instance.
摘要:Work by Jianfei is licensed under a Creative Commons wei 3.0 Unported License. 1. We will get an error if write the getInstance method like below, cause the StaticEnvLib() throw a exception but there is no try- catch to catch it during the return new method. publicstaticStaticEnvLibgetInstance(){ret 阅读全文
posted @ 2011-04-07 10:00 zencorn 阅读(189) 评论(0) 推荐(0)
Eclipse User Defined Code Statement Block.
摘要:Work by Jianfei is licensed under a Creative Commons wei 3.0 Unported License. 1. 2. Work by Jianfei is licensed under a Creative Commons wei 3.0 Unported License. 阅读全文
posted @ 2011-03-16 15:32 zencorn 阅读(167) 评论(0) 推荐(0)
Java Ant - SQLExec .SQL File
摘要:Work by Jianfei is licensed under a Creative Commons wei 3.0 Unported License. Goal: Using java torun one SQL script file directly .Resource : Download the Java-Ant jar package from http://ant.apache.org/bindownload.cgiCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHi 阅读全文
posted @ 2011-01-27 16:39 zencorn 阅读(1201) 评论(0) 推荐(0)