ScriptOnce™ & Best Practices. Agenda 2 Automation that works ScriptOnce –Minimal maintenance –Easy to add devices Robustness –Reliable Scripts - Minimize.

Slides:



Advertisements
Similar presentations
Cross Platform UI testing using Sikuli
Advertisements

MWD1001 Website Production Using JavaScript with Forms.
Web Server Programming
Company LOGO Automation Tools For Android Anshu Prasad.
My First UFT Script.
Understanding XML and XPath
Data Forms in Hyperion Planning. Data Forms are used by the business users and planners to enter, update and analyze the data. Actually, data forms.
Writing My First Test.
Debugged!.  You know that old line about an ounce of prevention?  It’s true for debugging.
1 Introduction to Human Computer Interaction  Livecode Overview  Based on Livecode User Guide from RunRev Ltd. (2010) 
Automation using Selenium Authored & Presented by : Chinmay Sathe & Amit Prabhu Cybage Software Pvt. Ltd.
Chapter 9 Collecting Data with Forms. A form on a web page consists of form objects such as text boxes or radio buttons into which users type information.
Sikuli Ivailo Dinkov QA Engineer PhoneX Team Telerik QA Academy.
“Automate Anything You See” Uses image recognition to identify and control GUI components Useful when there is no easy access to a GUI's internal or source.
242/102/49 0/51/59 181/172/166 Primary colors 248/152/29 PMS 172 PMS 137 PMS 546 PMS /206/ /227/ /129/123 Secondary colors 114/181/204.
Web Programming: Client/Server Applications Server sends the web pages to the client. –built into Visual Studio for development purposes Client displays.
Using Client-Side Scripts to Enhance Web Applications 1.
Strategies for Building Mobile Apps Using ArcGIS API for JavaScript Andy Gup, Lloyd Heberlie.
Android Boot Camp for Developers Using Java, 3E
UX Case Study daniela How many steps does it take to confirm an ? July 2014 when using a mobile app.
DB2 Universal Database Confidential | July 2012 | India Software Lab Click to add text © 2012 IBM Corporation An End to End Windows Automation Framework.
1 JavaScript
Installing BioPerl – how to add a repository to the PPM Start  All Programs  Active Perl…  Perl Package manager (If you don’t see a screen like the.
Chapter 1 Getting Started With Dreamweaver. Exploring the Dreamweaver Workspace The Dreamweaver workspace is where you can find all the tools to create.
Selenium January Selenium course content  Introduction (Session-1)Session-  Automation  What is automation testing  When to go for automation.
Mohit Anand, Software Engineer Adobe 1 Selecting GUI Automation Testing Tool for Mobile Domain.
Extending UFT. Agenda Running UFT tests from HP ALM Leveraging BPT From test scripts to CI – running UFT tests from Jenkins.
Perfecto Mobile Automation
Visual 1: Working with Visual Analysis Agenda Overview of the Preview Panel –Breakdown of its components and how to use Visual Analysis –Text and.
Perfecto’s CQ Lab using Selenium RemoteWebDriver & Appium
Unit 17: SDLC. Systems Development Life Cycle Five Major Phases Plus Documentation throughout Plus Evaluation…
Thực hiện: D3 GVLT: BROWERS. Browser Compatibility I Check the compatibility II Tools III.
Quick Test Professional 9.2. Testing Process Preparing to Record Recording Enhancing a Test Debugging Running the Test and Analyzing the Results Reporting.
Mobile Testing Overview. Agenda Mobile application quality poses a unique challenge Mobile changes the ALM cycle – Interoperability is unique to mobile.
Perfecto Mobile Automation
Web Scraping with Python and Selenium. What is Web Scraping?  Software technique for extracting info from websites Get information programmatically that.
Tata Consultancy Services1 WebDriver Basics Submitted By : Akhil K Gagan Deep Singh Naveenrajha H M Poornachandra Meduri Shubham Utsav Sunil Kumar G Vivek.
Selenium Waits © 2015, Perfecto Mobile Ltd. All Rights Reserved.
Working with MobileCloud Devices I. Agenda 2 How to select a device and reserve it. Basic device operations inside the MobileCloud™ Cloud Services You.
By SPEC INDIA. TestComplete – An Introduction An automated testing tool by SmartBear – TestComplete is a comprehensive product with umpteen features and.
Guide To Develop Mobile Apps With Titanium. Agenda Overview Installation of Platform SDKs Pros of Appcelerator Titanium Cons of Appcelerator Titanium.
Appium Studio Appium testing made easy at any scale.
The Zen of UI Test Automation
Mobile Testing – Survival Knowledge – Part V
Browsers and Web Platforms
Visual 1: Working with Visual Analysis
Automated Update System
Google translate app demo
SENIOR MANAGER - SOFTWARE TESTING PRACTICE
Across the world McAfee providing the update protection solutions to the computer users. As same to the error above, wait for few minutes and think some.
Across the world McAfee providing the update protection solutions to the computer users. As same to the error above, wait for few minutes and think some.
Across the world McAfee providing the update protection solutions to the computer users. As same to the error above, wait for few minutes and think some.
Across the world McAfee providing the update protection solutions to the computer users. As same to the error above, wait for few minutes and think some.
Across the world McAfee providing the update protection solutions to the computer users. As same to the error above, wait for few minutes and think some.
Across the world McAfee providing the update protection solutions to the computer users. As same to the error above, wait for few minutes and think some.
ACROSS THE WORLD MCAFEE PROVIDING THE UPDATE PROTECTION SOLUTIONS TO THE COMPUTER USERS. AS SAME TO THE ERROR ABOVE, WAIT FOR FEW MINUTES AND THINK SOME.
Across the world McAfee providing the update protection solutions to the computer users. As same to the error above, wait for few minutes and think some.
ACROSS THE WORLD MCAFEE PROVIDING THE UPDATE PROTECTION SOLUTIONS TO THE COMPUTER USERS. AS SAME TO THE ERROR ABOVE, WAIT FOR FEW MINUTES AND THINK SOME.
Across the world McAfee providing the update protection solutions to the computer users. As same to the error above, wait for few minutes and think some.
Across the world McAfee providing the update protection solutions to the computer users. As same to the error above, wait for few minutes and think some.
Across the world McAfee providing the update protection solutions to the computer users. As same to the error above, wait for few minutes and think some.
Across the world McAfee providing the update protection solutions to the computer users. As same to the error above, wait for few minutes and think some.
Across the world McAfee providing the update protection solutions to the computer users. As same to the error above, wait for few minutes and think some.
Across the world McAfee providing the update protection solutions to the computer users. As same to the error above, wait for few minutes and think some.
Across the world McAfee providing the update protection solutions to the computer users. As same to the error above, wait for few minutes and think some.
Across the world McAfee providing the update protection solutions to the computer users. As same to the error above, wait for few minutes and think some.
Across the world McAfee providing the update protection solutions to the computer users. As same to the error above, wait for few minutes and think some.
Across the world McAfee providing the update protection solutions to the computer users. As same to the error above, wait for few minutes and think some.
July 2016 Eran Kinsbruner @ek121268
Presentation transcript:

ScriptOnce™ & Best Practices

Agenda 2 Automation that works ScriptOnce –Minimal maintenance –Easy to add devices Robustness –Reliable Scripts - Minimize False Alerts

ScriptOnce

Before Starting Scripting 4 Let’s Investigate before we start Don’t write on one device

Objects vs Visual 5 Object commands are better for ScriptOnce and should form the majority of the interactions –Analyzing text on screen (Edit Get) should be done with objects as the text received will be 100% correct and not reliant on OCR Visual should be used for validation and not operations –Text is preferred to image, it will be identical across devices and can be data-driven and support multiple languages When using offsets, always use percentage and not pixels. –Images are trickier, screen sizes & platforms may break the script so it is less advisable to use Remember to always use bounded image!

Avoid “Device Specific” Commands 6 A device specific command is dependent on a particular screen size and works by coordinates and not object/visual recognition –Touch –Drag –Swipe –Gesture Why do the commands exist? –Backward compatibility for old scripts –VERY rare cases they are useful Use Set commands to insert text instead of type –Type is fragile, does not know where to type

Robust Scripting

Working with Applications 8 Applications are updated daily –It is easy to work on the wrong version How to avoid? –Install & Launch application at beginning of script –Install from repository or upload via API –Close & Uninstall at end of script so device is clean

Working with Website 9 It is best to work with a “Clean Browser” –Browser clean (currently Android only) should be used at beginning of script (see go to website sample user function) Work with OS browsers (Web Inspector iOS only) –Safari for iOS –Chrome for Android –Avoid PM browser (legacy) Use PM Browser commands

Object Click, Visual Sync, Object Click 10 Clicking on the device triggers an event –New page –Popup –Field entered After the click, we want to validate that we are where we should be – the sync –Sync is a text checkpoint with default timeout of 60 The click should be done via an object as it is more robust and ScriptOnce The sync should be done with visual –The true way to check as it tests the UX –Careful not to sync an element that existed on the previous page

Devices Need to Breathe 11 Different devices have different CPUs Some actions take back end processing time To cover it we need to: –Use the Timeout parameter When a page is loading When a backend transaction is occurring (e.g. purchase, finding a flight etc.) –Use the wait command After Edit Set When the device needs 2-3 seconds to “calm down”

Structuring Scripts 12 Create “Main” Script –Run each module separately –The main script is one for all devices –The modules can use user functions or execute script Create Maintenance script –Deal with known issues that may occur in App Location popups Upgrade popups –Power Cycle & Device Recover –Upon error run the script

So, I Think It Works?! 13 Let’s do some basic sanity Orientation –Use same script –Switch device orientation EARLY in flow to see all ok Loop 10 times on the most popular devices to see all is well

Next Steps.....Get Certified! 14 Become a Perfecto Mobile Specialist in Automation! HOW? Log in to and register. Click on Self-Paced eLearning and select the Selenium WebDriver course. Take the Final Exam for Specialist Certification (SA) Good Luck!

Thank You