SlideShare a Scribd company logo
LOGO
LOGO Tech propulsion Labs
Android Webdriver
Test automation - Selenium 2
Masud Parvez
Email:niloy.cit1@gmail.com
All copyright is reserved by Tech propulsion labs
Contents
What is Selenium ?1
Selenium Versions2
Life of Web story3
Impact of JS4
Contents
Mobile application testing5
Android and Selenium 26
WebDriver7
Why Webdriver ?8
Contents
Android Test architecture9
Setup selenium for Android10
How are we doing?11
Limitations12
Contents
Demo13
Guide line for python14
Way to walk in the future with us15
16 Questions and Answers
What is selenium ?
 Selenium is a suite of tools to automate web app(!!!!)
testing across many platforms. Selenium runs in
many browsers and operating systems.
 Free wear
Selenium versions
2004 2008 2011 2011
Updates in Selenium 2
1 2 3 4
Mobile
application
testing .
Fire fox
4, 5, 6, 7
Experimental
IE9 and
chrome
support
WebDriver
Why do we need Selenium?
?
?
?
?
Selenium
Life before the Web
Total Application Market
Yesterday
Total Application Market
HTML
+JS
Data
Total Application Market
Today
HTML
JS
Total Application Market
Tomorrow
HTML
JS
Total Application Market
Today
HTML
JS
Total Application Market
Selenium Lives here
Tomorrow
HTML
JS
Total Application Market
Selenium Lives here
Mobile application testing
1
iPhone/ iPad
2
Android
3
WP7
Android and selenium 2
Android driver
Webdriver
New tech that Selenium 2
Test direct access browser
No proxy server
New API
Why Webdriver ?
 WebElement.findElement is universal - all UIs are
trees
 Web has DOM (elements)
 Windows has HWND
 Android has Views
Why Webdriver ?
 Many operations are universal between all UIs
Matching:
clear
click
findElement(By.id)
Why Webdriver ?
 Extensible API
 WebDriver API extensions, such as Rotatable,
 RenderedWebElement, are implemented by a subset of
drivers.
 Creating a new API for every platform is cumbersome
instead:
 Emphasize the similarities with the core WebDriver API
 Supply simple platform-specific extensions as needed.
 Facilitate piece-wise code re-usage
Android-Driver Interaction architecture
Setup selenium for Android
Phase 1 Phase 2 Phase 3
Set up EmulatorSet up SDK Start Emulator
Setup selenium for Android
Phase 4 Phase 5 Phase 6
Port ForwardingInstall the App Run your test
Download Android SDK
 Web link: www. http://developer.android.com/sdk/index.html
Installation Command
Update SDK
./android update sdk
Create Emulator
./android create avd --target 2 --name newavd
Run emulator
./emulator.exe -avd newavd
Installation Command
Install android driver in emulator
./adb install name_and
Forward port
./adb forward tcp:8080 tcp:8080
If You are using eclipse then install ADT kit
Script
 // Calling android driver
 AndroidDriver driver = new AndroidDriver();
 // And now use this to visit Google
 driver.get("http://google.com");
 // Find the text input element by its name
 WebElement element = driver.findElement(By.name("q"));
 // Enter something to search for
 element.sendKeys("Tech Propulsion Labs");
Script
 // Now submit the form. WebDriver will find the form for us
from the element
 element.submit();
 // Check the title of the page
 System.out.println("Page title is: " + driver.getTitle());
 //Turn off the driver
 driver.quit();
Limitations
 Slower than Headless WebKit Driver
 Support for SDK versions 2.2 and prior, has been
deprecated
 Does not work on emulators running 2.3 because of
an emulator bug that should be fixed soon by
Android. However it works on Devices running 2.3
and higher
DEMO
QUESTION
By python
 To install the Python client library:
# pip install -U selenium
 # Import the Selenium 2 namespace (aka "webdriver")
from selenium import webdriver
 iPhone
driver = webdriver.Remote(browser_name="iphone",
command_executor='http://172.24.101.36:3001/hub')
 Android
driver = webdriver.Remote(browser_name="android",
command_executor='http://127.0.0.1:8080/hub')
 Google Chrome
driver = webdriver.Chrome()
 Firefox
driver = webdriver.Firefox()
Way to walk in the future with us
 Blog: www.masudparvez.weebly.com/blog
 Post in blog regarding this topic
http://masudparvez.weebly.com/1/post/2011/08/an
driod-webdriver-want-to-test.html
Way to walk in the future with us
 Android .apk Automation Test
link:
http://www.youtube.com/watch?v=yi6Z3l0ci1o&fe
ature=mfu_in_order&list=UL
 Selenium automation framework
Link:
http://www.youtube.com/watch?v=wpudDb3ECPA
&feature=mfu_in_order&list=UL
tech propulsion labs
Copyright 2011 Tech Propulsion Labs, Inc.
Masud Parvez
SQA Architect
Email: masud@techpropulsionlabs.com

More Related Content

What's hot

How to configure Appium with android IDE & eclipse
How to configure Appium with android IDE & eclipseHow to configure Appium with android IDE & eclipse
How to configure Appium with android IDE & eclipse
Haitham Refaat
 
Appium: Mobile Automation Made Awesome
Appium: Mobile Automation Made AwesomeAppium: Mobile Automation Made Awesome
Appium: Mobile Automation Made Awesome
Netcetera
 
How React Native, Appium and me made each other shine @ContinuousDeliveryAmst...
How React Native, Appium and me made each other shine @ContinuousDeliveryAmst...How React Native, Appium and me made each other shine @ContinuousDeliveryAmst...
How React Native, Appium and me made each other shine @ContinuousDeliveryAmst...
Wim Selles
 
Appcelerator Titanium Alloy
Appcelerator Titanium Alloy Appcelerator Titanium Alloy
Appcelerator Titanium Alloy
karthi-anubavam
 
Introduction To Eclipse RCP
Introduction To Eclipse RCPIntroduction To Eclipse RCP
Introduction To Eclipse RCP
whbath
 
Eclipse RCP Demo
Eclipse RCP DemoEclipse RCP Demo
Eclipse RCP Demo
Csaba Toth
 
Alloy Simple App Demonstration
Alloy Simple App DemonstrationAlloy Simple App Demonstration
Alloy Simple App Demonstration
Aaron Saunders
 
Genymotion with Jenkins
Genymotion with JenkinsGenymotion with Jenkins
Genymotion with Jenkins
Vishal Nayak
 
Ci for-android-apps
Ci for-android-appsCi for-android-apps
Ci for-android-apps
Anthony Dahanne
 
Selenium_WebDriver_Java_TestNG
Selenium_WebDriver_Java_TestNGSelenium_WebDriver_Java_TestNG
Selenium_WebDriver_Java_TestNG
Basul Asahab
 
Continuous Integration for your Android projects
Continuous Integration for your Android projectsContinuous Integration for your Android projects
Continuous Integration for your Android projects
Sergii Zhuk
 
Test automation using selenium
Test automation using seleniumTest automation using selenium
Test automation using selenium
Cynoteck Technology Solutions Private Limited
 
Android Studio vs. ADT
Android Studio vs. ADTAndroid Studio vs. ADT
Android Studio vs. ADT
Dominik Helleberg
 
Eclipse RCP Overview @ Rheinjug
Eclipse RCP Overview @ RheinjugEclipse RCP Overview @ Rheinjug
Eclipse RCP Overview @ Rheinjug
Lars Vogel
 
Automation Testing on Selenium by Quontra Solutions
Automation Testing on Selenium by Quontra SolutionsAutomation Testing on Selenium by Quontra Solutions
Automation Testing on Selenium by Quontra Solutions
QUONTRASOLUTIONS
 
Selenium Automation
Selenium AutomationSelenium Automation
Selenium Automation
Anuradha Malalasena
 
No more waiting for API - Android Stub Server
No more waiting for API - Android Stub ServerNo more waiting for API - Android Stub Server
No more waiting for API - Android Stub Server
Sylwester Madej
 
Selenium and Open Source Advanced Testing
Selenium and Open Source Advanced TestingSelenium and Open Source Advanced Testing
Selenium and Open Source Advanced Testing
Austin Marie Gay
 
Eclipse RCP
Eclipse RCPEclipse RCP
Eclipse RCP
Vijay Kiran
 
Testing desktop apps with selenium
Testing desktop apps with seleniumTesting desktop apps with selenium
Testing desktop apps with selenium
Filip Braun
 

What's hot (20)

How to configure Appium with android IDE & eclipse
How to configure Appium with android IDE & eclipseHow to configure Appium with android IDE & eclipse
How to configure Appium with android IDE & eclipse
 
Appium: Mobile Automation Made Awesome
Appium: Mobile Automation Made AwesomeAppium: Mobile Automation Made Awesome
Appium: Mobile Automation Made Awesome
 
How React Native, Appium and me made each other shine @ContinuousDeliveryAmst...
How React Native, Appium and me made each other shine @ContinuousDeliveryAmst...How React Native, Appium and me made each other shine @ContinuousDeliveryAmst...
How React Native, Appium and me made each other shine @ContinuousDeliveryAmst...
 
Appcelerator Titanium Alloy
Appcelerator Titanium Alloy Appcelerator Titanium Alloy
Appcelerator Titanium Alloy
 
Introduction To Eclipse RCP
Introduction To Eclipse RCPIntroduction To Eclipse RCP
Introduction To Eclipse RCP
 
Eclipse RCP Demo
Eclipse RCP DemoEclipse RCP Demo
Eclipse RCP Demo
 
Alloy Simple App Demonstration
Alloy Simple App DemonstrationAlloy Simple App Demonstration
Alloy Simple App Demonstration
 
Genymotion with Jenkins
Genymotion with JenkinsGenymotion with Jenkins
Genymotion with Jenkins
 
Ci for-android-apps
Ci for-android-appsCi for-android-apps
Ci for-android-apps
 
Selenium_WebDriver_Java_TestNG
Selenium_WebDriver_Java_TestNGSelenium_WebDriver_Java_TestNG
Selenium_WebDriver_Java_TestNG
 
Continuous Integration for your Android projects
Continuous Integration for your Android projectsContinuous Integration for your Android projects
Continuous Integration for your Android projects
 
Test automation using selenium
Test automation using seleniumTest automation using selenium
Test automation using selenium
 
Android Studio vs. ADT
Android Studio vs. ADTAndroid Studio vs. ADT
Android Studio vs. ADT
 
Eclipse RCP Overview @ Rheinjug
Eclipse RCP Overview @ RheinjugEclipse RCP Overview @ Rheinjug
Eclipse RCP Overview @ Rheinjug
 
Automation Testing on Selenium by Quontra Solutions
Automation Testing on Selenium by Quontra SolutionsAutomation Testing on Selenium by Quontra Solutions
Automation Testing on Selenium by Quontra Solutions
 
Selenium Automation
Selenium AutomationSelenium Automation
Selenium Automation
 
No more waiting for API - Android Stub Server
No more waiting for API - Android Stub ServerNo more waiting for API - Android Stub Server
No more waiting for API - Android Stub Server
 
Selenium and Open Source Advanced Testing
Selenium and Open Source Advanced TestingSelenium and Open Source Advanced Testing
Selenium and Open Source Advanced Testing
 
Eclipse RCP
Eclipse RCPEclipse RCP
Eclipse RCP
 
Testing desktop apps with selenium
Testing desktop apps with seleniumTesting desktop apps with selenium
Testing desktop apps with selenium
 

Viewers also liked

Athena, Android UI Testing Platfrom
Athena, Android UI Testing PlatfromAthena, Android UI Testing Platfrom
Athena, Android UI Testing Platfrom
Buddy Arifin
 
Android tools for testers
Android tools for testersAndroid tools for testers
Android tools for testers
Maksim Kovalev
 
Android development
Android developmentAndroid development
Android development
Gregoire BARRET
 
Athena by OLX
Athena by OLXAthena by OLX
Athena by OLX
Pedro Proença
 
Tech Talk #5 : Android Automation Test with Espresso - Trần Văn Toàn
Tech Talk #5 : Android Automation Test with Espresso - Trần Văn ToànTech Talk #5 : Android Automation Test with Espresso - Trần Văn Toàn
Tech Talk #5 : Android Automation Test with Espresso - Trần Văn Toàn
Nexus FrontierTech
 
Android Test Automation – one year later
Android Test Automation – one year laterAndroid Test Automation – one year later
Android Test Automation – one year later
Dominik Dary
 
Screenshots Test spoon + espresso
Screenshots Test spoon + espressoScreenshots Test spoon + espresso
Screenshots Test spoon + espresso
Shinobu Okano
 
Test Automation using Athena by OLX - Intro
Test Automation using Athena by OLX - IntroTest Automation using Athena by OLX - Intro
Test Automation using Athena by OLX - Intro
MC Gagan
 
Test Driven Development (TDD)
Test Driven Development (TDD)Test Driven Development (TDD)
Test Driven Development (TDD)
David Ehringer
 
Home automation using android mobiles
Home automation using android mobilesHome automation using android mobiles
Home automation using android mobiles
Durairaja
 

Viewers also liked (10)

Athena, Android UI Testing Platfrom
Athena, Android UI Testing PlatfromAthena, Android UI Testing Platfrom
Athena, Android UI Testing Platfrom
 
Android tools for testers
Android tools for testersAndroid tools for testers
Android tools for testers
 
Android development
Android developmentAndroid development
Android development
 
Athena by OLX
Athena by OLXAthena by OLX
Athena by OLX
 
Tech Talk #5 : Android Automation Test with Espresso - Trần Văn Toàn
Tech Talk #5 : Android Automation Test with Espresso - Trần Văn ToànTech Talk #5 : Android Automation Test with Espresso - Trần Văn Toàn
Tech Talk #5 : Android Automation Test with Espresso - Trần Văn Toàn
 
Android Test Automation – one year later
Android Test Automation – one year laterAndroid Test Automation – one year later
Android Test Automation – one year later
 
Screenshots Test spoon + espresso
Screenshots Test spoon + espressoScreenshots Test spoon + espresso
Screenshots Test spoon + espresso
 
Test Automation using Athena by OLX - Intro
Test Automation using Athena by OLX - IntroTest Automation using Athena by OLX - Intro
Test Automation using Athena by OLX - Intro
 
Test Driven Development (TDD)
Test Driven Development (TDD)Test Driven Development (TDD)
Test Driven Development (TDD)
 
Home automation using android mobiles
Home automation using android mobilesHome automation using android mobiles
Home automation using android mobiles
 

Similar to MDC2011 Android_ Webdriver Automation Test

Mobile Testing with Selenium 2 by Jason Huggins
Mobile Testing with Selenium 2 by Jason HugginsMobile Testing with Selenium 2 by Jason Huggins
Mobile Testing with Selenium 2 by Jason Huggins
Sauce Labs
 
selenium-2-mobile-web-testing
selenium-2-mobile-web-testingselenium-2-mobile-web-testing
selenium-2-mobile-web-testing
hugs
 
Appium solution artizone
Appium solution   artizoneAppium solution   artizone
Appium solution artizone
Nael Abd Eljawad
 
Android UI Testing with Appium
Android UI Testing with AppiumAndroid UI Testing with Appium
Android UI Testing with Appium
Luke Maung
 
Appium solution
Appium solutionAppium solution
Appium solution
Nael Abd Eljawad
 
Appium
AppiumAppium
Selenium.pptx
Selenium.pptxSelenium.pptx
Selenium.pptx
Pandiya Rajan
 
Front-End Test Fest Keynote: The State of the Union for Front End Testing.pdf
Front-End Test Fest Keynote: The State of the Union for Front End Testing.pdfFront-End Test Fest Keynote: The State of the Union for Front End Testing.pdf
Front-End Test Fest Keynote: The State of the Union for Front End Testing.pdf
Applitools
 
Android CI and Appium
Android CI and AppiumAndroid CI and Appium
Android CI and Appium
Oren Ashkenazy
 
ATAGTR2017 Appium
ATAGTR2017 AppiumATAGTR2017 Appium
ATAGTR2017 Appium
Agile Testing Alliance
 
Mobile Test Automation using one API and one infrastructure
Mobile Test Automation using one API and one infrastructureMobile Test Automation using one API and one infrastructure
Mobile Test Automation using one API and one infrastructure
Michael Palotas
 
Synapseindia android apps application
Synapseindia android apps applicationSynapseindia android apps application
Synapseindia android apps application
Synapseindiappsdevelopment
 
Appium
AppiumAppium
Android Automation Testing with Selendroid
Android Automation Testing with SelendroidAndroid Automation Testing with Selendroid
Android Automation Testing with Selendroid
Vikas Thange
 
Deview 2013 mobile browser internals and trends_20131022
Deview 2013 mobile browser internals and trends_20131022Deview 2013 mobile browser internals and trends_20131022
Deview 2013 mobile browser internals and trends_20131022
NAVER D2
 
Cross Platform Mobile Apps with the Ionic Framework
Cross Platform Mobile Apps with the Ionic FrameworkCross Platform Mobile Apps with the Ionic Framework
Cross Platform Mobile Apps with the Ionic Framework
Troy Miles
 
How to work with Selenium Grid and Cloud Solutions
How to work with Selenium Grid and Cloud SolutionsHow to work with Selenium Grid and Cloud Solutions
How to work with Selenium Grid and Cloud Solutions
Noam Zakai
 
Selenium Automation in Java Using HttpWatch Plug-in
 Selenium Automation in Java Using HttpWatch Plug-in  Selenium Automation in Java Using HttpWatch Plug-in
Selenium Automation in Java Using HttpWatch Plug-in
Sandeep Tol
 
Shifting landscape of mobile automation, and the future of Appium - Jonathan ...
Shifting landscape of mobile automation, and the future of Appium - Jonathan ...Shifting landscape of mobile automation, and the future of Appium - Jonathan ...
Shifting landscape of mobile automation, and the future of Appium - Jonathan ...
Applitools
 
Android development beginners faq
Android development  beginners faqAndroid development  beginners faq
Android development beginners faq
Khirulnizam Abd Rahman
 

Similar to MDC2011 Android_ Webdriver Automation Test (20)

Mobile Testing with Selenium 2 by Jason Huggins
Mobile Testing with Selenium 2 by Jason HugginsMobile Testing with Selenium 2 by Jason Huggins
Mobile Testing with Selenium 2 by Jason Huggins
 
selenium-2-mobile-web-testing
selenium-2-mobile-web-testingselenium-2-mobile-web-testing
selenium-2-mobile-web-testing
 
Appium solution artizone
Appium solution   artizoneAppium solution   artizone
Appium solution artizone
 
Android UI Testing with Appium
Android UI Testing with AppiumAndroid UI Testing with Appium
Android UI Testing with Appium
 
Appium solution
Appium solutionAppium solution
Appium solution
 
Appium
AppiumAppium
Appium
 
Selenium.pptx
Selenium.pptxSelenium.pptx
Selenium.pptx
 
Front-End Test Fest Keynote: The State of the Union for Front End Testing.pdf
Front-End Test Fest Keynote: The State of the Union for Front End Testing.pdfFront-End Test Fest Keynote: The State of the Union for Front End Testing.pdf
Front-End Test Fest Keynote: The State of the Union for Front End Testing.pdf
 
Android CI and Appium
Android CI and AppiumAndroid CI and Appium
Android CI and Appium
 
ATAGTR2017 Appium
ATAGTR2017 AppiumATAGTR2017 Appium
ATAGTR2017 Appium
 
Mobile Test Automation using one API and one infrastructure
Mobile Test Automation using one API and one infrastructureMobile Test Automation using one API and one infrastructure
Mobile Test Automation using one API and one infrastructure
 
Synapseindia android apps application
Synapseindia android apps applicationSynapseindia android apps application
Synapseindia android apps application
 
Appium
AppiumAppium
Appium
 
Android Automation Testing with Selendroid
Android Automation Testing with SelendroidAndroid Automation Testing with Selendroid
Android Automation Testing with Selendroid
 
Deview 2013 mobile browser internals and trends_20131022
Deview 2013 mobile browser internals and trends_20131022Deview 2013 mobile browser internals and trends_20131022
Deview 2013 mobile browser internals and trends_20131022
 
Cross Platform Mobile Apps with the Ionic Framework
Cross Platform Mobile Apps with the Ionic FrameworkCross Platform Mobile Apps with the Ionic Framework
Cross Platform Mobile Apps with the Ionic Framework
 
How to work with Selenium Grid and Cloud Solutions
How to work with Selenium Grid and Cloud SolutionsHow to work with Selenium Grid and Cloud Solutions
How to work with Selenium Grid and Cloud Solutions
 
Selenium Automation in Java Using HttpWatch Plug-in
 Selenium Automation in Java Using HttpWatch Plug-in  Selenium Automation in Java Using HttpWatch Plug-in
Selenium Automation in Java Using HttpWatch Plug-in
 
Shifting landscape of mobile automation, and the future of Appium - Jonathan ...
Shifting landscape of mobile automation, and the future of Appium - Jonathan ...Shifting landscape of mobile automation, and the future of Appium - Jonathan ...
Shifting landscape of mobile automation, and the future of Appium - Jonathan ...
 
Android development beginners faq
Android development  beginners faqAndroid development  beginners faq
Android development beginners faq
 

MDC2011 Android_ Webdriver Automation Test