intro to automation using perfecto's cq lab

28
Intro to Automation using Perfecto CQ Lab Partners David Broerman Partner Enablement Mgr. Email: [email protected]

Upload: lizzy-ploen

Post on 12-Apr-2017

189 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Intro to Automation Using Perfecto's CQ Lab

Intro to Automation using Perfecto CQ Lab

Partners

David Broerman

Partner Enablement Mgr.

Email: [email protected]

Page 2: Intro to Automation Using Perfecto's CQ Lab

2

Agenda

• Overview of Perfecto

• Walkthrough of the Perfecto Automation IDE

• Understanding scripting basics

• Validations

• Script building, execution and results

Page 3: Intro to Automation Using Perfecto's CQ Lab

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

Page 4: Intro to Automation Using Perfecto's CQ Lab

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

Page 5: Intro to Automation Using Perfecto's CQ Lab

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

Page 6: Intro to Automation Using Perfecto's CQ Lab

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

Page 7: Intro to Automation Using Perfecto's CQ Lab

Perfecto Built In Automation – IDE, Widgets and App List

7

Automation Widgets

IDE Canvas and Script

App List

Page 8: Intro to Automation Using Perfecto's CQ Lab

Perfecto Automation – Functions and Vitals

8

Automation Functions

Device Vitals

Page 9: Intro to Automation Using Perfecto's CQ Lab

9

Interface

•1 Top Bar•2 Canvas•3 Devices•4 Commands

Page 10: Intro to Automation Using Perfecto's CQ Lab

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

Page 11: Intro to Automation Using Perfecto's CQ Lab

11

Canvas

Edit View

Running View

Page 12: Intro to Automation Using Perfecto's CQ Lab

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

Page 13: Intro to Automation Using Perfecto's CQ Lab

Common Commands

Page 14: Intro to Automation Using Perfecto's CQ Lab

14

Understanding a Basic Script/Flow

Page 15: Intro to Automation Using Perfecto's CQ Lab

15

Script Variables

1 2

3

Script Variables are ‘containers’ for storing information needed in the script

Page 16: Intro to Automation Using Perfecto's CQ Lab

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

Page 17: Intro to Automation Using Perfecto's CQ Lab

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

Page 18: Intro to Automation Using Perfecto's CQ Lab

18

The commands in our script

• Home • Navigates device to idle screen• Unlocks device• Recommended to always use before actual script begins

Page 19: Intro to Automation Using Perfecto's CQ Lab

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

Page 20: Intro to Automation Using Perfecto's CQ Lab

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

Page 21: Intro to Automation Using Perfecto's CQ Lab

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'.

Page 22: Intro to Automation Using Perfecto's CQ Lab

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

Page 23: Intro to Automation Using Perfecto's CQ Lab

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.

Page 24: Intro to Automation Using Perfecto's CQ Lab

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

Page 25: Intro to Automation Using Perfecto's CQ Lab

25

Perfecto IDE Basic Automation Script

Let’s review a basic Perfecto Automation Script using the Perfecto Cloud.

Page 26: Intro to Automation Using Perfecto's CQ Lab

Q & A

Page 27: Intro to Automation Using Perfecto's CQ Lab

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

Page 28: Intro to Automation Using Perfecto's CQ Lab

Thank You

David BroermanPartner Enablement ManagerEmail: [email protected]