We are building a new experience for our SmartBear Community.
This site is now read-only. You can still browse and search as usual. Learn More
This site is now read-only. You can still browse and search as usual. Learn More
It's generally not a good idea to map using the "Name" field. In this case, I'd actually change the mapping to use the Caption property with a value of "Backup & Restore". This is a more accurate and reliable mapping.
Hi Robert,
Thank you for your reply, I have attached the screenshots and pasted the code.
//Click on Backup and Restore button
Aliases["PTPTaxExpenseObjectMap"]["wndTaxExpenses"]["wndTaxExpenseEmployers"]["btnBackUpRestore"]["BackpImage"]["Click"]()
var backupbtn=Aliases["PTPTaxExpenseObjectMap"]["HwndSource_Window5"]["WndBackupRestoreDatabase"]["TabControl"]
//Click on Backup radio button
backupbtn["rdoBackupTo"]["Click"]()
Delays["ExtraSmallDelay"]()
//Click on Run option
backupbtn["btnRunOption"]["Click"]()
Delays["ExtraSmallDelay"]()
//Click on OK button on backupsuccessful message
Aliases["PTPTaxExpenseObjectMap"]["HwndSource_Window6"]["WindowBackupRestore"]["btnOk"]["Click"]()
Thanks.
OK... so, it clicks on the OK button... what's next in the code? Is the error actually with the OK button or is it associated with something else? Perhaps a screenshot showing the error in the log with the "Additional Info" panel information.
It clicks OK button successfully, after this again looking for this button with a message "preparing an object recognition hint" as per attachment. I have attached the logs as well, whenever I double click the log message it takes me to this code.
//Click on OK button on backupsuccessful message
Aliases["PTPTaxExpenseObjectMap"]["HwndSource_Window6"]["WindowBackupRestore"]["btnOk"]["Click"]()
Whenever Testcomplete performing "preparing an object recognition hint" it becomes unresponsive.
Well, there's something else going on in there... there's an "Unexpected Window" error... could be any number of things then that could be going differently. I'd resolve that error first before you start worrying about the "object recognition hint".
Basically, from your log, you're clicking on the OK on the backup restore window... but then there's something else going on where (I'm guessing) that window isn't getting closed before you attempt the next step.
Also, please highlight the line that has the object recognition hint and then, in the lower panel, select the "Additional Info" tab. It would be helpful to see what it thinks it is finding versus what's actually on the screen.