Quantcast
Channel: New board topics in SmartBear Community
Viewing all articles
Browse latest Browse all 21061

Why TestComplete Stops running when an property is not found or null.

$
0
0

Hi All,

 

I am suffered the "Unspecified Error" from TestComplete when running the script overnight.

 

When the device was not recognized by TestComplete/TestExecute, it will throw the "Unspecified Error" error and stop working.  (The device is still able to be recognized by ADB)

 

Is there any way to prevent this error or let testcomplete continue to the next command without

 

Example:

while(aqDateTime["Now"]()<endtime)
{

Mobile["Refresh"]()
if(Mobile["Device"](device)["Exists"]==true)
{

Mobile["Refresh"]()
if(Mobile["Device"](device)["Process"]("com.HBO")["Exists"] == true)
{
var pHBO1 = Mobile["Device"](device)["Process"]("com.HBO")

var time3 = aqString["Trim"](pHBO1["RootLayout"]("")["Layout"]("content")["Layout"]("videoLayout")["Layout"]("NO_ID")["Layout"]("root_layout")["Layout"]("playercontrols")["Layout"]("controllayout")["Layout"]("seekbar_time_layout")["TextView"]("starttime")["getText"]())
Delay(4000)
var time4 = aqString["Trim"](pHBO1["RootLayout"]("")["Layout"]("content")["Layout"]("videoLayout")["Layout"]("NO_ID")["Layout"]("root_layout")["Layout"]("playercontrols")["Layout"]("controllayout")["Layout"]("seekbar_time_layout")["TextView"]("starttime")["getText"]())
if(time3 == time4)
{
Log["Error"]("THE VIDEOS IS NOT PLAYING! RESTART THE MOVIE")
...........
}
ele
{
Log["Message"]("The Video is still playing.")
}
}


Viewing all articles
Browse latest Browse all 21061

Trending Articles