SlideShare a Scribd company logo
Intro to Automation using
Perfecto CQ Lab
Partners
David Broerman
Partner Enablement Mgr.
Email:
davidb@perfectomobile.com
Agenda
2
• Overview of Perfecto
• Walkthrough of the Perfecto Automation
IDE
• Understanding scripting basics
• Validations
• Script building, execution and results
Intro to Perfecto
Perfecto Offers:
A Cloud Based Continuous Quality Lab
enabling testing and monitoring of all digital
platforms on real devices and real end user
conditions,
for enterprises adopting agile delivery processes.3
Intro to Perfecto
Dominant leader &
visionary
Strong
Ecosystem
Perfecto @ a glance
Working with Enterprises and Partners to deliver
exceptional digital experiences.
“Perfecto Mobile marks shift in mobile
apps QA with Continuous Quality Lab”
4
Setting the bar for
market success
• Founded in late 2006, Business HQ in Boston
• Over 300 employees globally
• Fortune 500 customer base
Continuous Quality must be
in the cloud
5
Network
conditions
IPV6
Real end user environment
All env. Scenarios
Unattended Automation
Simple to manage
Reliable
24/7
Secure
Continuous Quality Lab
in the Cloud
24/
7
Intro - CQ Lab – Strengths and Differentiators
Enterprise Grade
• Stable
• Consistent
• Secure
• Device SLA
Real end user conditions
• Real devices
• Real networks
• “Wind Tunnel” - Real world
device and app conditions
Open and Integrated
• MobileCloud API
• Selenium/Appium
• Visual Studio
• Eclipse
• Jenkins
Global and Collaborative
• 14 global data centers
• Share devices with on and
offshore teams
Hybrid
• Devices in the cloud or on prem
Elastic
• 1000s of devices on demand when needed
Perfecto Continuous
Quality Lab
Continuous
Integration
6
Perfecto Built In Automation – IDE, Widgets
and App List
7
Automation
Widgets
IDE Canvas and
Script
App List
Perfecto Automation – Functions and
Vitals
8
Automation
Functions
Device Vitals
Interface
9
• 1 Top Bar
• 2 Canvas
• 3 Devices
• 4 Commands
Top Bar
10
Item Description
File Create new, open existing, save and print scripts
Variables Modify and create script variables
Cut/Copy/Paste Move script lines using the IDE clipboard
Loop Create a loop
Group Create a logical group with a number of script lines, very useful with long scripts
Condition Add a condition statement
Edit Edit a selected script line element
Exclude Comment out selected lines from the execution
Record Record device activity into the script, within the interactive pane, into the script
Run Run the script
Watch View a live video of the current execution
More
Modify script properties, including automatic allocation of devices (see the OPEN device functions for more details)
Devices Open interactive to select a device
Canvas
11
Edit View
Running View
Devices
12
Selecting Devices:
Devices can be selected in
two ways:
1. From the DEVICE icon in
the Top Bar
2. From the Interactive
compressed menu on the
right
1
2
Common Commands
Understanding a Basic
Script/Flow
14
Script Variables
15
Script Variables are
‘containers’ for storing
information needed in the
script
Example: Writing a script on a Cloud Device Step-By-
Step
16
• Can select Device
according to criteria
or hardware
• Device may be
busy or unavailable
• Easy to switch
How to do it
-Select Device commands finds device according to criteria
-Accepts multiple criteria & regex
-Value provided to open device command that makes device available for script
-Close device at end of script
Selecting Devices for your
Script
17
Depending upon
what point you are
at, there are two
methods for
selecting a device.
Method 1:
During Scripting
Method 2:
In Production
The commands in our script
18
• Home
• Navigates device to idle screen
• Unlocks device
• Recommended to always use before actual script begins
The commands in our script
19
• Browser Go to
• Opens a URL
• Browser parameter options
• OS – Chrome/Safari/Explorer (Recommended)
• Default – according to what is set on the device
• Perfecto – legacy browser (depends on version of Perfecto
The commands in our script
(continued)
20
• Text checkpoint
• Validates text appears
on screen
• Uses OCR to find text
• Timeout defines how
long to wait for text to
appear
Validations and Validation
Parameters
21
Sync and Check areValidations Timeout is aValidation Parameter
SYNC and CHECK are the same command. SYNC has
a default timeout of 60 seconds and CHECK does not.
TIMEOUT is the
duration in which
the system will
search
continually for
the 'needle'.
How to work with
commands
22
• Question mark links to function reference
• Each command has full documentation of all
parameters and usage
• Advanced parameters
• Click checkbox
• Use only when needed
• Allows customizations
Saving your Script
23
• Repository folders
• Public
• Group
• Private
• Editing scripts written by another user
• It is not possible to edit a script written by another
user, even if it is in a shared repository folder.
• It is possible to open the script and save it under another
name, this will make you the owner of the script And allow
editing.
• Running a script written by another user is possible.
Running the script
24
• Scripts can be run from Perfecto Application/IDE
• Each run generates report
• Reports can be shared and downloaded
• Reports contain line by line breakdown of execution
• Some commands (e.g. checkpoint) automatically
generate screenshots in report
• Screenshots and Video
Perfecto IDE Basic Automation
Script
25
Let’s review a basic Perfecto Automation
Script using the Perfecto Cloud.
Q & A
Upcoming Perfecto Tech
Talk Webinars
27
• Appium vs. Perfecto and Appium together
• Wed. Feb 22nd 2017 2:00 PM IST and Thurs. Feb 23rd 2017 2PM EST
• What's New with Perfecto (New Functionality)
• Wed. March 8th 2017 2:00 PM IST and Thurs. March 9th 2017 2PM
EST
• Object Spy/Visual Analysis/XML xPath
• Wed. March 22nd 2017 2:00 PM IST and Thurs. March 23rd 2017 2PM
EST
Thank You
David Broerman
Partner Enablement Manager
Email:
davidb@perfectomobile.com

More Related Content

PPTX
Launch Better Apps, Faster - Perfecto & Orasi Joint Webinar Sldies
PPTX
TechTalk: Get to Know Perfecto
PPTX
Appium & Selenium Alone vs Appium & Selenium with Perfecto
PPTX
TechTalk: Getting to Know Perfecto
PPT
Mobile Monitoring Best Practices
PPTX
How to Add Perfecto to Your CI
PPTX
What's New with Perfecto? - Mid-Year Edition
PPTX
Continuous delivery mobile application development
Launch Better Apps, Faster - Perfecto & Orasi Joint Webinar Sldies
TechTalk: Get to Know Perfecto
Appium & Selenium Alone vs Appium & Selenium with Perfecto
TechTalk: Getting to Know Perfecto
Mobile Monitoring Best Practices
How to Add Perfecto to Your CI
What's New with Perfecto? - Mid-Year Edition
Continuous delivery mobile application development

What's hot (20)

PPTX
Video Testing Best Practices: How to Guarantee High-Quality Video for your Cu...
PPTX
How To Sell Into Insurance with Perfecto
PPTX
Appium vs. Appium with Perfecto
PPTX
Webinar: Appium & Perfecto: A Perfect Match
PPTX
How Digital Changed the Game... and how to cross platform test for it
PDF
Top 10 Automation Testing Tools in 2020
PPTX
Drive Faster Quality Insights through Customized Test Automation - Part 2
PPTX
Automate More with Selenium for your RWD
PPTX
TechTalk: Advanced Practices for Visual Test Automation
PPTX
Testing NodeJS, REST APIs and MongoDB with UFT
PPTX
Building Resilient Automated UI Tests for Cloud Applications using Scripless ...
PPTX
Mobile performance metrics and performance monitoring meetup 2017 05 10
PPTX
Mobile test automation perfecto star east
PPTX
Top 5 Automation Challenges Webinar
PPTX
Tales from the Dark Side: Ori Bendet Selenium Conference India 2016
PPTX
Appium Presentation
PPTX
Keeping Your Continuous Test Automation Continuously Valuable
PPTX
Kloia Quality Assurance
PPTX
Start Your Automation Journey With Rapise
PPTX
Overcoming Test Automation Obstacles
Video Testing Best Practices: How to Guarantee High-Quality Video for your Cu...
How To Sell Into Insurance with Perfecto
Appium vs. Appium with Perfecto
Webinar: Appium & Perfecto: A Perfect Match
How Digital Changed the Game... and how to cross platform test for it
Top 10 Automation Testing Tools in 2020
Drive Faster Quality Insights through Customized Test Automation - Part 2
Automate More with Selenium for your RWD
TechTalk: Advanced Practices for Visual Test Automation
Testing NodeJS, REST APIs and MongoDB with UFT
Building Resilient Automated UI Tests for Cloud Applications using Scripless ...
Mobile performance metrics and performance monitoring meetup 2017 05 10
Mobile test automation perfecto star east
Top 5 Automation Challenges Webinar
Tales from the Dark Side: Ori Bendet Selenium Conference India 2016
Appium Presentation
Keeping Your Continuous Test Automation Continuously Valuable
Kloia Quality Assurance
Start Your Automation Journey With Rapise
Overcoming Test Automation Obstacles
Ad

Viewers also liked (19)

PPTX
Automation intro
PPTX
What's New? - February 2017
PPTX
Everything You Need To Know about Appium and Selenium
PPT
Qtp 8.0 basic
PPT
Qtp 80 Basics3561
PPTX
TechTalk: Report Bugs Like a Boss
PPTX
QTP Automation Testing Tutorial 2
PPTX
Selenium Testing
PDF
Ten reasons why now is the perfect time to get serious about the mobile web
PPTX
How to Test on the Right Mobile Platforms
PPT
Achieving a Winning Digital User Experience with Real World Testing
PPTX
TechTalk: Taking the Mystery Out of Object ID Automation
PDF
Hp perfecto webinar - UFT Mobile
PPTX
Qtp object repository
PDF
Test Automation Tool comparison – HP UFT/QTP vs. Selenium
PDF
10 reasons why now is the perfect time to get started with the mobile web
PPTX
Selenium- A Software Testing Tool
PPTX
Testing Apps for Wearables
PDF
iOS9 Launch - Mobile Dev & Test Implications
Automation intro
What's New? - February 2017
Everything You Need To Know about Appium and Selenium
Qtp 8.0 basic
Qtp 80 Basics3561
TechTalk: Report Bugs Like a Boss
QTP Automation Testing Tutorial 2
Selenium Testing
Ten reasons why now is the perfect time to get serious about the mobile web
How to Test on the Right Mobile Platforms
Achieving a Winning Digital User Experience with Real World Testing
TechTalk: Taking the Mystery Out of Object ID Automation
Hp perfecto webinar - UFT Mobile
Qtp object repository
Test Automation Tool comparison – HP UFT/QTP vs. Selenium
10 reasons why now is the perfect time to get started with the mobile web
Selenium- A Software Testing Tool
Testing Apps for Wearables
iOS9 Launch - Mobile Dev & Test Implications
Ad

Similar to Intro to Automation Using Perfecto's CQ Lab (20)

PPTX
CS02A - Interacting with applications.pptx
PPTX
Make the Shift from Manual to Automation with Open Source
PPTX
Appium vs Appium with Perfecto
PPTX
TechTalk: Everything You Need to Know about Appium & Selenium
PPTX
Juc oct 2014 final
PPTX
Enhancing Your Test Automation Scenario Coverage with Selenium - QA or the Hi...
PPTX
Enhancing your Test automation Scenario Coverage Using Selenium by Eran Kinsb...
PPTX
Raleigh User Forum Presentation
PPTX
Optimizing Test Coverage throughout the DevOps Pipeline
PPTX
10 Emerging Test Frameworks for Cross Browser Testing
PDF
How to Scale Digital App Testing With Jenkins & Automation You Can Trust
PPTX
How to Guarantee Continuous Value from your Test Automation
PDF
On boarding Appium Open Source
PPTX
Advanced Codeless Testing for Web Apps
PPTX
Smarter Automation with Machine Learning & AI-Based Reporting
PPTX
Quality in dev ops east 2017
PPTX
How to Eliminate Escaped Defects With a Proven Test Automation Coverage Strategy
PDF
Uncovering the unknowns of appium and beyond
PPTX
What's New with Perfecto? - May 2017
PPTX
Shorten Business Life Cycle Using DevOps
CS02A - Interacting with applications.pptx
Make the Shift from Manual to Automation with Open Source
Appium vs Appium with Perfecto
TechTalk: Everything You Need to Know about Appium & Selenium
Juc oct 2014 final
Enhancing Your Test Automation Scenario Coverage with Selenium - QA or the Hi...
Enhancing your Test automation Scenario Coverage Using Selenium by Eran Kinsb...
Raleigh User Forum Presentation
Optimizing Test Coverage throughout the DevOps Pipeline
10 Emerging Test Frameworks for Cross Browser Testing
How to Scale Digital App Testing With Jenkins & Automation You Can Trust
How to Guarantee Continuous Value from your Test Automation
On boarding Appium Open Source
Advanced Codeless Testing for Web Apps
Smarter Automation with Machine Learning & AI-Based Reporting
Quality in dev ops east 2017
How to Eliminate Escaped Defects With a Proven Test Automation Coverage Strategy
Uncovering the unknowns of appium and beyond
What's New with Perfecto? - May 2017
Shorten Business Life Cycle Using DevOps

More from Lizzy Guido (she/her) (9)

PPTX
What's New with Perfecto? - June 2017
PPTX
What's New with Perfecto? - April 2017
PPTX
TechTalk: Wind Tunnel, Personas, and Testing Real UX
PPTX
What's New? - March 2017
PPTX
TechTalk: What's New with Perfecto?
PPTX
Persona Testing - Deep Dive
PPTX
Webinar: How to Size a Lab
PPTX
Automating things you didn't know you could automate
PDF
Wind Tunnel Introduction and Demo Slides
What's New with Perfecto? - June 2017
What's New with Perfecto? - April 2017
TechTalk: Wind Tunnel, Personas, and Testing Real UX
What's New? - March 2017
TechTalk: What's New with Perfecto?
Persona Testing - Deep Dive
Webinar: How to Size a Lab
Automating things you didn't know you could automate
Wind Tunnel Introduction and Demo Slides

Recently uploaded (20)

PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Accuracy of neural networks in brain wave diagnosis of schizophrenia
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPTX
Spectroscopy.pptx food analysis technology
PDF
Machine learning based COVID-19 study performance prediction
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
A comparative analysis of optical character recognition models for extracting...
PPTX
Machine Learning_overview_presentation.pptx
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
20250228 LYD VKU AI Blended-Learning.pptx
Accuracy of neural networks in brain wave diagnosis of schizophrenia
“AI and Expert System Decision Support & Business Intelligence Systems”
Encapsulation_ Review paper, used for researhc scholars
Unlocking AI with Model Context Protocol (MCP)
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Building Integrated photovoltaic BIPV_UPV.pdf
Spectroscopy.pptx food analysis technology
Machine learning based COVID-19 study performance prediction
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Diabetes mellitus diagnosis method based random forest with bat algorithm
Network Security Unit 5.pdf for BCA BBA.
MYSQL Presentation for SQL database connectivity
Advanced methodologies resolving dimensionality complications for autism neur...
Agricultural_Statistics_at_a_Glance_2022_0.pdf
A comparative analysis of optical character recognition models for extracting...
Machine Learning_overview_presentation.pptx
Mobile App Security Testing_ A Comprehensive Guide.pdf

Intro to Automation Using Perfecto's CQ Lab

  • 1. Intro to Automation using Perfecto CQ Lab Partners David Broerman Partner Enablement Mgr. Email: [email protected]
  • 2. Agenda 2 • Overview of Perfecto • Walkthrough of the Perfecto Automation IDE • Understanding scripting basics • Validations • Script building, execution and results
  • 3. Intro to Perfecto Perfecto Offers: A Cloud Based Continuous Quality Lab enabling testing and monitoring of all digital platforms on real devices and real end user conditions, for enterprises adopting agile delivery processes.3
  • 4. Intro to Perfecto Dominant leader & visionary Strong Ecosystem Perfecto @ a glance Working with Enterprises and Partners to deliver exceptional digital experiences. “Perfecto Mobile marks shift in mobile apps QA with Continuous Quality Lab” 4 Setting the bar for market success • Founded in late 2006, Business HQ in Boston • Over 300 employees globally • Fortune 500 customer base
  • 5. Continuous Quality must be in the cloud 5 Network conditions IPV6 Real end user environment All env. Scenarios Unattended Automation Simple to manage Reliable 24/7 Secure Continuous Quality Lab in the Cloud 24/ 7
  • 6. Intro - CQ Lab – Strengths and Differentiators Enterprise Grade • Stable • Consistent • Secure • Device SLA Real end user conditions • Real devices • Real networks • “Wind Tunnel” - Real world device and app conditions Open and Integrated • MobileCloud API • Selenium/Appium • Visual Studio • Eclipse • Jenkins Global and Collaborative • 14 global data centers • Share devices with on and offshore teams Hybrid • Devices in the cloud or on prem Elastic • 1000s of devices on demand when needed Perfecto Continuous Quality Lab Continuous Integration 6
  • 7. Perfecto Built In Automation – IDE, Widgets and App List 7 Automation Widgets IDE Canvas and Script App List
  • 8. Perfecto Automation – Functions and Vitals 8 Automation Functions Device Vitals
  • 9. Interface 9 • 1 Top Bar • 2 Canvas • 3 Devices • 4 Commands
  • 10. Top Bar 10 Item Description File Create new, open existing, save and print scripts Variables Modify and create script variables Cut/Copy/Paste Move script lines using the IDE clipboard Loop Create a loop Group Create a logical group with a number of script lines, very useful with long scripts Condition Add a condition statement Edit Edit a selected script line element Exclude Comment out selected lines from the execution Record Record device activity into the script, within the interactive pane, into the script Run Run the script Watch View a live video of the current execution More Modify script properties, including automatic allocation of devices (see the OPEN device functions for more details) Devices Open interactive to select a device
  • 12. Devices 12 Selecting Devices: Devices can be selected in two ways: 1. From the DEVICE icon in the Top Bar 2. From the Interactive compressed menu on the right 1 2
  • 15. Script Variables 15 Script Variables are ‘containers’ for storing information needed in the script
  • 16. Example: Writing a script on a Cloud Device Step-By- Step 16 • Can select Device according to criteria or hardware • Device may be busy or unavailable • Easy to switch How to do it -Select Device commands finds device according to criteria -Accepts multiple criteria & regex -Value provided to open device command that makes device available for script -Close device at end of script
  • 17. Selecting Devices for your Script 17 Depending upon what point you are at, there are two methods for selecting a device. Method 1: During Scripting Method 2: In Production
  • 18. The commands in our script 18 • Home • Navigates device to idle screen • Unlocks device • Recommended to always use before actual script begins
  • 19. The commands in our script 19 • Browser Go to • Opens a URL • Browser parameter options • OS – Chrome/Safari/Explorer (Recommended) • Default – according to what is set on the device • Perfecto – legacy browser (depends on version of Perfecto
  • 20. The commands in our script (continued) 20 • Text checkpoint • Validates text appears on screen • Uses OCR to find text • Timeout defines how long to wait for text to appear
  • 21. Validations and Validation Parameters 21 Sync and Check areValidations Timeout is aValidation Parameter SYNC and CHECK are the same command. SYNC has a default timeout of 60 seconds and CHECK does not. TIMEOUT is the duration in which the system will search continually for the 'needle'.
  • 22. How to work with commands 22 • Question mark links to function reference • Each command has full documentation of all parameters and usage • Advanced parameters • Click checkbox • Use only when needed • Allows customizations
  • 23. Saving your Script 23 • Repository folders • Public • Group • Private • Editing scripts written by another user • It is not possible to edit a script written by another user, even if it is in a shared repository folder. • It is possible to open the script and save it under another name, this will make you the owner of the script And allow editing. • Running a script written by another user is possible.
  • 24. Running the script 24 • Scripts can be run from Perfecto Application/IDE • Each run generates report • Reports can be shared and downloaded • Reports contain line by line breakdown of execution • Some commands (e.g. checkpoint) automatically generate screenshots in report • Screenshots and Video
  • 25. Perfecto IDE Basic Automation Script 25 Let’s review a basic Perfecto Automation Script using the Perfecto Cloud.
  • 26. Q & A
  • 27. Upcoming Perfecto Tech Talk Webinars 27 • Appium vs. Perfecto and Appium together • Wed. Feb 22nd 2017 2:00 PM IST and Thurs. Feb 23rd 2017 2PM EST • What's New with Perfecto (New Functionality) • Wed. March 8th 2017 2:00 PM IST and Thurs. March 9th 2017 2PM EST • Object Spy/Visual Analysis/XML xPath • Wed. March 22nd 2017 2:00 PM IST and Thurs. March 23rd 2017 2PM EST

Editor's Notes

  • #2: Welcome the audience, the title of the webinar and introduce yourself Introduce myself Wed: TCS, Wipro, IBM & Accenture Thurs: Cognizant, Infosys, InfoStretch
  • #3: Before we get started with the Agenda, just a quick housekeeping item…at the end we should have a few mins for Q&A. There is a panel in the webinar to submit questions during the webinar, so if you think of something, please ask. If we are unable to get to finish questions for any reason, then we will send out the info to all attendees. Here’s the agenda:
  • #6: What if you want to build out a lab yourself (or your company wants to build one - what might that look like? As practices accelerate and expand, reliability increasingly requires a cloud based lab. It’s not easy to create!! Continuous Quality must be in the cloud! Clicks 1 - 7: here are some things to think about when deploying a local lab. The process begins with acquiring servers, then deploying software and adding devices. As different devices are added unique hardware is also required. Soon, real time and dollars are being spent on building out a local lab. Clicks 8 – 15: As the need for lab scalability increases, there is the need for additional services such as repository back ups, addressing security requirements (firewall policy, SSO integration, IT infrastructure support). As these requirements continue to play out, organizations are compelled to allocate more FTEs, invest more budget and increasingly put these requests in the IT queue resulting in project slow downs. Clicks 16 – 17: Real end user conditions are needed for testing. Simple functional testing is not enough! Special infrastructure is a required to enable the controlling of these varied user conditions. For some organizations, the answer will be no to building out the right environment to manage user conditions. For those who say yes, it means more headcount, budget and frequently extended delivery turn around times. For those who do not support these requirements, quality risk rises. Click 18: A subscription based cloud based lab offers a clear alternatives to the complexity of managing local labs, and that’s where Perfecto can help!
  • #7: Mention our differentiators
  • #8: Example of what the Automation tab look like in the Perfecto IDE. Mention each area briefly… We will be looking at this in more detail as we go today.
  • #9: Mention each area briefly…
  • #10: Before reviewing how to script, let’s review the Automation IDE Interface The Top Bar The Canvas The Devices The Commands
  • #12: The Canvas has 2 modes – Edit View Running View Edit View: The EDIT view must be enabled to write an automation script. Commands are included by selecting or dragging them from the automation side bar and onto the script canvas. The command parameter details can be modified by double clicking on the function that is already on the script canvas, or by clicking on the EDIT icon or button located in the top bar or bottom of the script canvas. When running a script, the canvas will automatically switch to running view, disabling the ability to edit the script. To continue editing the script, click on view once the script run is completed. Running View: To Run a Script, click on the RUN icon located in the TOP BAR. The script canvas will automatically switch to the running view mode, disabling editing and displaying relevant information.
  • #13: View a device while writing a script Simulate device actions while being automated Record directly onto the script for quick use - Actions on the device can be recorded using the record icon located in the top bar. Once the record is activated, touch commands/keys and type text are recorded as script lines in the script canvas. This is the quickest way to write a script. Activity is recorded as hard-coded touch coordinates. Although this is inaccurate, it is useful when device touch coordinates are required. For example when using the drag command. View devices while executing a script
  • #14: 4 Areas to focus on: Common Functions – this tab enables the user to quickly include commonly used functions within a script Full List Functions - this tab includes all of the available functions, organized in categories. An enriched Function Reference is available in the Knowledge Base. User functions - this tab includes functions written by the user (this will be further explained later in the training) Scripts Repository - this tab include the scripts storage area
  • #15: Six simple, logical steps in the forms of commands that will open a device, browse to a particular website, verify that it is on that website and then close the device. 1. Select Device – what devices do you want to run your test on? 2. Open device – if its on its Lock screen, this will open the device 3. Home - Sets the device to its Home Screen- if it is not on its HOME screen, this will put it there and now the device is now ready to take the next command 4. Browser Go To – this tells the device to open the browser and go to a specified website. 5. Text checkpoint - Verify that the device is on that website home page – this ensures the success of the test case 6. Close device – this ends the test case. Some of the steps in the script above require specific information (such as DUT, Website URL, etc). These are script variables and they reside in all scripts.
  • #16: A special mention about Script Variables. Variables are 'containers for storing information So Script Variables are ‘containers’ for storing information needed in the script Image 1 Every script needs at least a Device Under Test (DUT) variable or a defined list of variables (like website URL) The SCRIPT VARIABLES icon, located in the top bar, enables users to manage the script variables. Image 2 Defined variables can be used within function parameters Image 3 For Example, device variables can be defined and then used as the OPEN Device function Device ID parameter value. NOTES: 1. When using the EXECUTE SCRIPT function to include a sub-script within a script, the script parameters must be entered in the same order and with the correct types as defined in the original script. 2. Runtime variables are selected by the user before the script execution.  The defined value will be the default.   Unselect the checkbox to explicitly define the variable. 3. Under type, URL is only used for legacy systems. It is not needed in current versions of the CQLab
  • #17: Discuss steps
  • #18: During Scripting: When writing a script with an open device, the easiest way to run the script is on that open device. SELECT DEVICE is not needed. This is a quick and handy way to validate the script while it is being built. Simply specify the open device as the DUT (Device Under Test) in your Script Variables. In Production: Once your script is ready for production, SELECT DEVICE makes it more powerful, by using 'any' device that meets your specifications, in the event that a particular device is not available at the precise time that it is required. This is essential for unattended testing.
  • #19: We’ve selected our device and we’ve allocated it to our script. Let’s use the HOME command next. HOME ensures a successful run of the script by setting the device to its home screen – If it is not on its HOME screen, this will set it there Now the device is ready to take the next command, regardless of which device you use and which screen it was last left at, this will reset it to its ready starting point.
  • #20: Browser GO To is one of the easiest commands to use, telling it to open its device specific browser and proceed to a specified website. (if the website is a script variable, you will simply set the USAGE to VARIABLE in the parameters, and then select the name of that set variable, as shown in the Parameters image above. **First time only – Perfecto Mobile installs Chrome on the device – this is done for additional security (installed from scratch) First time use – pop up agreements have to be accepted: Do You Accept Google’s T&Cs: Pop-Ups: (Yes / Yes) Afterwards, it works Despite limitation, it’s still the recommended option
  • #21: What if proof is required that the script successfully made it to a specified website page? How do you prove this? A Checkpoint – a Text Checkpoint in this example – can be used. When the script run is complete, a text checkpoint will deliver a screen shot image of the actual value ‘seen’ on the screen at that moment in the script run. It verifies that the device is on that website page, ensuring the success of the test case.
  • #22: Validations use the same mechanism as a click command, but do not perform any actions. They are useful for making scripts pass/fail (example: did the login succeed?) Some useful validations are: -SYNC -CHECK A useful validation parameter is: -TIMEOUT SYNC and CHECK are the same command. SYNC has a default timeout of 60 seconds and CHECK does not. TIMEOUT is the duration in which the system will search continually for the 'needle'. TIMEOUT is a parameter within SYNC and CHECK ------------------ One additional note about validations…they don’t perform any actions….they are verifications of a scripts success or failure only. There are two different types: - Sync and Check – virtually the same with one difference. (Sync has a default timeout of 60 seconds) Timeout works by continually searching for the needle. If the needle is not found, the system searches for it again and again, until the time set by the timeout expires. (For example, a timeout of zero means one attempt only. Higher values will provide multiple attempts. Note that the analysis takes a few seconds as it requires taking a fresh screenshot and then analyzing it, so the retries are NOT every millisecond.
  • #23: The QUESTION MARK icon can be found within every command window. It links to the functions reference. Each image below contains the "Sample" script commands. Each of the image "?" links to full documentation of all parameters and usage for that specific command. Advanced Parameter [Show an example of a command, such as OPEN Device – without Advanced Parameters enabled and then with Advanced Parameters enabled to show the difference]
  • #24: The repository is the storage area for your file including scripts, data tables and media. In addition, the repository is broken down into three areas – the SHARED Repository – known as PUBLIC is accessible by all users in the cloud…anything in this folder type can be seen and accessed by all. the GROUP Repository – known as GROUP is a bit more restricted – files within this area are accessible only to users within that specified group the PRIVATE repository – beginning with MY – is accessible only by that owner. Files cannot be seen by anyone except for that user. In a shared MCM such as the public cloud, it is not possible to save into the public repository to preserve security. Customers on a shared MCM can use the group repository to securely share information within their organization. In dedicated MCM’s the public and group are basically identical, providing access to all the users of the organization. It is not possible to edit a script written by another user, even if it is in a shared repository folder. It is possible to open the script and save it under another name, this will make you the owner of the script And allow editing. Running a script written by another user is possible. [Show the repository storage area]
  • #25: Reports can be exported in many formats such as html, pdf, csv, xml. They each provide a Pass/Fail summary, device list that the test case was run on including a test case video on each device, an execution sequence as well as a breakdown of each step in the sequence, when it started, how long it took, the expected needle it was looking for, as well as the actual value found.