Intro to Automation Using Perfecto's CQ Lab
-
Upload
lizzy-ploen -
Category
Technology
-
view
190 -
download
0
Transcript of Intro to Automation Using Perfecto's CQ Lab
Intro to Automation using Perfecto CQ Lab
Partners
David Broerman
Partner Enablement Mgr.
Email: [email protected]
2
Agenda
• 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. ScenariosUnattended Automation
Simple to manageReliable
24/7Secure
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
9
Interface
•1 Top Bar•2 Canvas•3 Devices•4 Commands
10
Top Bar
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
11
Canvas
Edit View
Running View
12
Devices
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
14
Understanding a Basic Script/Flow
15
Script Variables
1 2
3
Script Variables are ‘containers’ for storing information needed in the script
16
Example: Writing a script on a Cloud Device Step-By-Step
• 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
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
• Home • Navigates device to idle screen• Unlocks device• Recommended to always use before actual script begins
19
The commands in our script
• 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)
• 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 ParametersSync and Check are Validations Timeout is a Validation
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
• 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
• 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
• 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
Let’s review a basic Perfecto Automation Script using the Perfecto Cloud.
Q & A
27
Upcoming Perfecto Tech Talk Webinars
• 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 BroermanPartner Enablement ManagerEmail: [email protected]