Legacy | UFT Function Reference: PerfectoLab

A Perfecto Lab class; part of the UFT Mobile (QTP) integration.
Incorporates the Perfecto Lab into the existing UFT structure, with designated object properties and methods.

PerfectoLab has a property named lab_id. Its value is a user-defined id for the LAB object. Example (using descriptive programming):

Copy
PerfectoLab("lab_id:=lab").PointOfInterest "Open Starbucks Application"

Functions

Name Description
PointOfInterest Add a point of interest to the test.
ScriptInfo Get a specified property of the script and insert its value into a given variable.
ReportTimer Add a timer report to the test.
SelectDevice Select an available device by one or more properties.
TestStart Reporting - begin test report.
TestStep Reporting - identify a new step for the report.
TestEnd Reporting - specify the final result to report.

Example

UFT Mobile Code Syntax Description
PerfectoLab("LAB").PointOfInterest "Open Starbucks Application" Adds a point of interest to the test called "Open Starbucks Application".
PerfectoLab("LAB").ReportTimer "timer1",0 Adds a timer to the test called "timer1".
Dim WTReportUrl
WTReportUrl = PerfectoLab("LAB").ScriptInfo ("reportUrl")
Gets the report URL property of the script, and inserts its value into the "WTReportUrl" variable.
myDeviceId = PerfectoLab("Lab").SelectDevice("os=Android","osVersion=5.*")
Device("DUT").SetTOProperty "device_id",myDeviceId
Device("DUT").Open
Selects an Android device running version 5 as the device under test (DUT).