0
Android Testing With Selenium by TestingBot.com
What's Selenium? <ul><li>Selenium is a mature open-source project which provides easy browser testing. Google is an active...
Android and Selenium <ul><li>An open source Android emulator is available, which can be hooked up to a Selenium grid. 1. D...
Download the Android SDK <ul><li>You can get the latest version at  http://developer.android.com/sdk/index.html </li></ul>...
Create a virtual image <ul><li>Enter the following commands in your terminal: </li></ul><ul><li>cd  ~ /android_sdk/ tools ...
Start the emulator <ul><li>You can now start the Android emulator by typing this command: </li></ul><ul><li>emulator  - av...
Load the Webdriver connector onto the Android emulator <ul><li>adb  - s  <serialId>   - e install  - r  android - server ....
Launch a Selenium RC node which connects to the Android emulator <ul><li>java -jar selenium-standalone.jar -role node -hub...
Questions <ul><li>Run free Android tests on our Selenium grid, sign up for free at http://testingbot.com </li></ul><ul><li...
Upcoming SlideShare
Loading in...5
×

Android testing with_selenium

7,685

Published on

Test your website with Android and Selenium at http://testingbot.com

3 Comments
5 Likes
Statistics
Notes
No Downloads
Views
Total Views
7,685
On Slideshare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
155
Comments
3
Likes
5
Embeds 0
No embeds

No notes for slide

Transcript of "Android testing with_selenium"

  1. 1. Android Testing With Selenium by TestingBot.com
  2. 2. What's Selenium? <ul><li>Selenium is a mature open-source project which provides easy browser testing. Google is an active contributor to the Selenium source code. </li></ul><ul><li>The old version of Selenium uses Javascript to automate a browser. The newest version uses Webdriver, an API to control the browser without using (slow) Javascript. </li></ul>
  3. 3. Android and Selenium <ul><li>An open source Android emulator is available, which can be hooked up to a Selenium grid. 1. Download the Android SDK </li></ul><ul><li>2. Create a virtual image </li></ul><ul><li>3. Start the emulator </li></ul><ul><li>4. Load the Webdriver connector onto the Android emulator </li></ul><ul><li>5. Launch a Selenium RC node which connects to the Android emulator </li></ul>
  4. 4. Download the Android SDK <ul><li>You can get the latest version at  http://developer.android.com/sdk/index.html </li></ul><ul><li>Install the SDK and indicate you want to install the necessary Android packages. </li></ul>
  5. 5. Create a virtual image <ul><li>Enter the following commands in your terminal: </li></ul><ul><li>cd ~ /android_sdk/ tools / $ ./ android create avd - n my_android - t 1 - c 100M </li></ul>
  6. 6. Start the emulator <ul><li>You can now start the Android emulator by typing this command: </li></ul><ul><li>emulator - avd my_android </li></ul>
  7. 7. Load the Webdriver connector onto the Android emulator <ul><li>adb - s <serialId> - e install - r  android - server . apkadb - s <serialId> shell am start - a android . intent . action . MAIN - n org . openqa . selenium . android . app /. MainActivity </li></ul>
  8. 8. Launch a Selenium RC node which connects to the Android emulator <ul><li>java -jar selenium-standalone.jar -role node -hub http://hub.testingbot.com:4444/grid/register -browser browserName=android,platform=ANDROID </li></ul><ul><li>This will launch a Selenium node connecting to the TestingBot grid, which connects the Android emulator to our Selenium grid. </li></ul>
  9. 9. Questions <ul><li>Run free Android tests on our Selenium grid, sign up for free at http://testingbot.com </li></ul><ul><li>Questions? Please ask! </li></ul>
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×