Unable to stop TestComplete process when click a button that is Disabled
I am currently doing continuous intergration testing using TestComplete, when clicking a button that is disabled, TestComplete doesn't throw any error message and stop the process, it pass the test and go to next process, as a result, test failed on the next process. Should TestComplete automatically stop process and throw error when it click any buttons that is disabled, or is there any solution to add into script (for example, a event) that trigger TestComplete to stop when click a button that is disabled.
I also attach partial of my scripts in here:
Sub CreateStoreInv
Call Call_Transaction("stdfi010mf")
...
...
Call frmInventoryAdj.UltraToolbarsDockArea.ClickItem("Home|&File|&Save")
If StartWinGUI.dlgInventoryAdjustment.btnYes.Exists Then
StartWinGUI.dlgInventoryAdjustment.btnYes.ClickButton
End If
Call WaitExists(StartWinGUI.dlgInventoryAdjustment, 1000)
If StartWinGUI.dlgInventoryAdjustment.btnOK.Exists Then
StartWinGUI.dlgInventoryAdjustment.btnOK.ClickButton
End If
Next
frmInventoryAdj.Close