Forum Discussion

Manojrsr's avatar
Manojrsr
Contributor
7 years ago
Solved

Checkpoint Property

In my Test scenario, I have Checkpoint to verify user has logged into system with  correct username. but in Test log,  for the passed Checkpoint also, General Checkpoint Event is called. I have cal...
  • shankar_r's avatar
    7 years ago

    Yes, That is expected only.

     

    aqObject.CheckProperty writes Log.Checkpoit when an property check passed and it writes in Log.Error when an property check fails.

     

    Hence, Whenever you call the Log.Checkpoint(), Corresponding event handler will get called 

     

    https://support.smartbear.com/testcomplete/docs/reference/program-objects/aqobject/checkproperty.html

     

    If you don't that to be called twice then you can modify your function like below,

     

    if(aqString.Compare(Aliases.browser.pageWelcomeToReferralvalet5.formAspnetform.textnodeLblprovidername.contentText, "SKS",true) == 0)
    {
    CapturePictures();
    }
    
    else
    {
    Log.Checkpoint("Not Valid User");
    }