Mobile applications and automation testing
-
Upload
indicthreads -
Category
Technology
-
view
4.123 -
download
0
description
Transcript of Mobile applications and automation testing
![Page 1: Mobile applications and automation testing](https://reader036.fdocuments.in/reader036/viewer/2022082920/554d3142b4c905ab268b53e5/html5/thumbnails/1.jpg)
1
Mobile Applications and Automation
Testing
Dipesh BhatewaraSynerzip Pvt. Ltd.
[email protected]://in.linkedin.com/pub/dipesh-bhatewara/2/498/612
![Page 2: Mobile applications and automation testing](https://reader036.fdocuments.in/reader036/viewer/2022082920/554d3142b4c905ab268b53e5/html5/thumbnails/2.jpg)
2
Outline of the talk
Ways to test mobile applications Challenges in automation testing Automation approach to achieve
single automation solution on multiple mobile platforms
A possible solution using Sikuli Demo
![Page 3: Mobile applications and automation testing](https://reader036.fdocuments.in/reader036/viewer/2022082920/554d3142b4c905ab268b53e5/html5/thumbnails/3.jpg)
3
Nature of Mobile Applications
(xcode – objective C)
Email Client (XCODE – Objective C)
• (java – android SDK)
Email Client (java- android SDK)
(webos – JS/CSS)
Email Client (webos – JS/CSS)
Application(Email Client)
![Page 4: Mobile applications and automation testing](https://reader036.fdocuments.in/reader036/viewer/2022082920/554d3142b4c905ab268b53e5/html5/thumbnails/4.jpg)
4
Ways to test mobile application
Mobile Device Emulator
Mobile Application
![Page 5: Mobile applications and automation testing](https://reader036.fdocuments.in/reader036/viewer/2022082920/554d3142b4c905ab268b53e5/html5/thumbnails/5.jpg)
5
Challenges in automation
Different platforms involved in running a test
No object handles available for Object Based Testing
Test Automation Code :Test Machine (Windows)
Application under test : Emulator (Virtual Box)
![Page 6: Mobile applications and automation testing](https://reader036.fdocuments.in/reader036/viewer/2022082920/554d3142b4c905ab268b53e5/html5/thumbnails/6.jpg)
6
Challenges in automation
Writing automated test in emulator/device.
Need to have knowledge of the technology platform of each Device to write testing application within.
No generic automation framework available for all mobile platforms or devices
![Page 7: Mobile applications and automation testing](https://reader036.fdocuments.in/reader036/viewer/2022082920/554d3142b4c905ab268b53e5/html5/thumbnails/7.jpg)
7
Approach to solve the problem
Image based test automation Automate user operations eg. Click,
type, drag-drop, mouse actions etc. Visual verification of the expected
output Not dependent on platform
underneath Can be used to automate emulator
as well as device.
![Page 8: Mobile applications and automation testing](https://reader036.fdocuments.in/reader036/viewer/2022082920/554d3142b4c905ab268b53e5/html5/thumbnails/8.jpg)
8
Advantages of the approach
Can accurately test GUI and rendering of applications.
Write test outside the device Can be used to automate multiple
devices without getting into details of each platform technology
Easy to automate.
![Page 9: Mobile applications and automation testing](https://reader036.fdocuments.in/reader036/viewer/2022082920/554d3142b4c905ab268b53e5/html5/thumbnails/9.jpg)
9
Limitations of the approach
Highly depends on the Resolution. Can not run in background. Dynamic paths are tricky to
automate.
![Page 10: Mobile applications and automation testing](https://reader036.fdocuments.in/reader036/viewer/2022082920/554d3142b4c905ab268b53e5/html5/thumbnails/10.jpg)
10
What is Sikuli? Visual technology to automate GUI
using images. MIT research project. Open Source
license. Sikuli IDE Sikuli Script API Automates anything on screen
without internal API's support Works on Windows, Mac, Linux.
![Page 11: Mobile applications and automation testing](https://reader036.fdocuments.in/reader036/viewer/2022082920/554d3142b4c905ab268b53e5/html5/thumbnails/11.jpg)
11
Sample Sikuli Script
![Page 12: Mobile applications and automation testing](https://reader036.fdocuments.in/reader036/viewer/2022082920/554d3142b4c905ab268b53e5/html5/thumbnails/12.jpg)
12
DEMO
![Page 13: Mobile applications and automation testing](https://reader036.fdocuments.in/reader036/viewer/2022082920/554d3142b4c905ab268b53e5/html5/thumbnails/13.jpg)
13
Solution proposed in demo to test Calculator
Use Java for test Project, Use Junit
Import Sikuli Script API
Write single test which will use an interface for calculator operations
Implement interface for Android and Iphone with different set of images required for automation
Run same test by changing the configuration on multiple emulators/devices
Can see the device on your machine using VNC and use that view to run your test on.