Forum Discussion

ChristopheC's avatar
ChristopheC
Contributor
14 years ago

Problem checkpoint failed in QGroupBox

Hello,



I use TestComplete 8.60.665 with Qt Library ver. 4.7.4 and I have a strange problem with a checkpoint failed in QGroupBox (checkable = True).



The problem is using this :



Call aqObject.CheckProperty(<object>.GroupBox, "checked", cmpEqual, True)



Is the message log :



"The property checkpoint failed (Reason: checked does not equal True). See Additional Information for details.".



Is the message log, Additional Information :



Object:<object>.GroupBox

Property: checked

Expected value: True

Actual value: True





I don't understand why checkpoint failed while Expected value is equal to Actual value !





For information :



-I don't meet problem when property 'checked' is equal to False.



-I skirt the issue for property 'checked' is equal to True by use



VAR = <object>.GroupBox.checked

If VAR = 1 Then

   Log.Message "OK"

else

   Log.Error "Not OK"

End If





But I would like to understand where is the problem !





Best Regards



Christophe

2 Replies

  • irina_lukina's avatar
    irina_lukina
    Super Contributor

    Hi Christophe,


    The behavior you'd described is incorrect, and I registered an appropriate issue in our DB. Thanks for reporting it.


    While we're working on the solution, I'd recommend that you use the following code:



    Call aqObject.CheckProperty(<object>.GroupBox, "checked", cmpEqual, 1)  ' <- Use 1 instead of True


    Does this help?