Applitools Eyes tests built with the UFT SDK can be run on Perfecto Mobile devices. Please find below on example of Eyes UFT test that runs on Perfecto Mobile device:
The mobile device under test
Set dut = Device("DUT")
' Set the Applitools API key
eyes.ApiKey = "YOUR_API_KEY"
' Set Perfecto's mobile cloud account details
eyes.SetMobileCloudAccount "SERVER", "USERNAME", "PASSWORD"
' Read baseline information from mobile device
eyes.(dut)
' Maximal time for screens to stabilize
eyes.MatchTimeout = 10
' Start the test
eyes.Open "Applitools Mobile", "Perfecto Web"
dut.Home
eyes.CheckObject dut, "Device Home"
dut.MBrowser("Browser").Goto "www.applitools.com"
eyes.CheckObject dut, "Applitools Home Page"
dut.Touch "322,799"
eyes.CheckObject dut, "Applitools Features"
eyes.Close()
If not eyesReport.IsPassed Then
MsgBox "'" & eyesReport.TestName & "' failed! See " & eyesReport.Url & " for details"
End If
The mobile device under test
Set dut = Device("DUT")
' Set the Applitools API key
eyes.ApiKey = "YOUR_API_KEY"
' Set Perfecto's mobile cloud account details
eyes.SetMobileCloudAccount "SERVER", "USERNAME", "PASSWORD"
' Read baseline information from mobile device
eyes.(dut)
' Maximal time for screens to stabilize
eyes.MatchTimeout = 10
' Start the test
eyes.Open "Applitools Mobile", "Perfecto Web"
dut.Home
eyes.CheckObject dut, "Device Home"
dut.MBrowser("Browser").Goto "www.applitools.com"
eyes.CheckObject dut, "Applitools Home Page"
dut.Touch "322,799"
eyes.CheckObject dut, "Applitools Features"
eyes.Close()
If not eyesReport.IsPassed Then
MsgBox "'" & eyesReport.TestName & "' failed! See " & eyesReport.Url & " for details"
End If