| || |
Why it error???
My application is VB6 and Crystal report7.0 and my testpartner is 5.3.0 Build 1060
I record by TP, TP show VBWindow("Window_0001") when Crystal report show. My application open report and I want to close report too but when playback it error.
I want to close crystal report, then I code in script and playback it doesn't error but when I code in share module and playback it error at line2 but sometime it doesn't error.
Dim CrystalReport As TVBWindow
Set CrystalReport = VBWindow("Window_0001")
I don't know why it error? [img]images/icons/frown.gif[/img]
Re: Why it error???
"Window_0001" refers to an Object Map entry, this will contain the properties that TestPartner uses to identify the window.
Open the object map entry and look at the properties that are marked as significant, it could be that something (like the caption) is different when it works or doesn't work.