随笔分类 - Selenium
摘要:一、在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类,
阅读全文
摘要: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...
阅读全文

浙公网安备 33010602011771号