Browser automation framework

引用自:http://code.google.com/p/selenium/wiki/AndroidDriver?ts=1318649352&updated=AndroidDriver#Using_the_Android_Test_Framework

Selenium WebDriver is a browser automation tool whichprovides a lightweight and elegant way for testing web apps. Selenium WebDriveris now available as an SDK extra in the Android SDK, and supports 2.3(Gingerbread) and onwards!

Whether or not your site is optimized for mobile browsers,you can be sure that users will be accessing it from their phones and tablets.WebDriver makes it easy to write automated tests that ensure your site workscorrectly when viewed from the Android browser. Wellwalk you through some basics about WebDriver and look at it in action.

WebDriver Basics

WebDriver tests are end-to-end tests that exercise the webapplication just like a real user would. WebDriver models user interactionswith a web page such as finger flicks, finger scrolls and long presses. It canrotate the display and interact with HTML5 features such as local storage,session storage and the application cache. Those tests run as part of an Android tests project and are based on Junit. They can be launched from Eclipse or the command line. WebDriver testscan be wired with a continuous integration system and can run on phone andtablet emulators or real devices. Once the test starts, WebDriver opens aWebView configured like the Android browser and runs the tests against it.

WebDriver is an Android SDK extra and can be installedfollowing these instructions. Once youvedone that youll be ready to write tests! There is acomprehensive WebDriver user guide on the Selenium site, but lets start with a basic example using www.google.com to give you a taste of whats possible.


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值