Forum Discussion
Hi,
I think you just add a property checkpoint to check it state (Enable = True) of the button before click it. So it will throw an error if the button is Disabled (Enable = False). Then you will know there is something not right with the button.
Yan01 wrote:
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
Related Content
Recent Discussions
- 5 hours agoSvetaG