摘要: 一、在Eclipse中安装TestNG1、打开eclipse-->help-->Install New Software-->Add,输入Name和Location后,点击OK。TestNG官方下载地址:http://testng.org/doc/download.html2、然后选中TestNG,单击Next安装3、安装好TestNG后重启eclipse查看是否安装好,Help-->About Eclipse-->Installation Details,如图:二、使用TestNG来运行单个测试案例:1、新建TestHelloWorldTestNG.java类, 阅读全文
posted @ 2014-02-10 13:39 deepstone 阅读(417) 评论(0) 推荐(0) 编辑
摘要: 1.1下载selenium2.0的包官方download包地址:http://code.google.com/p/selenium/downloads/list官方User Guide: http://seleniumhq.org/docs/官方API: http://selenium.googlecode.com/git/docs/api/java/index.html1.2.1 用webdriver打开一个浏览器打开firefox浏览器: WebDriver driver = new FirefoxDriver();打开IE浏览器 WebDrive... 阅读全文
posted @ 2014-02-10 13:31 deepstone 阅读(412) 评论(0) 推荐(0) 编辑