Is there anyway to control the error "Unspecified error"
Dear All,
I've experience the "Unspecified error" message and TestComplete will stop the remain scripts.
Do we have any way that TestComplete can ignore this and continue running.
In my case: Sometimes, the device was unplugged (by the USB port) and the TestComplete is unable to recognize it so it will throw the error message and stop working.
Please look at the example as below, at the "var time4" the device is unplugged (by the USB port), so Testcomplete is unable to recognize the property "time4" and throw the error message.
if(Mobile["Device"](device)["Exists"]==true)
{
Mobile["Refresh"]()
if(Mobile["Device"](device)["Process"]("com.apple.android.music")["Exists"]==true)
{
var pApple_Music1 = Mobile["Device"](device)["Process"]("com.apple.android.music");
pApple_Music1["Refresh"]()
var time3 = aqString["Trim"](pApple_Music1["Layout"]("player_current_progress")["mText"])
Delay(3000)
var time4 = aaqString["Trim"](pApple_Music1["Layout"]("player_current_progress")["mText"])
if(time3 == time4)
{
Log["Error"]("THE MUSIC IS NOT PLAYING! RESTART THE MUSIC.")
}
else
{
Log["Message"]("THE MUSIC IS PLAYING.")
}
}