Presentation is loading. Please wait.

Presentation is loading. Please wait.

Does Toast Trouble you in this Digital Age?

Similar presentations


Presentation on theme: "Does Toast Trouble you in this Digital Age?"— Presentation transcript:

1 Does Toast Trouble you in this Digital Age?
Nancy Jerfia Gladson – Test Analyst Surendar Ramanathan Sadagopan – Test Analyst Gopinath Mohanraj – Test Manager Excelacom Technologies Pvt. Ltd, Chennai

2 Abstract The Digital new age is immensely evolving with new technologies and new solutions to the problems faced? The intent of this paper is to provide a solution to the challenges faced while verifying the Toast message developed as part of the mobile automation testing. Usually, the toast message appears and flashes off within seconds. Handling the toasts was a challenge and faced many technical hardships. Element ID’s not found in the UI Automator for Android and Simulator in iOS. The solution was using Tesseract class available as an open source jar. Integrated Tesseract with Appium to capture the image of the Toast and read the text in the captured image and then test verify the text. The main advantage of using Tesseract is that it will improve the accuracy of the result and performance.

3 Problem Statement Toast messages are a quick way of telling the user something. They are short pop- up messages that flashes off within seconds. Toast is a system property of any android or iOS application. Handling the toasts was a challenge and faced many technical hardships. Element ID’s for the toast will not be available in the UI Automator and Simulator.

4 Problem Statement - Stats
People spend 17% more time on mobile than they do on desktop. Only 8% of smartphone users engage with more than 10 apps per day, 63% use between on daily basis, and 29% use 0-3 apps per day. 50% of people only opted into receiving push notifications from their favorite apps, according to a survey.

5 Solution Optical Character Recognition using Tesseract object. OCR is the process of electronically extracting text from images and reusing it in variety of ways such as document editing, free-text searches, or compression. Folder structure should be maintained same like in the image where the tesseract class and the supporting jars and library files are to be placed

6 Capability settings The supportive .dll files and the tess4j jar has to be placed in the lib folder. tess4j.jar – This jar is used to call the methods for Optical Character Recognition using Tesseract object. tessdll.dll – A library file which needs to be set in the program’s path. eng.traineddata – This is a compressed data file which contains all the letters and words in English.

7 Toast Message Validation – Option 1
Take the toast message displayed screen as a screenshot and send the screenshot path as screen in instance.doOCR(screen). Check the required toast message is displayed in the result. Validate the result.

8 Toast Message Validation – Option 1
Syntax for creating OCR

9 Toast Message Validation – Option 2
Using Sikulix GUI interaction using screenshots. Used when ID/name is not found in UI Automator or Simulator. It will check the appearance of the image and if match found, it will interact with the image accordingly.

10 Toast Message Validation – Option 2
Using Sikulix

11 Appium WorkFlow

12 Continuous Integration – Using Jenkins
Jobs are triggered once the developers provide the apk file. Jenkins is going to perform some build jobs taking input from the file.

13 Continuous Integration – Using Jenkins
Builds can also be scheduled using Cron pattern. Status mail is sent for each build for specified stakeholders Useful for weekend execution

14 Test Results from Jenkins

15 Take Away:- Automatic identification of Toasts during test automation. Two ways of handling toasts have been provided Jenkins – Job can be triggered once the developers provide the apk file. Also helps to Schedule a nightly and weekend execution in the absence of resources. Handling the toast message was a challenge that has been addressed here.

16 References & Appendix Appium:- Optical Character Recognition in Android using Tesseract: - Automated Jenkins execution: -

17 Author Biography Nancy Jerfia G -Test Analyst – Automation Has 3+ years of Experience in Automation Testing in UFT, Selenium and Appium. Involved in Designing New Framework for Automation Projects. Surendar R S - Test Analyst – Automation Has 2+ years of Exeperience in Mobile Automation using Appium, also have an experience in Selenium. Gopinath Mohanraj - Test Manager Has 11 + Years of Experience in Functional & Automation Testing (Mobile & Web) in Telecom Domain and has knowledge in CRM, Billing Systems and provisioning system. Also, managed and implemented many Open source Tools / Commercial Tools to the organization requirements.

18

19 Thank You!!!


Download ppt "Does Toast Trouble you in this Digital Age?"

Similar presentations


Ads by Google