SlideShare a Scribd company logo
1 of 6
Mobile test automation
inSimple steps
Kushan Amarasiri
How we start
from scratch..
 InstallAndroid Studio
 https://developer.android.com/studio
 Set environment paths to tools and platform tools folder.
 Plug your mobile device to your machine after enabling USB
debugging in your android device.
 Next run adb devices command to see and identify the name of
your android device.
Installing the
Appium server
 Install NodeJS….
 https://nodejs.org/dist/v10.15.1/node-v10.15.1-x64.msi
 Install appium in NodeJS
 npm install –g appium@1.8.0
 Run this command in command prompt where stable version 1.8.0
will be installed in your machine.
 After installation run appium –a 127.0.0.1 in a separate command
window which should be invoked as Run AsAdministrator.
Next lets
install the
sample
application in
your device…
 Download the eribank apk to your android device.
 http://code.google.com/p/eribank/downloads/list
 Go to your eclipse IDE and have maven integration plug-in &Test
NG installed.
 Next create a new maven simple project in eclipse.
 In the pom.xml file add your Selenium dependency.
 https://mvnrepository.com/artifact/org.seleniumhq.selenium/seleni
um-java/3.141.5
Lets move to
the next steps
ofAppium test
automation…
 Selenium dependency
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>3.141.5</version>
</dependency>
 Carryout a maven clean and install to install all the Selenium
– Java libraries into your machine.
 Finally lets add the simple Appium code and run an
automation script…
Lets run the
appium
automation
code…
 Create a package calledTestBankPkg and a class called
BankAppTest.java
 Next add the code given in the git hub URL
 https://github.com/lkkushan101/Java_Appium_Example/blob/maste
r/src/main/java/TestBankPkg/BankAppTest.java
 Please do remember to change the desired capabilities according to
your android device.
 Run the script via Run As ->Test NG…

More Related Content

What's hot

ApppiumDoc_version2015
ApppiumDoc_version2015ApppiumDoc_version2015
ApppiumDoc_version2015
Amit DEWAN
 

What's hot (20)

ApppiumDoc_version2015
ApppiumDoc_version2015ApppiumDoc_version2015
ApppiumDoc_version2015
 
Webenabled
WebenabledWebenabled
Webenabled
 
Android UI Testing with Appium
Android UI Testing with AppiumAndroid UI Testing with Appium
Android UI Testing with Appium
 
Appium & Jenkins
Appium & JenkinsAppium & Jenkins
Appium & Jenkins
 
Set up vs code for salesforce
Set up vs code for salesforceSet up vs code for salesforce
Set up vs code for salesforce
 
Eclipse Spykit Project
Eclipse Spykit ProjectEclipse Spykit Project
Eclipse Spykit Project
 
Water usage-visualization-tutorial
Water usage-visualization-tutorialWater usage-visualization-tutorial
Water usage-visualization-tutorial
 
Vodafone Mobile Widgets Workshop
Vodafone Mobile Widgets WorkshopVodafone Mobile Widgets Workshop
Vodafone Mobile Widgets Workshop
 
Appium solution
Appium solutionAppium solution
Appium solution
 
Game now
Game nowGame now
Game now
 
Mobile Test Automation - Appium
Mobile Test Automation - AppiumMobile Test Automation - Appium
Mobile Test Automation - Appium
 
Automation With Appium
Automation With AppiumAutomation With Appium
Automation With Appium
 
React Native Android. It's easy.
React Native Android. It's easy.React Native Android. It's easy.
React Native Android. It's easy.
 
Ng2 cli
Ng2 cliNg2 cli
Ng2 cli
 
Getting started with coding for Jolla Sailfish OS. 22 Feb 2014, Tampere, Finland
Getting started with coding for Jolla Sailfish OS. 22 Feb 2014, Tampere, FinlandGetting started with coding for Jolla Sailfish OS. 22 Feb 2014, Tampere, Finland
Getting started with coding for Jolla Sailfish OS. 22 Feb 2014, Tampere, Finland
 
Mobile Quality Night Vienna 2015 - Testobject Appium in der Cloud
Mobile Quality Night Vienna 2015 - Testobject Appium in der CloudMobile Quality Night Vienna 2015 - Testobject Appium in der Cloud
Mobile Quality Night Vienna 2015 - Testobject Appium in der Cloud
 
Elixir Deployment Tools
Elixir Deployment ToolsElixir Deployment Tools
Elixir Deployment Tools
 
Automated UI Testing Frameworks
Automated UI Testing FrameworksAutomated UI Testing Frameworks
Automated UI Testing Frameworks
 
How To Install Sonar Qube Plugin In Anypoint Studio
How To Install Sonar Qube Plugin In Anypoint StudioHow To Install Sonar Qube Plugin In Anypoint Studio
How To Install Sonar Qube Plugin In Anypoint Studio
 
Manymo Tool Review
Manymo Tool ReviewManymo Tool Review
Manymo Tool Review
 

Similar to Mobile test automation in simple steps

Similar to Mobile test automation in simple steps (20)

Appium- part 1
Appium- part 1Appium- part 1
Appium- part 1
 
Android wear notes
Android wear notesAndroid wear notes
Android wear notes
 
Android wear notes
Android wear notesAndroid wear notes
Android wear notes
 
Appium_set_up
Appium_set_upAppium_set_up
Appium_set_up
 
Android app upload
Android app uploadAndroid app upload
Android app upload
 
Appium Mobile Testing - Nakov at js.talks() Conference - Nov 2021
Appium Mobile Testing - Nakov at js.talks() Conference - Nov 2021Appium Mobile Testing - Nakov at js.talks() Conference - Nov 2021
Appium Mobile Testing - Nakov at js.talks() Conference - Nov 2021
 
Appium understanding document
Appium understanding documentAppium understanding document
Appium understanding document
 
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
AppiumAppium
Appium
 
Introduction of phonegap installation and configuration of Phonegap with An...
Introduction of phonegap   installation and configuration of Phonegap with An...Introduction of phonegap   installation and configuration of Phonegap with An...
Introduction of phonegap installation and configuration of Phonegap with An...
 
Final NEWS.pdf
Final NEWS.pdfFinal NEWS.pdf
Final NEWS.pdf
 
Final NewsApp.pdf
Final NewsApp.pdfFinal NewsApp.pdf
Final NewsApp.pdf
 
Automation testing on ios platform using appium
Automation testing on ios platform using appiumAutomation testing on ios platform using appium
Automation testing on ios platform using appium
 
Appuim 101
Appuim 101Appuim 101
Appuim 101
 
Android tutorial1
Android tutorial1Android tutorial1
Android tutorial1
 
Mobile automation [Using Appium Server]
Mobile automation [Using Appium Server]Mobile automation [Using Appium Server]
Mobile automation [Using Appium Server]
 
Browser_Stack_Intro
Browser_Stack_IntroBrowser_Stack_Intro
Browser_Stack_Intro
 
Run your Appium tests using Docker Android - AppiumConf 2019
Run your Appium tests using Docker Android - AppiumConf 2019Run your Appium tests using Docker Android - AppiumConf 2019
Run your Appium tests using Docker Android - AppiumConf 2019
 
Bird.pdf
 Bird.pdf Bird.pdf
Bird.pdf
 
Module-I_Introduction-to-Android.pptx
Module-I_Introduction-to-Android.pptxModule-I_Introduction-to-Android.pptx
Module-I_Introduction-to-Android.pptx
 

More from Kushan Shalindra Amarasiri - Technical QE Specialist

More from Kushan Shalindra Amarasiri - Technical QE Specialist (13)

Selenium test automation framework design & development
Selenium test automation framework design & developmentSelenium test automation framework design & development
Selenium test automation framework design & development
 
Implicit and explicit waits
Implicit and explicit waitsImplicit and explicit waits
Implicit and explicit waits
 
Locator strategies
Locator strategiesLocator strategies
Locator strategies
 
Manipulating web elements with web driver
Manipulating web elements with web driverManipulating web elements with web driver
Manipulating web elements with web driver
 
Test Automation Ground Up
Test Automation Ground UpTest Automation Ground Up
Test Automation Ground Up
 
Java basics training 1
Java basics training 1Java basics training 1
Java basics training 1
 
Robot framework
Robot frameworkRobot framework
Robot framework
 
Test automation with trends
Test automation with trendsTest automation with trends
Test automation with trends
 
Testing microservices with rest assured
Testing microservices with rest assuredTesting microservices with rest assured
Testing microservices with rest assured
 
Protractor
ProtractorProtractor
Protractor
 
End to end test automation with cypress
End to end test automation with cypressEnd to end test automation with cypress
End to end test automation with cypress
 
How to be an awesome test automation professional
How to be an awesome test automation professionalHow to be an awesome test automation professional
How to be an awesome test automation professional
 
Test automation within a scrum process
Test automation within a scrum processTest automation within a scrum process
Test automation within a scrum process
 

Recently uploaded

CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
VictorSzoltysek
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
mohitmore19
 

Recently uploaded (20)

The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
 
10 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 202410 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 2024
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
 
Exploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdfExploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdf
 
Define the academic and professional writing..pdf
Define the academic and professional writing..pdfDefine the academic and professional writing..pdf
Define the academic and professional writing..pdf
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
 
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
 
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS LiveVip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.js
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) SolutionIntroducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdfAzure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
 

Mobile test automation in simple steps

  • 1. Mobile test automation inSimple steps Kushan Amarasiri
  • 2. How we start from scratch..  InstallAndroid Studio  https://developer.android.com/studio  Set environment paths to tools and platform tools folder.  Plug your mobile device to your machine after enabling USB debugging in your android device.  Next run adb devices command to see and identify the name of your android device.
  • 3. Installing the Appium server  Install NodeJS….  https://nodejs.org/dist/v10.15.1/node-v10.15.1-x64.msi  Install appium in NodeJS  npm install –g appium@1.8.0  Run this command in command prompt where stable version 1.8.0 will be installed in your machine.  After installation run appium –a 127.0.0.1 in a separate command window which should be invoked as Run AsAdministrator.
  • 4. Next lets install the sample application in your device…  Download the eribank apk to your android device.  http://code.google.com/p/eribank/downloads/list  Go to your eclipse IDE and have maven integration plug-in &Test NG installed.  Next create a new maven simple project in eclipse.  In the pom.xml file add your Selenium dependency.  https://mvnrepository.com/artifact/org.seleniumhq.selenium/seleni um-java/3.141.5
  • 5. Lets move to the next steps ofAppium test automation…  Selenium dependency <dependency> <groupId>org.seleniumhq.selenium</groupId> <artifactId>selenium-java</artifactId> <version>3.141.5</version> </dependency>  Carryout a maven clean and install to install all the Selenium – Java libraries into your machine.  Finally lets add the simple Appium code and run an automation script…
  • 6. Lets run the appium automation code…  Create a package calledTestBankPkg and a class called BankAppTest.java  Next add the code given in the git hub URL  https://github.com/lkkushan101/Java_Appium_Example/blob/maste r/src/main/java/TestBankPkg/BankAppTest.java  Please do remember to change the desired capabilities according to your android device.  Run the script via Run As ->Test NG…