manish_bansal_1
11 years agoOccasional Contributor
Some Quick Improvements and Suggestion for TestComplete Developers.
Sharing some of my thoughts to make this tool much more efficient, I can give thousands of improvements suggestions but only if SmartBear is really serious about this tool.
- Allow Object.exists to take optional parameter to wait in milliseconds.
- Let On Error Resume Next/ Try..Catch to handle Object not found exception as well. (your programmer can create custom user exceptions for the same)
- Error Events should produce more information as below.
- Object Name (usually from Namemapping if available) e.g. txtUserName
- Object clsClassName e.g. WinTextBox
- Operation which is performed e.g. Set_Text
- Values /parameter which is passed .e.g “Testuser123”
- Error : ObjectNotFoundException OR ObjectIsDisabledError OR ObjectCharSizeExcetion (you can also have them as separate events altogether)
- Code : Line number/ filename for debugging purpose.
- Screenshot location – will be helpful if we want to email screenshot as attachment
Note : also do not write this error directly in the logs but let user call log.error from inside Event.
- Please also have OptionalStep implementation (this will help user to avoid using try with empty catch block)
- Optional Step is user knows if this situation appears then only do this operation.
- g. OptionalStep(2000).WarningWindow.OkButton.Click()
In this above example it will wait for 2 sec to appear WarningWindow button if does not comes it move ahead.
- Unwanted dialogs.
- Sometime at any steps unwanted dialogs comes in the applications, there should be a provision to capture them based on the their description
- Take screen shot of them and make a warning in the logs.
- Check them in case of overlapping, objects are disabled or objects are not visible.