11 2016 档案

摘要:在搭建自动化测试框架时,经常会使用config.properties文件存储配置,文件内容格式如下: 读取config.properties文件代码如下: public class Putils { public static Properties readConfig(){ Properties 阅读全文
posted @ 2016-11-23 14:50 钉子尹 阅读(151) 评论(0) 推荐(0) 编辑
摘要:1、显式等待: public static void waitForLoad(WebDriver driver, final By locator, int timeOut) { WebDriverWait wait = new WebDriverWait(driver, timeOut); // 阅读全文
posted @ 2016-11-23 10:58 钉子尹 阅读(463) 评论(0) 推荐(0) 编辑
摘要:调用jxl包实现Excel表格数据的读取,代码如下: 调用方式如下: 阅读全文
posted @ 2016-11-23 10:53 钉子尹 阅读(670) 评论(0) 推荐(0) 编辑