- 博客(9)
- 收藏
- 关注
原创 简单的Selenium
初始化一个WebDriver,用的是FireFox浏览器: final public WebDriver getWebDriver() { FirefoxProfile profile = new FirefoxProfile(); profile.setEnableNativeEvents(true); profile.s...
2013-09-09 11:42:19
84
原创 FTP上传文件
import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.net.SocketException; import org.apache.commons.net.ftp.FTPCl...
2013-09-05 16:04:28
81
原创 WEB自动化框架搭建的一些地址
基于TestNG 与Selenium 的自动化测试设计与实施 : http://blog.csdn.net/congqing2011/article/details/7788754 JUNIT+Selenium+JAVA: http://blog.csdn.net/xlyu2006/article/details/6762560 http://blog.csdn.net/zly86...
2013-09-05 15:19:29
74
原创 通过JDOM写XML文件
public void writeXMLByJDOM() { Element rootElement = new Element("users"); //创建以users为name的根节点 Element secondElement = new Element("user"); //创建以user为name的第二层节点 ...
2013-09-04 08:34:06
69
原创 通过JDOM解析XML文件
@SuppressWarnings("unchecked") public void parseByJDOM() { SAXBuilder sax = new SAXBuilder(); try { String xmlFilePath = System.getProperty...
2013-09-04 08:12:29
64
原创 POI读2007 EXCEL文件
public void parseExcel2007() { String filePath = System.getProperty("user.dir") + File.separator + "config" + File.separator + "2007.xlsx"; FileInputStream fi...
2013-09-03 20:23:57
65
原创 简单的Java Swing
import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.File; import java.io.IOException; import java.text.SimpleDateFormat; import java.util.Date; import jav...
2013-09-03 08:47:19
82
原创 POI写2003 EXCEL文件
public void writeExcel2003(List<String> list) { //当集合为空,则认为不需要生成EXCEL文件 if (null == list || list.isEmpty()) { return; } FileOutpu...
2013-09-03 08:38:34
67
原创 POI读2003 EXCEL文件
public void readExcel2003() { // 先获取文件的流 FileInputStream fis = null; try { String filePath = System.getProperty("user.dir")+File.separ...
2013-09-03 08:24:30
71
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人